Browse Source

rename `IGNORE()' --> `NG_IGNORE()'

pre-master-46
rlar 16 years ago
parent
commit
abb87a6115
  1. 7
      ChangeLog
  2. 2
      src/ciderlib/oned/onesetup.c
  3. 4
      src/ciderlib/twod/twoadmit.c
  4. 4
      src/ciderlib/twod/twocond.c
  5. 2
      src/ciderlib/twod/twocurr.c
  6. 2
      src/ciderlib/twod/twofield.c
  7. 12
      src/ciderlib/twod/twomobfn.c
  8. 4
      src/frontend/arg.c
  9. 8
      src/frontend/aspice.c
  10. 2
      src/frontend/breakp.c
  11. 2
      src/frontend/com_dump.c
  12. 2
      src/frontend/com_measure2.c
  13. 2
      src/frontend/com_rehash.c
  14. 2
      src/frontend/com_state.c
  15. 2
      src/frontend/com_sysinfo.c
  16. 20
      src/frontend/device.c
  17. 2
      src/frontend/error.c
  18. 2
      src/frontend/fourier.c
  19. 2
      src/frontend/gens.c
  20. 2
      src/frontend/help/textdisp.c
  21. 16
      src/frontend/help/x11disp.c
  22. 4
      src/frontend/help/xdisplay.c
  23. 2
      src/frontend/inpcom.c
  24. 2
      src/frontend/misccoms.c
  25. 2
      src/frontend/mw_coms.c
  26. 2
      src/frontend/numparam/spicenum.c
  27. 2
      src/frontend/numparam/xpressn.c
  28. 12
      src/frontend/nutinp.c
  29. 10
      src/frontend/nutmegif.c
  30. 28
      src/frontend/outitf.c
  31. 6
      src/frontend/parse-bison.c
  32. 6
      src/frontend/parse-bison.y
  33. 2
      src/frontend/parse.c
  34. 8
      src/frontend/parser/complete.c
  35. 4
      src/frontend/parser/unixcom.c
  36. 6
      src/frontend/plotting/agraf.c
  37. 14
      src/frontend/plotting/gnuplot.c
  38. 4
      src/frontend/plotting/graf.c
  39. 6
      src/frontend/plotting/grid.c
  40. 2
      src/frontend/plotting/plot5.c
  41. 32
      src/frontend/plotting/x11.c
  42. 6
      src/frontend/runcoms.c
  43. 4
      src/frontend/runcoms2.c
  44. 2
      src/frontend/signal_handler.c
  45. 10
      src/frontend/spiceif.c
  46. 2
      src/frontend/where.c
  47. 2
      src/include/ngspice.h
  48. 82
      src/main.c
  49. 12
      src/maths/cmaths/cmath2.c
  50. 18
      src/maths/sparse/spsmp.c
  51. 2
      src/ngnutmeg.c
  52. 26
      src/ngsconvert.c
  53. 2
      src/spicelib/analysis/acaskq.c
  54. 2
      src/spicelib/analysis/acsetp.c
  55. 2
      src/spicelib/analysis/cktacct.c
  56. 2
      src/spicelib/analysis/cktaskaq.c
  57. 4
      src/spicelib/analysis/cktasknq.c
  58. 2
      src/spicelib/analysis/cktdelt.c
  59. 4
      src/spicelib/analysis/cktdlti.c
  60. 6
      src/spicelib/analysis/cktfnda.c
  61. 6
      src/spicelib/analysis/cktftask.c
  62. 2
      src/spicelib/analysis/cktmask.c
  63. 2
      src/spicelib/analysis/cktmknod.c
  64. 4
      src/spicelib/analysis/cktmpar.c
  65. 2
      src/spicelib/analysis/cktnewan.c
  66. 2
      src/spicelib/analysis/cktntask.c
  67. 4
      src/spicelib/analysis/cktop.c
  68. 2
      src/spicelib/analysis/cktparam.c
  69. 2
      src/spicelib/analysis/cktpmnam.c
  70. 2
      src/spicelib/analysis/cktpname.c
  71. 2
      src/spicelib/analysis/cktpzstr.c
  72. 4
      src/spicelib/analysis/cktsens.c
  73. 2
      src/spicelib/analysis/cktsetap.c
  74. 4
      src/spicelib/analysis/cktsetnp.c
  75. 6
      src/spicelib/analysis/cktsgen.c
  76. 2
      src/spicelib/analysis/cktsopt.c
  77. 2
      src/spicelib/analysis/daskq.c
  78. 8
      src/spicelib/analysis/dcoaskq.c
  79. 2
      src/spicelib/analysis/dcop.c
  80. 6
      src/spicelib/analysis/dcosetp.c
  81. 6
      src/spicelib/analysis/dctaskq.c
  82. 2
      src/spicelib/analysis/dctsetp.c
  83. 2
      src/spicelib/analysis/distoan.c
  84. 2
      src/spicelib/analysis/dkerproc.c
  85. 2
      src/spicelib/analysis/dsetparm.c
  86. 2
      src/spicelib/analysis/naskq.c
  87. 2
      src/spicelib/analysis/nsetparm.c
  88. 2
      src/spicelib/analysis/pzan.c
  89. 2
      src/spicelib/analysis/pzsetp.c
  90. 2
      src/spicelib/analysis/sensaskq.c
  91. 2
      src/spicelib/analysis/senssetp.c
  92. 2
      src/spicelib/analysis/tfanal.c
  93. 6
      src/spicelib/analysis/tfaskq.c
  94. 2
      src/spicelib/analysis/tfsetp.c
  95. 2
      src/spicelib/analysis/tranaskq.c
  96. 2
      src/spicelib/analysis/transetp.c
  97. 2
      src/spicelib/devices/asrc/asrcacld.c
  98. 2
      src/spicelib/devices/asrc/asrcask.c
  99. 2
      src/spicelib/devices/asrc/asrcpar.c
  100. 2
      src/spicelib/devices/asrc/asrcpzld.c

7
ChangeLog

@ -1,5 +1,10 @@
2010-11-16 Robert Larice
* src/**/* :
rename `IGNORE()' --> `NG_IGNORE()'
due to name collision on windows.
2010-11-16 Holger Vogt 2010-11-16 Holger Vogt
* linear.c: prevent loop in case of vector not found
* linear.c: prevent loop in case of vector not found
2010-11-16 Robert Larice 2010-11-16 Robert Larice
* src/Makefile.am : * src/Makefile.am :

2
src/ciderlib/oned/onesetup.c

@ -123,7 +123,7 @@ ONEcopyBCinfo(ONEdevice *pDevice, ONEelem *pElem, BDRYcard *bdry, int index)
int eIndex; int eIndex;
double length; double length;
IGNORE(pDevice);
NG_IGNORE(pDevice);
/* First add fixed charge. */ /* First add fixed charge. */
pNode = pElem->pNodes[index]; pNode = pElem->pNodes[index];

4
src/ciderlib/twod/twoadmit.c

@ -765,7 +765,7 @@ contactAdmittance(TWOdevice *pDevice, TWOcontact *pContact, BOOLEAN delVContact,
SPcomplex prod1, prod2, sum; SPcomplex prod1, prod2, sum;
double temp; double temp;
IGNORE(pDevice);
NG_IGNORE(pDevice);
CMPLX_ASSIGN_VALUE(yTotal, 0.0, 0.0); CMPLX_ASSIGN_VALUE(yTotal, 0.0, 0.0);
@ -966,7 +966,7 @@ oxideAdmittance(TWOdevice *pDevice, TWOcontact *pContact, BOOLEAN delVContact,
SPcomplex psiAc; SPcomplex psiAc;
SPcomplex prod1, prod2; SPcomplex prod1, prod2;
IGNORE(pDevice);
NG_IGNORE(pDevice);
CMPLX_ASSIGN_VALUE(yTotal, 0.0, 0.0); CMPLX_ASSIGN_VALUE(yTotal, 0.0, 0.0);

4
src/ciderlib/twod/twocond.c

@ -274,7 +274,7 @@ double
double gTotal = 0.0; double gTotal = 0.0;
int nInc, pInc; int nInc, pInc;
IGNORE(pDevice);
NG_IGNORE(pDevice);
/* for one carrier the rest of this code relies on appropriate /* for one carrier the rest of this code relies on appropriate
current derivative term to be zero */ current derivative term to be zero */
@ -435,7 +435,7 @@ double
double dPsiDv; double dPsiDv;
double gTotal = 0.0; double gTotal = 0.0;
IGNORE(pDevice);
NG_IGNORE(pDevice);
if ( !tranAnalysis ) { if ( !tranAnalysis ) {
return( gTotal ); return( gTotal );

2
src/ciderlib/twod/twocurr.c

@ -25,7 +25,7 @@ nodeCurrents(TWOelem *pElem, TWOnode *pNode, double *mun, double *mup,
double epsL = 0.0, epsR = 0.0, epsT = 0.0, epsB = 0.0; double epsL = 0.0, epsR = 0.0, epsT = 0.0, epsB = 0.0;
double coeff1, coeff2; double coeff1, coeff2;
IGNORE(pElem);
NG_IGNORE(pElem);
/* Find all four neighboring elements */ /* Find all four neighboring elements */
pElemTL = pNode->pTLElem; pElemTL = pNode->pTLElem;

2
src/ciderlib/twod/twofield.c

@ -21,7 +21,7 @@ nodeFields(TWOelem *pElem, TWOnode *pNode, double *ex, double *ey)
double dxL = 0.0, dxR = 0.0, dyT = 0.0, dyB = 0.0; double dxL = 0.0, dxR = 0.0, dyT = 0.0, dyB = 0.0;
double ef1, ef2, coeff1, coeff2; double ef1, ef2, coeff1, coeff2;
IGNORE(pElem);
NG_IGNORE(pElem);
/* Find all four neighboring elements */ /* Find all four neighboring elements */
pElemTL = pNode->pTLElem; pElemTL = pNode->pTLElem;

12
src/ciderlib/twod/twomobfn.c

@ -47,9 +47,9 @@ MOBsurfElec(TWOmaterial *info, TWOelem *pElem, double ex, double ey,
double dElDWx; /* Lateral Derivative x Component */ double dElDWx; /* Lateral Derivative x Component */
double dElDWy; /* Lateral Derivative y Component */ double dElDWy; /* Lateral Derivative y Component */
IGNORE(wx);
IGNORE(wy);
IGNORE(totalConc);
NG_IGNORE(wx);
NG_IGNORE(wy);
NG_IGNORE(totalConc);
if ( pElem->surface ) { /* replace one field component with surface field */ if ( pElem->surface ) { /* replace one field component with surface field */
if ( pElem->direction == 0 ) { if ( pElem->direction == 0 ) {
@ -251,9 +251,9 @@ MOBsurfHole(TWOmaterial *info, TWOelem *pElem, double ex, double ey,
double dElDWx; /* Lateral Derivative x Component */ double dElDWx; /* Lateral Derivative x Component */
double dElDWy; /* Lateral Derivative y Component */ double dElDWy; /* Lateral Derivative y Component */
IGNORE(wx);
IGNORE(wy);
IGNORE(totalConc);
NG_IGNORE(wx);
NG_IGNORE(wy);
NG_IGNORE(totalConc);
if ( pElem->surface ) { /* replace one field component with surface field */ if ( pElem->surface ) { /* replace one field component with surface field */
if ( pElem->direction == 0 ) { if ( pElem->direction == 0 ) {

4
src/frontend/arg.c

@ -96,8 +96,8 @@ void arg_set(wordlist *wl, struct comm *command)
void arg_display(wordlist *wl, struct comm *command) void arg_display(wordlist *wl, struct comm *command)
{ {
IGNORE(wl);
IGNORE(command);
NG_IGNORE(wl);
NG_IGNORE(command);
/* just return; display does the right thing */ /* just return; display does the right thing */

8
src/frontend/aspice.c

@ -156,7 +156,7 @@ com_jobs(wordlist *wl)
{ {
struct proc *p; struct proc *p;
IGNORE(wl);
NG_IGNORE(wl);
for (p = running; p; p = p->pr_next) for (p = running; p; p = p->pr_next)
fprintf(cp_out, "%d\t%.70s\n", p->pr_pid, p->pr_name); fprintf(cp_out, "%d\t%.70s\n", p->pr_pid, p->pr_name);
@ -416,7 +416,7 @@ void
com_aspice( com_aspice(
wordlist *wl) wordlist *wl)
{ {
IGNORE(wl);
NG_IGNORE(wl);
fprintf(cp_err, "Asynchronous spice jobs are not available.\n"); fprintf(cp_err, "Asynchronous spice jobs are not available.\n");
return; return;
} }
@ -425,7 +425,7 @@ void
com_jobs( com_jobs(
wordlist *wl) wordlist *wl)
{ {
IGNORE(wl);
NG_IGNORE(wl);
fprintf(cp_err, "Asynchronous spice jobs are not available.\n"); fprintf(cp_err, "Asynchronous spice jobs are not available.\n");
return; return;
} }
@ -440,7 +440,7 @@ void
com_rspice( com_rspice(
wordlist *wl) wordlist *wl)
{ {
IGNORE(wl);
NG_IGNORE(wl);
fprintf(cp_err, "Remote spice jobs are not available.\n"); fprintf(cp_err, "Remote spice jobs are not available.\n");
return; return;
} }

2
src/frontend/breakp.c

@ -205,7 +205,7 @@ com_sttus(wordlist *wl)
{ {
struct dbcomm *d, *dc; struct dbcomm *d, *dc;
IGNORE(wl);
NG_IGNORE(wl);
for (d = dbs; d; d = d->db_next) { for (d = dbs; d; d = d->db_next) {
if (d->db_type == DB_TRACENODE) { if (d->db_type == DB_TRACENODE) {

2
src/frontend/com_dump.c

@ -13,7 +13,7 @@
void void
com_dump(wordlist *wl) com_dump(wordlist *wl)
{ {
IGNORE(wl);
NG_IGNORE(wl);
if (!ft_curckt || !ft_curckt->ci_ckt) { if (!ft_curckt || !ft_curckt->ci_ckt) {
fprintf(cp_err, "Error: no circuit loaded.\n"); fprintf(cp_err, "Error: no circuit loaded.\n");

2
src/frontend/com_measure2.c

@ -952,7 +952,7 @@ static void measure_ERR3(void) {
void com_dotmeasure(wordlist *wl) { void com_dotmeasure(wordlist *wl) {
IGNORE(wl);
NG_IGNORE(wl);
/* simulation info */ /* simulation info */
// printf("*%s\n", plot_cur->pl_title); // printf("*%s\n", plot_cur->pl_title);

2
src/frontend/com_rehash.c

@ -17,7 +17,7 @@ com_rehash(wordlist *wl)
{ {
char *s; char *s;
IGNORE(wl);
NG_IGNORE(wl);
if (!cp_dounixcom) { if (!cp_dounixcom) {
fprintf(cp_err, "Error: unixcom not set.\n"); fprintf(cp_err, "Error: unixcom not set.\n");

2
src/frontend/com_state.c

@ -14,7 +14,7 @@
void void
com_state(wordlist *wl) com_state(wordlist *wl)
{ {
IGNORE(wl);
NG_IGNORE(wl);
if (!ft_curckt) { if (!ft_curckt) {
fprintf(cp_err, "Error: no circuit loaded.\n"); fprintf(cp_err, "Error: no circuit loaded.\n");

2
src/frontend/com_sysinfo.c

@ -90,7 +90,7 @@ void com_sysinfo(wordlist *wl)
int errorcode; int errorcode;
TesSystemInfo* info; TesSystemInfo* info;
IGNORE(wl);
NG_IGNORE(wl);
info = TMALLOC(TesSystemInfo, 1); info = TMALLOC(TesSystemInfo, 1);

20
src/frontend/device.c

@ -403,8 +403,8 @@ all_show_old(wordlist *wl, int mode)
int int
printstr_n(dgen *dg, IFparm *p, int i) printstr_n(dgen *dg, IFparm *p, int i)
{ {
IGNORE(p);
IGNORE(i);
NG_IGNORE(p);
NG_IGNORE(i);
if (dg->instance) if (dg->instance)
fprintf(cp_out," %*.*s", DEV_WIDTH, DEV_WIDTH, dg->instance->GENname); fprintf(cp_out," %*.*s", DEV_WIDTH, DEV_WIDTH, dg->instance->GENname);
@ -416,8 +416,8 @@ printstr_n(dgen *dg, IFparm *p, int i)
int int
printstr_m(dgen *dg, IFparm *p, int i) printstr_m(dgen *dg, IFparm *p, int i)
{ {
IGNORE(p);
IGNORE(i);
NG_IGNORE(p);
NG_IGNORE(i);
if (dg->model) if (dg->model)
fprintf(cp_out," %*.*s", DEV_WIDTH, DEV_WIDTH, dg->model->GENmodName); fprintf(cp_out," %*.*s", DEV_WIDTH, DEV_WIDTH, dg->model->GENmodName);
@ -573,9 +573,9 @@ listparam(wordlist *p, dgen *dg)
int bogus1(dgen *dg, IFparm *p, int i) int bogus1(dgen *dg, IFparm *p, int i)
{ {
IGNORE(dg);
IGNORE(p);
IGNORE(i);
NG_IGNORE(dg);
NG_IGNORE(p);
NG_IGNORE(i);
fprintf(cp_out," %*s", DEV_WIDTH, "---------"); fprintf(cp_out," %*s", DEV_WIDTH, "---------");
return 0; return 0;
@ -583,9 +583,9 @@ int bogus1(dgen *dg, IFparm *p, int i)
int bogus2(dgen *dg, IFparm *p, int i) int bogus2(dgen *dg, IFparm *p, int i)
{ {
IGNORE(dg);
IGNORE(p);
IGNORE(i);
NG_IGNORE(dg);
NG_IGNORE(p);
NG_IGNORE(i);
fprintf(cp_out," %*s", DEV_WIDTH, "?????????"); fprintf(cp_out," %*s", DEV_WIDTH, "?????????");
return 0; return 0;

2
src/frontend/error.c

@ -39,7 +39,7 @@ controlled_exit(int status)
void void
fperror(char *mess, int code) fperror(char *mess, int code)
{ {
IGNORE(code);
NG_IGNORE(code);
fprintf(cp_err, "%s: floating point exception.\n", mess); fprintf(cp_err, "%s: floating point exception.\n", mess);
return; return;
} }

2
src/frontend/fourier.c

@ -263,7 +263,7 @@ CKTfour(int ndata, /* number of entries in the Time and
int j; int j;
double tmp; double tmp;
IGNORE(Time);
NG_IGNORE(Time);
/* clear output/computation arrays */ /* clear output/computation arrays */

2
src/frontend/gens.c

@ -30,7 +30,7 @@ dgen_init(GENcircuit *ckt, wordlist *wl, int nomix, int flag, int model)
dgen *dg, *dg_save; dgen *dg, *dg_save;
wordlist **prevp; wordlist **prevp;
IGNORE(nomix);
NG_IGNORE(nomix);
dg = NEW(dgen); dg = NEW(dgen);
dg->ckt = ckt; dg->ckt = ckt;

2
src/frontend/help/textdisp.c

@ -128,7 +128,7 @@ hlp_thandle(topic **parent)
void void
hlp_tkillwin(topic *top) hlp_tkillwin(topic *top)
{ {
IGNORE(top);
NG_IGNORE(top);
if (curtop) if (curtop)
curtop = curtop->parent; curtop = curtop->parent;

16
src/frontend/help/x11disp.c

@ -34,8 +34,8 @@ static Display *display;
static void handle_wm_messages(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) { static void handle_wm_messages(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) {
topic *top = (topic *) client_data; topic *top = (topic *) client_data;
IGNORE(cont);
IGNORE(w);
NG_IGNORE(cont);
NG_IGNORE(w);
if (event->type == ClientMessage if (event->type == ClientMessage
&& event->xclient.message_type == atom_wm_protocols && event->xclient.message_type == atom_wm_protocols
@ -231,8 +231,8 @@ newtopic(Widget w, caddr_t client_data, caddr_t call_data)
toplink *result = ((handle *) client_data)->result; toplink *result = ((handle *) client_data)->result;
topic *newtop; topic *newtop;
IGNORE(call_data);
IGNORE(w);
NG_IGNORE(call_data);
NG_IGNORE(w);
if (!(newtop = hlp_read(result->place))) { if (!(newtop = hlp_read(result->place))) {
fprintf(stderr, "Internal error: bad link\n"); fprintf(stderr, "Internal error: bad link\n");
@ -255,8 +255,8 @@ delete(Widget w, caddr_t client_data, caddr_t call_data)
topic *top = (topic *) client_data; topic *top = (topic *) client_data;
IGNORE(call_data);
IGNORE(w);
NG_IGNORE(call_data);
NG_IGNORE(w);
hlp_killfamily(top); hlp_killfamily(top);
hlp_fixchildren(top); hlp_fixchildren(top);
@ -268,8 +268,8 @@ quit(Widget w, caddr_t client_data, caddr_t call_data)
topic *top = (topic *) client_data, *parent = top->parent; topic *top = (topic *) client_data, *parent = top->parent;
IGNORE(call_data);
IGNORE(w);
NG_IGNORE(call_data);
NG_IGNORE(w);
while (parent && parent->parent) parent = parent->parent; while (parent && parent->parent) parent = parent->parent;
hlp_killfamily(parent ? parent : top); hlp_killfamily(parent ? parent : top);

4
src/frontend/help/xdisplay.c

@ -30,8 +30,8 @@ int hlp_buttonstyle = BS_LEFT;
/* ARGSUSED */ void hlp_xwait(topic *top, bool on) /* ARGSUSED */ void hlp_xwait(topic *top, bool on)
{ {
IGNORE(on);
IGNORE(top);
NG_IGNORE(on);
NG_IGNORE(top);
} }
void hlp_xclosedisplay(void) {} void hlp_xclosedisplay(void) {}

2
src/frontend/inpcom.c

@ -3144,7 +3144,7 @@ inp_sort_params( struct line *start_card, struct line *end_card, struct line *ca
struct line **ptr_array; struct line **ptr_array;
struct line **ptr_array_ordered; struct line **ptr_array_ordered;
IGNORE(end_card);
NG_IGNORE(end_card);
if ( start_card == NULL ) return; if ( start_card == NULL ) return;

2
src/frontend/misccoms.c

@ -116,7 +116,7 @@ com_bug(wordlist *wl)
{ {
char buf[BSIZE_SP]; char buf[BSIZE_SP];
IGNORE(wl);
NG_IGNORE(wl);
if (!Bug_Addr || !*Bug_Addr) { if (!Bug_Addr || !*Bug_Addr) {
fprintf(cp_err, "Error: No address to send bug reports to.\n"); fprintf(cp_err, "Error: No address to send bug reports to.\n");

2
src/frontend/mw_coms.c

@ -31,7 +31,7 @@ com_removecirc(wordlist *wl)
char* namecircuit; char* namecircuit;
char buf[80]; char buf[80];
IGNORE(wl);
NG_IGNORE(wl);
/* Allocation of a temp wordlist */ /* Allocation of a temp wordlist */
wlist = (struct wordlist *)malloc(sizeof(struct wordlist)); wlist = (struct wordlist *)malloc(sizeof(struct wordlist));

2
src/frontend/numparam/spicenum.c

@ -925,7 +925,7 @@ nupa_fetchinstance (void)
void dump_symbols( tdico *dico_p ) void dump_symbols( tdico *dico_p )
{ {
IGNORE(dico_p);
NG_IGNORE(dico_p);
fprintf (stderr, "Symbol table\n"); fprintf (stderr, "Symbol table\n");
nupa_list_params ( stderr ) ; nupa_list_params ( stderr ) ;

2
src/frontend/numparam/xpressn.c

@ -433,7 +433,7 @@ define (tdico * dico,
SPICE_DSTRING vartemp ; /* vairable temp */ SPICE_DSTRING vartemp ; /* vairable temp */
NGHASHPTR htable_p ; /* hash table */ NGHASHPTR htable_p ; /* hash table */
IGNORE(pval);
NG_IGNORE(pval);
spice_dstring_init(&vartemp) ; spice_dstring_init(&vartemp) ;

12
src/frontend/nutinp.c

@ -271,12 +271,12 @@ nutinp_source(char *file)
void void
nutinp_dodeck(struct line *deck, char *tt, wordlist *end, bool reuse, struct line *options, char *filename) nutinp_dodeck(struct line *deck, char *tt, wordlist *end, bool reuse, struct line *options, char *filename)
{ {
IGNORE(filename);
IGNORE(options);
IGNORE(reuse);
IGNORE(end);
IGNORE(tt);
IGNORE(deck);
NG_IGNORE(filename);
NG_IGNORE(options);
NG_IGNORE(reuse);
NG_IGNORE(end);
NG_IGNORE(tt);
NG_IGNORE(deck);
/* This was "ifdef notdef"-ed out, so I tossed it */ /* This was "ifdef notdef"-ed out, so I tossed it */
} }

10
src/frontend/nutmegif.c

@ -15,11 +15,11 @@
struct variable * nutif_getparam(CKTcircuit *ckt, char **name, char *param, int ind, int do_model) struct variable * nutif_getparam(CKTcircuit *ckt, char **name, char *param, int ind, int do_model)
{ {
IGNORE(do_model);
IGNORE(ind);
IGNORE(param);
IGNORE(name);
IGNORE(ckt);
NG_IGNORE(do_model);
NG_IGNORE(ind);
NG_IGNORE(param);
NG_IGNORE(name);
NG_IGNORE(ckt);
return ((struct variable *) NULL); return ((struct variable *) NULL);
} }

28
src/frontend/outitf.c

@ -624,9 +624,9 @@ OUTpData(void *plotPtr, IFvalue *refValue, IFvalue *valuePtr)
int int
OUTwReference(void *plotPtr, IFvalue *valuePtr, void **refPtr) OUTwReference(void *plotPtr, IFvalue *valuePtr, void **refPtr)
{ {
IGNORE(refPtr);
IGNORE(valuePtr);
IGNORE(plotPtr);
NG_IGNORE(refPtr);
NG_IGNORE(valuePtr);
NG_IGNORE(plotPtr);
return (OK); return (OK);
} }
@ -634,10 +634,10 @@ OUTwReference(void *plotPtr, IFvalue *valuePtr, void **refPtr)
int int
OUTwData(void *plotPtr, int dataIndex, IFvalue *valuePtr, void *refPtr) OUTwData(void *plotPtr, int dataIndex, IFvalue *valuePtr, void *refPtr)
{ {
IGNORE(refPtr);
IGNORE(valuePtr);
IGNORE(dataIndex);
IGNORE(plotPtr);
NG_IGNORE(refPtr);
NG_IGNORE(valuePtr);
NG_IGNORE(dataIndex);
NG_IGNORE(plotPtr);
return (OK); return (OK);
} }
@ -646,7 +646,7 @@ OUTwData(void *plotPtr, int dataIndex, IFvalue *valuePtr, void *refPtr)
int int
OUTwEnd(void *plotPtr) OUTwEnd(void *plotPtr)
{ {
IGNORE(plotPtr);
NG_IGNORE(plotPtr);
return (OK); return (OK);
} }
@ -679,10 +679,10 @@ OUTendPlot(void *plotPtr)
int int
OUTbeginDomain(void *plotPtr, IFuid refName, int refType, IFvalue *outerRefValue) OUTbeginDomain(void *plotPtr, IFuid refName, int refType, IFvalue *outerRefValue)
{ {
IGNORE(outerRefValue);
IGNORE(refType);
IGNORE(refName);
IGNORE(plotPtr);
NG_IGNORE(outerRefValue);
NG_IGNORE(refType);
NG_IGNORE(refName);
NG_IGNORE(plotPtr);
return (OK); return (OK);
} }
@ -691,7 +691,7 @@ OUTbeginDomain(void *plotPtr, IFuid refName, int refType, IFvalue *outerRefValue
int int
OUTendDomain(void *plotPtr) OUTendDomain(void *plotPtr)
{ {
IGNORE(plotPtr);
NG_IGNORE(plotPtr);
return (OK); return (OK);
} }
@ -706,7 +706,7 @@ OUTattributes(void *plotPtr, IFuid varName, int param, IFvalue *value)
GRIDTYPE type; GRIDTYPE type;
int i; int i;
IGNORE(value);
NG_IGNORE(value);
if (param == OUT_SCALE_LIN) if (param == OUT_SCALE_LIN)
type = GRID_LIN; type = GRID_LIN;

6
src/frontend/parse-bison.c

@ -1867,9 +1867,9 @@ yyreturn:
static void static void
PPerror (YYLTYPE *locp, char **line, struct pnode **retval, char const *s) PPerror (YYLTYPE *locp, char **line, struct pnode **retval, char const *s)
{ {
IGNORE(locp);
IGNORE(line);
IGNORE(retval);
NG_IGNORE(locp);
NG_IGNORE(line);
NG_IGNORE(retval);
fprintf (stderr, "%s: %s\n", __func__, s); fprintf (stderr, "%s: %s\n", __func__, s);
} }

6
src/frontend/parse-bison.y

@ -163,9 +163,9 @@ exp:
static void static void
PPerror (YYLTYPE *locp, char **line, struct pnode **retval, char const *s) PPerror (YYLTYPE *locp, char **line, struct pnode **retval, char const *s)
{ {
IGNORE(locp);
IGNORE(line);
IGNORE(retval);
NG_IGNORE(locp);
NG_IGNORE(line);
NG_IGNORE(retval);
fprintf (stderr, "%s: %s\n", __func__, s); fprintf (stderr, "%s: %s\n", __func__, s);
} }

2
src/frontend/parse.c

@ -526,7 +526,7 @@ char *
db_print_pnode_tree(struct pnode *p, char *print) db_print_pnode_tree(struct pnode *p, char *print)
{ {
#if 1 #if 1
IGNORE(print);
NG_IGNORE(print);
db_print_pnode(stdout, p); db_print_pnode(stdout, p);
return NULL; return NULL;
#else #else

8
src/frontend/parser/complete.c

@ -335,9 +335,9 @@ printem(wordlist *wl)
void void
cp_ccom(wordlist *wlist, char *buf, bool esc) cp_ccom(wordlist *wlist, char *buf, bool esc)
{ {
IGNORE(wlist);
IGNORE(buf);
IGNORE(esc);
NG_IGNORE(wlist);
NG_IGNORE(buf);
NG_IGNORE(esc);
return; return;
} }
#endif #endif
@ -572,7 +572,7 @@ cp_kwswitch(int class, char *tree)
void void
cp_ccrestart(bool kwords) cp_ccrestart(bool kwords)
{ {
IGNORE(kwords);
NG_IGNORE(kwords);
/* Ack. */ /* Ack. */
return; return;

4
src/frontend/parser/unixcom.c

@ -240,8 +240,8 @@ cp_hstat(void)
void void
cp_rehash(char *pathlist, bool docc) cp_rehash(char *pathlist, bool docc)
{ {
IGNORE(docc);
IGNORE(pathlist);
NG_IGNORE(docc);
NG_IGNORE(pathlist);
} }
bool bool

6
src/frontend/plotting/agraf.c

@ -45,9 +45,9 @@ ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot, s
int i, j, k; int i, j, k;
int shift; int shift;
IGNORE(xdel);
IGNORE(ydel);
IGNORE(ylog);
NG_IGNORE(xdel);
NG_IGNORE(ydel);
NG_IGNORE(ylog);
/* ANSI C does not specify how many digits are in an exponent for %c /* ANSI C does not specify how many digits are in an exponent for %c
* We assumed it was 2. If it's more, shift starting position over. * We assumed it was 2. If it's more, shift starting position over.

14
src/frontend/plotting/gnuplot.c

@ -236,13 +236,13 @@ ft_writesimple(double *xlims, double *ylims, char *filename, char *title, char *
char filename_data[128]; char filename_data[128];
IGNORE(xlims);
IGNORE(ylims);
IGNORE(title);
IGNORE(xlabel);
IGNORE(ylabel);
IGNORE(gridtype);
IGNORE(plottype);
NG_IGNORE(xlims);
NG_IGNORE(ylims);
NG_IGNORE(title);
NG_IGNORE(xlabel);
NG_IGNORE(ylabel);
NG_IGNORE(gridtype);
NG_IGNORE(plottype);
sprintf(filename_data, "%s.data", filename); sprintf(filename_data, "%s.data", filename);

4
src/frontend/plotting/graf.c

@ -83,7 +83,7 @@ gr_init(double *xlims, double *ylims, /* The size of the screen. */
wordlist *wl; wordlist *wl;
char *comb_title; char *comb_title;
IGNORE(nplots);
NG_IGNORE(nplots);
if (!(graph = NewGraph())) { if (!(graph = NewGraph())) {
return(FALSE); return(FALSE);
@ -443,7 +443,7 @@ drawlegend(GRAPH *graph, int plotno, struct dvec *dv)
void void
gr_end(struct dvec *dv) gr_end(struct dvec *dv)
{ {
IGNORE(dv);
NG_IGNORE(dv);
DevUpdate(); DevUpdate();
} }

6
src/frontend/plotting/grid.c

@ -483,8 +483,8 @@ drawlingrid(GRAPH *graph, char *units, int spacing, int nsp, double dst, double
double m, step; double m, step;
char buf[LABEL_CHARS]; char buf[LABEL_CHARS];
IGNORE(onedec);
IGNORE(mult);
NG_IGNORE(onedec);
NG_IGNORE(mult);
/* i counts how many pixels we have drawn, and j counts which unit /* i counts how many pixels we have drawn, and j counts which unit
* we are at. * we are at.
@ -1318,7 +1318,7 @@ arcset(GRAPH *graph, double rad, double prevrad, double irad, double iprevrad, d
double iangle = atan2((double) prevrad, (double) irad); double iangle = atan2((double) prevrad, (double) irad);
int x, xlab, ylab; int x, xlab, ylab;
IGNORE(nlab);
NG_IGNORE(nlab);
/* Let's be lazy and just draw everything -- we won't get called too /* Let's be lazy and just draw everything -- we won't get called too
* much and the circles get clipped anyway... * much and the circles get clipped anyway...

2
src/frontend/plotting/plot5.c

@ -203,7 +203,7 @@ Plt5_SetLinestyle(int linestyleid)
int int
Plt5_SetColor(int colorid) Plt5_SetColor(int colorid)
{ {
IGNORE(colorid);
NG_IGNORE(colorid);
/* do nothing */ /* do nothing */
return 0; return 0;

32
src/frontend/plotting/x11.c

@ -270,7 +270,7 @@ handlekeypressed(Widget w, caddr_t clientdata, caddr_t calldata)
char text[4]; char text[4];
int nbytes; int nbytes;
IGNORE(w);
NG_IGNORE(w);
nbytes = XLookupString(keyev, text, 4, NULL, NULL); nbytes = XLookupString(keyev, text, 4, NULL, NULL);
if (!nbytes) return; if (!nbytes) return;
@ -296,7 +296,7 @@ handlebuttonev(Widget w, caddr_t clientdata, caddr_t calldata)
XButtonEvent *buttonev = (XButtonEvent *) calldata; XButtonEvent *buttonev = (XButtonEvent *) calldata;
IGNORE(w);
NG_IGNORE(w);
switch (buttonev->button) { switch (buttonev->button) {
case Button1: case Button1:
@ -313,8 +313,8 @@ handlebuttonev(Widget w, caddr_t clientdata, caddr_t calldata)
static void handle_wm_messages(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) { static void handle_wm_messages(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) {
GRAPH *graph = (GRAPH *) client_data; GRAPH *graph = (GRAPH *) client_data;
IGNORE(cont);
IGNORE(w);
NG_IGNORE(cont);
NG_IGNORE(w);
if (event->type == ClientMessage if (event->type == ClientMessage
&& event->xclient.message_type == atom_wm_protocols && event->xclient.message_type == atom_wm_protocols
@ -558,10 +558,10 @@ X11_Text(char *text, int x, int y)
int int
X11_DefineColor(int colorid, double red, double green, double blue) X11_DefineColor(int colorid, double red, double green, double blue)
{ {
IGNORE(blue);
IGNORE(green);
IGNORE(red);
IGNORE(colorid);
NG_IGNORE(blue);
NG_IGNORE(green);
NG_IGNORE(red);
NG_IGNORE(colorid);
internalerror("X11_DefineColor not implemented."); internalerror("X11_DefineColor not implemented.");
return 0; return 0;
@ -571,8 +571,8 @@ X11_DefineColor(int colorid, double red, double green, double blue)
int int
X11_DefineLinestyle(int linestyleid, int mask) X11_DefineLinestyle(int linestyleid, int mask)
{ {
IGNORE(mask);
IGNORE(linestyleid);
NG_IGNORE(mask);
NG_IGNORE(linestyleid);
internalerror("X11_DefineLinestyle not implemented."); internalerror("X11_DefineLinestyle not implemented.");
return 0; return 0;
@ -845,8 +845,8 @@ zoomin(GRAPH *graph)
void void
hardcopy(Widget w, caddr_t client_data, caddr_t call_data) hardcopy(Widget w, caddr_t client_data, caddr_t call_data)
{ {
IGNORE(call_data);
IGNORE(w);
NG_IGNORE(call_data);
NG_IGNORE(w);
/* com_hardcopy() -> gr_resize() -> setcolor() dirung postscript /* com_hardcopy() -> gr_resize() -> setcolor() dirung postscript
printing will act on currentgraph with a DEVDEP inherited from PSdevdep. printing will act on currentgraph with a DEVDEP inherited from PSdevdep.
@ -874,8 +874,8 @@ killwin(Widget w, caddr_t client_data, caddr_t call_data)
GRAPH *graph = (GRAPH *) client_data; GRAPH *graph = (GRAPH *) client_data;
IGNORE(call_data);
IGNORE(w);
NG_IGNORE(call_data);
NG_IGNORE(w);
/* Iplots are done asynchronously */ /* Iplots are done asynchronously */
DEVDEP(graph).isopen = 0; DEVDEP(graph).isopen = 0;
@ -910,7 +910,7 @@ redraw(Widget w, caddr_t client_data, caddr_t call_data)
XRectangle rects[30]; XRectangle rects[30];
int n = 1; int n = 1;
IGNORE(w);
NG_IGNORE(w);
DEVDEP(graph).isopen = 1; DEVDEP(graph).isopen = 1;
@ -949,7 +949,7 @@ resize(Widget w, caddr_t client_data, caddr_t call_data)
GRAPH *graph = (GRAPH *) client_data; GRAPH *graph = (GRAPH *) client_data;
XEvent ev; XEvent ev;
IGNORE(call_data);
NG_IGNORE(call_data);
/* pull out all other exposure events /* pull out all other exposure events
Also, get rid of other StructureNotify events on this window. */ Also, get rid of other StructureNotify events on this window. */

6
src/frontend/runcoms.c

@ -383,9 +383,9 @@ ft_dorun(char *file)
bool bool
ft_getOutReq(FILE **fpp, struct plot **plotp, bool *binp, char *name, char *title) ft_getOutReq(FILE **fpp, struct plot **plotp, bool *binp, char *name, char *title)
{ {
IGNORE(title);
IGNORE(name);
IGNORE(plotp);
NG_IGNORE(title);
NG_IGNORE(name);
NG_IGNORE(plotp);
if (rawfileFp) { if (rawfileFp) {
*fpp = rawfileFp; *fpp = rawfileFp;

4
src/frontend/runcoms2.c

@ -52,7 +52,7 @@ com_resume(wordlist *wl)
bool ascii = AsciiRawFile; bool ascii = AsciiRawFile;
/*end saj*/ /*end saj*/
IGNORE(wl);
NG_IGNORE(wl);
/*saj fix segment*/ /*saj fix segment*/
if (!ft_curckt) { if (!ft_curckt) {
@ -174,7 +174,7 @@ com_rset(wordlist *wl)
{ {
struct variable *v, *next; struct variable *v, *next;
IGNORE(wl);
NG_IGNORE(wl);
if (ft_curckt == NULL) { if (ft_curckt == NULL) {
fprintf(cp_err, "Error: there is no circuit loaded.\n"); fprintf(cp_err, "Error: there is no circuit loaded.\n");

2
src/frontend/signal_handler.c

@ -87,7 +87,7 @@ ft_sigintr(void)
RETSIGTYPE RETSIGTYPE
sigfloat(int sig, int code) sigfloat(int sig, int code)
{ {
IGNORE(sig);
NG_IGNORE(sig);
gr_clean(); gr_clean();
fperror("Error", code); fperror("Error", code);

10
src/frontend/spiceif.c

@ -536,7 +536,7 @@ fputs("\t(Note that you must use an = to separate option name and value.)\n",
void void
if_dump(CKTcircuit *ckt, FILE *file) if_dump(CKTcircuit *ckt, FILE *file)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
/*void *cc = (void *) ckt;*/ /*void *cc = (void *) ckt;*/
@ -620,7 +620,7 @@ spif_getparam_special(CKTcircuit *ckt,char **name,char *param,int ind,int do_mod
GENmodel *mod=(GENmodel *)NULL; GENmodel *mod=(GENmodel *)NULL;
IFdevice *device; IFdevice *device;
IGNORE(do_model);
NG_IGNORE(do_model);
/* fprintf(cp_err, "Calling if_getparam(%s, %s)\n", *name, param); */ /* fprintf(cp_err, "Calling if_getparam(%s, %s)\n", *name, param); */
@ -1011,7 +1011,7 @@ parmlookup(IFdevice *dev, GENinstance **inptr, char *param, int do_model, int in
{ {
int i; int i;
IGNORE(inptr);
NG_IGNORE(inptr);
/* First try the device questions... */ /* First try the device questions... */
if (!do_model && dev->numInstanceParms) { if (!do_model && dev->numInstanceParms) {
@ -1058,7 +1058,7 @@ doask(CKTcircuit *ckt, int typecode, GENinstance *dev, GENmodel *mod, IFparm *op
static IFvalue pv; static IFvalue pv;
int err; int err;
IGNORE(typecode);
NG_IGNORE(typecode);
pv.iValue = ind; /* Sometimes this will be junk and ignored... */ pv.iValue = ind; /* Sometimes this will be junk and ignored... */
@ -1093,7 +1093,7 @@ doset(CKTcircuit *ckt, int typecode, GENinstance *dev, GENmodel *mod, IFparm *op
double *dptr; double *dptr;
int i; int i;
IGNORE(typecode);
NG_IGNORE(typecode);
/* Count items */ /* Count items */
if (opt->dataType & IF_VECTOR) { if (opt->dataType & IF_VECTOR) {

2
src/frontend/where.c

@ -18,7 +18,7 @@ com_where(wordlist *wl)
{ {
char *msg; char *msg;
IGNORE(wl);
NG_IGNORE(wl);
/*CDHW typing where with no current circuit caused crashes CDHW*/ /*CDHW typing where with no current circuit caused crashes CDHW*/
if (!ft_curckt) { if (!ft_curckt) {

2
src/include/ngspice.h

@ -246,7 +246,7 @@ extern int tcl_fprintf(FILE *f, const char *format, ...);
#endif #endif
/* macro to ignore unused variables and parameters */ /* macro to ignore unused variables and parameters */
#define IGNORE(x) (void)x
#define NG_IGNORE(x) (void)x
#endif /* NGSPICE_H_INCLUDED */ #endif /* NGSPICE_H_INCLUDED */

82
src/main.c

@ -237,10 +237,10 @@ IFfrontEnd nutmeginfo;
int int
if_run(CKTcircuit *t, char *w, wordlist *s, INPtables *b) if_run(CKTcircuit *t, char *w, wordlist *s, INPtables *b)
{ {
IGNORE(b);
IGNORE(s);
IGNORE(w);
IGNORE(t);
NG_IGNORE(b);
NG_IGNORE(s);
NG_IGNORE(w);
NG_IGNORE(t);
return (0); return (0);
} }
@ -249,9 +249,9 @@ if_run(CKTcircuit *t, char *w, wordlist *s, INPtables *b)
int int
if_sens_run(CKTcircuit *t, wordlist *args, INPtables *tab) if_sens_run(CKTcircuit *t, wordlist *args, INPtables *tab)
{ {
IGNORE(tab);
IGNORE(args);
IGNORE(t);
NG_IGNORE(tab);
NG_IGNORE(args);
NG_IGNORE(t);
return (0); return (0);
} }
@ -260,8 +260,8 @@ if_sens_run(CKTcircuit *t, wordlist *args, INPtables *tab)
void void
if_dump(CKTcircuit *ckt, FILE *fp) if_dump(CKTcircuit *ckt, FILE *fp)
{ {
IGNORE(fp);
IGNORE(ckt);
NG_IGNORE(fp);
NG_IGNORE(ckt);
return; return;
} }
@ -270,8 +270,8 @@ if_dump(CKTcircuit *ckt, FILE *fp)
CKTcircuit * CKTcircuit *
if_inpdeck(struct line *deck, INPtables **tab) if_inpdeck(struct line *deck, INPtables **tab)
{ {
IGNORE(tab);
IGNORE(deck);
NG_IGNORE(tab);
NG_IGNORE(deck);
return NULL; return NULL;
} }
@ -279,10 +279,10 @@ if_inpdeck(struct line *deck, INPtables **tab)
int int
if_option(CKTcircuit *ckt, char *name, enum cp_types type, void *value) if_option(CKTcircuit *ckt, char *name, enum cp_types type, void *value)
{ {
IGNORE(value);
IGNORE(type);
IGNORE(name);
IGNORE(ckt);
NG_IGNORE(value);
NG_IGNORE(type);
NG_IGNORE(name);
NG_IGNORE(ckt);
return 0; return 0;
} }
@ -290,8 +290,8 @@ if_option(CKTcircuit *ckt, char *name, enum cp_types type, void *value)
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
void if_cktfree(CKTcircuit *ckt, INPtables *tab) void if_cktfree(CKTcircuit *ckt, INPtables *tab)
{ {
IGNORE(tab);
IGNORE(ckt);
NG_IGNORE(tab);
NG_IGNORE(ckt);
return; return;
} }
@ -299,14 +299,14 @@ void if_cktfree(CKTcircuit *ckt, INPtables *tab)
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
void if_setndnames(char *line) void if_setndnames(char *line)
{ {
IGNORE(line);
NG_IGNORE(line);
} }
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
char * char *
if_errstring(int code) if_errstring(int code)
{ {
IGNORE(code);
NG_IGNORE(code);
return ("spice error"); return ("spice error");
} }
@ -314,9 +314,9 @@ if_errstring(int code)
void void
if_setparam_model(CKTcircuit *ckt, char **name, char *val) if_setparam_model(CKTcircuit *ckt, char **name, char *val)
{ {
IGNORE(val);
IGNORE(name);
IGNORE(ckt);
NG_IGNORE(val);
NG_IGNORE(name);
NG_IGNORE(ckt);
return; return;
} }
@ -324,11 +324,11 @@ if_setparam_model(CKTcircuit *ckt, char **name, char *val)
void void
if_setparam(CKTcircuit *ckt, char **name, char *param, struct dvec *val, int do_model) if_setparam(CKTcircuit *ckt, char **name, char *param, struct dvec *val, int do_model)
{ {
IGNORE(do_model);
IGNORE(val);
IGNORE(param);
IGNORE(name);
IGNORE(ckt);
NG_IGNORE(do_model);
NG_IGNORE(val);
NG_IGNORE(param);
NG_IGNORE(name);
NG_IGNORE(ckt);
return; return;
} }
@ -337,10 +337,10 @@ if_setparam(CKTcircuit *ckt, char **name, char *param, struct dvec *val, int do_
bool bool
if_tranparams(struct circ *ckt, double *start, double *stop, double *step) if_tranparams(struct circ *ckt, double *start, double *stop, double *step)
{ {
IGNORE(step);
IGNORE(stop);
IGNORE(start);
IGNORE(ckt);
NG_IGNORE(step);
NG_IGNORE(stop);
NG_IGNORE(start);
NG_IGNORE(ckt);
return (FALSE); return (FALSE);
} }
@ -349,8 +349,8 @@ if_tranparams(struct circ *ckt, double *start, double *stop, double *step)
struct variable * struct variable *
if_getstat(CKTcircuit *ckt, char *name) if_getstat(CKTcircuit *ckt, char *name)
{ {
IGNORE(name);
IGNORE(ckt);
NG_IGNORE(name);
NG_IGNORE(ckt);
return (NULL); return (NULL);
} }
@ -373,30 +373,30 @@ Ipc_Status_t ipc_send_errchk(void ) {
} }
Ipc_Status_t ipc_get_line(char *str , int *len , Ipc_Wait_t wait ){ Ipc_Status_t ipc_get_line(char *str , int *len , Ipc_Wait_t wait ){
Ipc_Status_t x = IPC_STATUS_OK; Ipc_Status_t x = IPC_STATUS_OK;
IGNORE(str);
IGNORE(len);
IGNORE(wait);
NG_IGNORE(str);
NG_IGNORE(len);
NG_IGNORE(wait);
return(x); return(x);
} }
struct line *ENHtranslate_poly(struct line *deck){ struct line *ENHtranslate_poly(struct line *deck){
IGNORE(deck);
NG_IGNORE(deck);
return(NULL); return(NULL);
} }
int load_opus(char *name){ int load_opus(char *name){
IGNORE(name);
NG_IGNORE(name);
return(1); return(1);
} }
char *MIFgettok(char **s){ char *MIFgettok(char **s){
IGNORE(s);
NG_IGNORE(s);
return(NULL); return(NULL);
} }
void EVTprint(wordlist *wl){ void EVTprint(wordlist *wl){
IGNORE(wl);
NG_IGNORE(wl);
return; return;
} }
struct dvec *EVTfindvec(char *node){ struct dvec *EVTfindvec(char *node){
IGNORE(node);
NG_IGNORE(node);
return NULL; return NULL;
} }
#endif /* XSPICE */ #endif /* XSPICE */

12
src/maths/cmaths/cmath2.c

@ -249,7 +249,7 @@ cx_rnd(void *data, short int type, int length, int *newlength, short int *newtyp
void * void *
cx_sunif(void *data, short int type, int length, int *newlength, short int *newtype) cx_sunif(void *data, short int type, int length, int *newlength, short int *newtype)
{ {
IGNORE(data);
NG_IGNORE(data);
*newlength = length; *newlength = length;
checkseed(); checkseed();
@ -280,7 +280,7 @@ cx_sunif(void *data, short int type, int length, int *newlength, short int *newt
void * void *
cx_sgauss(void *data, short int type, int length, int *newlength, short int *newtype) cx_sgauss(void *data, short int type, int length, int *newlength, short int *newtype)
{ {
IGNORE(data);
NG_IGNORE(data);
*newlength = length; *newlength = length;
checkseed(); checkseed();
@ -394,8 +394,8 @@ cx_length(void *data, short int type, int length, int *newlength, short int *new
{ {
double *d; double *d;
IGNORE(data);
IGNORE(type);
NG_IGNORE(data);
NG_IGNORE(type);
*newlength = 1; *newlength = 1;
*newtype = VF_REAL; *newtype = VF_REAL;
@ -417,7 +417,7 @@ cx_vector(void *data, short int type, int length, int *newlength, short int *new
int i, len; int i, len;
double *d; double *d;
IGNORE(length);
NG_IGNORE(length);
if (type == VF_REAL) if (type == VF_REAL)
len = (int)FTEcabs(*dd); len = (int)FTEcabs(*dd);
@ -444,7 +444,7 @@ cx_unitvec(void *data, short int type, int length, int *newlength, short int *ne
int i, len; int i, len;
double *d; double *d;
IGNORE(length);
NG_IGNORE(length);
if (type == VF_REAL) if (type == VF_REAL)
len = (int)FTEcabs(*dd); len = (int)FTEcabs(*dd);

18
src/maths/sparse/spsmp.c

@ -148,7 +148,7 @@ SMPclear(SMPmatrix *Matrix)
spClear( Matrix ); spClear( Matrix );
} }
#define IGNORE(x) (void)x
#define NG_IGNORE(x) (void)x
/* /*
* SMPcLUfac() * SMPcLUfac()
@ -157,7 +157,7 @@ SMPclear(SMPmatrix *Matrix)
int int
SMPcLUfac(SMPmatrix *Matrix, double PivTol) SMPcLUfac(SMPmatrix *Matrix, double PivTol)
{ {
IGNORE(PivTol);
NG_IGNORE(PivTol);
spSetComplex( Matrix ); spSetComplex( Matrix );
return spFactor( Matrix ); return spFactor( Matrix );
@ -170,7 +170,7 @@ SMPcLUfac(SMPmatrix *Matrix, double PivTol)
int int
SMPluFac(SMPmatrix *Matrix, double PivTol, double Gmin) SMPluFac(SMPmatrix *Matrix, double PivTol, double Gmin)
{ {
IGNORE(PivTol);
NG_IGNORE(PivTol);
spSetReal( Matrix ); spSetReal( Matrix );
LoadGmin( Matrix, Gmin ); LoadGmin( Matrix, Gmin );
return spFactor( Matrix ); return spFactor( Matrix );
@ -208,8 +208,8 @@ void
SMPcaSolve(SMPmatrix *Matrix, double RHS[], double iRHS[], SMPcaSolve(SMPmatrix *Matrix, double RHS[], double iRHS[],
double Spare[], double iSpare[]) double Spare[], double iSpare[])
{ {
IGNORE(iSpare);
IGNORE(Spare);
NG_IGNORE(iSpare);
NG_IGNORE(Spare);
spSolveTransposed( Matrix, RHS, RHS, iRHS, iRHS ); spSolveTransposed( Matrix, RHS, RHS, iRHS, iRHS );
} }
@ -221,8 +221,8 @@ void
SMPcSolve(SMPmatrix *Matrix, double RHS[], double iRHS[], SMPcSolve(SMPmatrix *Matrix, double RHS[], double iRHS[],
double Spare[], double iSpare[]) double Spare[], double iSpare[])
{ {
IGNORE(iSpare);
IGNORE(Spare);
NG_IGNORE(iSpare);
NG_IGNORE(Spare);
spSolve( Matrix, RHS, RHS, iRHS, iRHS ); spSolve( Matrix, RHS, RHS, iRHS, iRHS );
} }
@ -233,7 +233,7 @@ SMPcSolve(SMPmatrix *Matrix, double RHS[], double iRHS[],
void void
SMPsolve(SMPmatrix *Matrix, double RHS[], double Spare[]) SMPsolve(SMPmatrix *Matrix, double RHS[], double Spare[])
{ {
IGNORE(Spare);
NG_IGNORE(Spare);
spSolve( Matrix, RHS, RHS, (spREAL*)NULL, (spREAL*)NULL ); spSolve( Matrix, RHS, RHS, (spREAL*)NULL, (spREAL*)NULL );
} }
@ -284,7 +284,7 @@ SMPpreOrder(SMPmatrix *Matrix)
void void
SMPprint(SMPmatrix *Matrix, FILE *File) SMPprint(SMPmatrix *Matrix, FILE *File)
{ {
IGNORE(File);
NG_IGNORE(File);
spPrint( Matrix, 0, 1, 1 ); spPrint( Matrix, 0, 1, 1 );
} }

2
src/ngnutmeg.c

@ -68,7 +68,7 @@ IFsimulator SIMinfo = {
void void
NDEVacct(CKTcircuit *ckt, FILE *file) NDEVacct(CKTcircuit *ckt, FILE *file)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
fprintf(file, "Ouch, you have called NDEV from ngnutmeg\n"); fprintf(file, "Ouch, you have called NDEV from ngnutmeg\n");
} }
#endif #endif

26
src/ngsconvert.c

@ -437,23 +437,23 @@ void cp_pushcontrol(void) { }
void cp_popcontrol(void) { } void cp_popcontrol(void) { }
void out_init(void) { } void out_init(void) { }
void cp_doquit(void) { exit(0); } void cp_doquit(void) { exit(0); }
void cp_usrvars(struct variable **v1, struct variable **v2) { IGNORE(v2); IGNORE(v1); return; }
int cp_evloop(char *s) { IGNORE(s); return (0); }
void cp_ccon(bool o) { IGNORE(o); }
char*if_errstring(int c) { IGNORE(c); return ("error"); }
void cp_usrvars(struct variable **v1, struct variable **v2) { NG_IGNORE(v2); NG_IGNORE(v1); return; }
int cp_evloop(char *s) { NG_IGNORE(s); return (0); }
void cp_ccon(bool o) { NG_IGNORE(o); }
char*if_errstring(int c) { NG_IGNORE(c); return ("error"); }
#ifndef out_printf #ifndef out_printf
void out_printf(char *fmt, ...) { IGNORE(fmt); }
void out_printf(char *fmt, ...) { NG_IGNORE(fmt); }
#endif #endif
void out_send(char *string) { IGNORE(string); }
struct variable * cp_enqvar(char *word) { IGNORE(word); return (NULL); }
struct dvec *vec_get(const char *word) { IGNORE(word); return (NULL); }
void out_send(char *string) { NG_IGNORE(string); }
struct variable * cp_enqvar(char *word) { NG_IGNORE(word); return (NULL); }
struct dvec *vec_get(const char *word) { NG_IGNORE(word); return (NULL); }
void cp_ccom(wordlist *w, char *b, bool e) { void cp_ccom(wordlist *w, char *b, bool e) {
IGNORE(e);
IGNORE(b);
IGNORE(w); return; }
NG_IGNORE(e);
NG_IGNORE(b);
NG_IGNORE(w); return; }
int cp_usrset(struct variable *v, bool i) { int cp_usrset(struct variable *v, bool i) {
IGNORE(i);
IGNORE(v); return(US_OK); }
NG_IGNORE(i);
NG_IGNORE(v); return(US_OK); }
int disptype; int disptype;

2
src/spicelib/analysis/acaskq.c

@ -16,7 +16,7 @@ Author: 1985 Thomas L. Quarles
int int
ACaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) ACaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/acsetp.c

@ -15,7 +15,7 @@ Author: 1985 Thomas L. Quarles
int int
ACsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) ACsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/cktacct.c

@ -24,7 +24,7 @@ Author: 1985 Thomas L. Quarles
int int
CKTacct(CKTcircuit *ckt, JOB *anal, int which, IFvalue *val) CKTacct(CKTcircuit *ckt, JOB *anal, int which, IFvalue *val)
{ {
IGNORE(anal);
NG_IGNORE(anal);
switch(which) { switch(which) {

2
src/spicelib/analysis/cktaskaq.c

@ -20,7 +20,7 @@ CKTaskAnalQ(CKTcircuit *ckt, JOB *analPtr, int parm, IFvalue *value, IFvalue *se
{ {
int type = analPtr->JOBtype; int type = analPtr->JOBtype;
IGNORE(selector);
NG_IGNORE(selector);
if((analInfo[type]->askQuest) == NULL) return(E_BADPARM); if((analInfo[type]->askQuest) == NULL) return(E_BADPARM);
return( (*(analInfo[type]->askQuest))(ckt,analPtr,parm,value)); return( (*(analInfo[type]->askQuest))(ckt,analPtr,parm,value));

4
src/spicelib/analysis/cktasknq.c

@ -21,8 +21,8 @@ Author: 1985 Thomas L. Quarles
int int
CKTaskNodQst(CKTcircuit *ckt, CKTnode *node, int parm, IFvalue *value, IFvalue *selector) CKTaskNodQst(CKTcircuit *ckt, CKTnode *node, int parm, IFvalue *value, IFvalue *selector)
{ {
IGNORE(ckt);
IGNORE(selector);
NG_IGNORE(ckt);
NG_IGNORE(selector);
if(!node) return(E_BADPARM); if(!node) return(E_BADPARM);
switch(parm) { switch(parm) {

2
src/spicelib/analysis/cktdelt.c

@ -18,7 +18,7 @@ CKTdelTask(CKTcircuit *ckt, TSKtask *task)
JOB *job; JOB *job;
JOB *old=NULL; JOB *old=NULL;
IGNORE(ckt);
NG_IGNORE(ckt);
for(job = task->jobs; job; job=job->JOBnextJob){ for(job = task->jobs; job; job=job->JOBnextJob){
if(old) FREE(old); if(old) FREE(old);

4
src/spicelib/analysis/cktdlti.c

@ -20,8 +20,8 @@ Author: 1985 Thomas L. Quarles
int int
CKTdltInst(CKTcircuit *ckt, void *instance) CKTdltInst(CKTcircuit *ckt, void *instance)
{ {
IGNORE(ckt);
IGNORE(instance);
NG_IGNORE(ckt);
NG_IGNORE(instance);
return(E_UNSUPP); return(E_UNSUPP);
} }

6
src/spicelib/analysis/cktfnda.c

@ -25,9 +25,9 @@ CKTfndAnal(CKTcircuit *ckt, int *analIndex, JOB **anal, IFuid name, TSKtask *inT
TSKtask *task = /* fixme, drop that */ inTask; TSKtask *task = /* fixme, drop that */ inTask;
JOB *here; JOB *here;
IGNORE(ckt);
IGNORE(analIndex);
IGNORE(taskName);
NG_IGNORE(ckt);
NG_IGNORE(analIndex);
NG_IGNORE(taskName);
for (here = task->jobs; here; here = here->JOBnextJob) { for (here = task->jobs; here; here = here->JOBnextJob) {
if(strcmp(here->JOBname,name)==0) { if(strcmp(here->JOBname,name)==0) {

6
src/spicelib/analysis/cktftask.c

@ -20,9 +20,9 @@ Author: 1985 Thomas L. Quarles
int int
CKTfndTask(CKTcircuit *ckt, TSKtask **taskPtr, IFuid taskName) CKTfndTask(CKTcircuit *ckt, TSKtask **taskPtr, IFuid taskName)
{ {
IGNORE(ckt);
IGNORE(taskPtr);
IGNORE(taskName);
NG_IGNORE(ckt);
NG_IGNORE(taskPtr);
NG_IGNORE(taskName);
return(E_UNSUPP); return(E_UNSUPP);
} }

2
src/spicelib/analysis/cktmask.c

@ -20,7 +20,7 @@ CKTmodAsk(CKTcircuit *ckt, GENmodel *modfast, int which, IFvalue *value, IFvalue
{ {
int type = modfast->GENmodType; int type = modfast->GENmodType;
IGNORE(selector);
NG_IGNORE(selector);
if((*DEVices[type]).DEVmodAsk) { if((*DEVices[type]).DEVmodAsk) {
return( (*((*DEVices[type]).DEVmodAsk)) (ckt, return( (*((*DEVices[type]).DEVmodAsk)) (ckt,

2
src/spicelib/analysis/cktmknod.c

@ -21,7 +21,7 @@ CKTmkNode(CKTcircuit *ckt, CKTnode **node)
{ {
CKTnode *mynode; CKTnode *mynode;
IGNORE(ckt);
NG_IGNORE(ckt);
mynode = TMALLOC(CKTnode, 1); mynode = TMALLOC(CKTnode, 1);
if(mynode == (CKTnode *)NULL) return(E_NOMEM); if(mynode == (CKTnode *)NULL) return(E_NOMEM);

4
src/spicelib/analysis/cktmpar.c

@ -20,8 +20,8 @@ CKTmodParam(CKTcircuit *ckt, GENmodel *modfast, int param, IFvalue *val, IFvalue
{ {
int type = modfast->GENmodType; int type = modfast->GENmodType;
IGNORE(ckt);
IGNORE(selector);
NG_IGNORE(ckt);
NG_IGNORE(selector);
if (((*DEVices[type]).DEVmodParam)) { if (((*DEVices[type]).DEVmodParam)) {
return(((*((*DEVices[type]).DEVmodParam)) (param,val, return(((*((*DEVices[type]).DEVmodParam)) (param,val,

2
src/spicelib/analysis/cktnewan.c

@ -18,7 +18,7 @@ extern SPICEanalysis *analInfo[];
int int
CKTnewAnal(CKTcircuit *ckt, int type, IFuid name, JOB **analPtr, TSKtask *taskPtr) CKTnewAnal(CKTcircuit *ckt, int type, IFuid name, JOB **analPtr, TSKtask *taskPtr)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
if(type==0) { if(type==0) {
/* special case for analysis type 0 == option card */ /* special case for analysis type 0 == option card */

2
src/spicelib/analysis/cktntask.c

@ -24,7 +24,7 @@ CKTnewTask(CKTcircuit *ckt, TSKtask **taskPtr, IFuid taskName, TSKtask **defPtr)
{ {
TSKtask *tsk, *def=NULL; TSKtask *tsk, *def=NULL;
IGNORE(ckt);
NG_IGNORE(ckt);
*taskPtr = TMALLOC(TSKtask, 1); *taskPtr = TMALLOC(TSKtask, 1);
if(*taskPtr==NULL) return(E_NOMEM); if(*taskPtr==NULL) return(E_NOMEM);

4
src/spicelib/analysis/cktop.c

@ -393,7 +393,7 @@ gillespie_src (CKTcircuit * ckt, long int firstmode,
double *OldRhsOld, *OldCKTstate0; double *OldRhsOld, *OldCKTstate0;
CKTnode *n; CKTnode *n;
IGNORE(iterlim);
NG_IGNORE(iterlim);
ckt->CKTmode = firstmode; ckt->CKTmode = firstmode;
(*(SPfrontEnd->IFerror)) (ERR_INFO, (*(SPfrontEnd->IFerror)) (ERR_INFO,
@ -601,7 +601,7 @@ spice3_src (CKTcircuit * ckt, long int firstmode,
int converged, i; int converged, i;
IGNORE(iterlim);
NG_IGNORE(iterlim);
ckt->CKTmode = firstmode; ckt->CKTmode = firstmode;
(*(SPfrontEnd->IFerror)) (ERR_INFO, (*(SPfrontEnd->IFerror)) (ERR_INFO,

2
src/spicelib/analysis/cktparam.c

@ -21,7 +21,7 @@ CKTparam(CKTcircuit *ckt, GENinstance *fast, int param, IFvalue *val, IFvalue *s
int type; int type;
GENinstance *myfast = /*fixme*/ fast; GENinstance *myfast = /*fixme*/ fast;
IGNORE(ckt);
NG_IGNORE(ckt);
type = myfast->GENmodPtr->GENmodType; type = myfast->GENmodPtr->GENmodType;
if(((*DEVices[type]).DEVparam)) { if(((*DEVices[type]).DEVparam)) {

2
src/spicelib/analysis/cktpmnam.c

@ -31,7 +31,7 @@ CKTpModName(char *parm, IFvalue *val, CKTcircuit *ckt, int type, IFuid name, GEN
int error; /* int to store evaluate error return codes in */ int error; /* int to store evaluate error return codes in */
int i; int i;
IGNORE(name);
NG_IGNORE(name);
for(i=0;i<(*(*DEVices[type]).DEVpublic.numModelParms);i++) { for(i=0;i<(*(*DEVices[type]).DEVpublic.numModelParms);i++) {
if(strcmp(parm,((*DEVices[type]).DEVpublic.modelParms[i].keyword))==0){ if(strcmp(parm,((*DEVices[type]).DEVpublic.modelParms[i].keyword))==0){

2
src/spicelib/analysis/cktpname.c

@ -33,7 +33,7 @@ CKTpName(char *parm, IFvalue *val, CKTcircuit *ckt, int dev, char *name, GENinst
int error; /* int to store evaluate error return codes in */ int error; /* int to store evaluate error return codes in */
int i; int i;
IGNORE(name);
NG_IGNORE(name);
for(i=0;i<(*(*DEVices[dev]).DEVpublic.numInstanceParms);i++) { for(i=0;i<(*(*DEVices[dev]).DEVpublic.numInstanceParms);i++) {
if(strcmp(parm, if(strcmp(parm,

2
src/spicelib/analysis/cktpzstr.c

@ -781,7 +781,7 @@ CKTpzVerify(PZtrial **set, PZtrial *new_trial)
PZtrial *t, *prev; PZtrial *t, *prev;
IGNORE(set);
NG_IGNORE(set);
NZeros += 1; NZeros += 1;
if (new_trial->s.imag != 0.0) if (new_trial->s.imag != 0.0)

4
src/spicelib/analysis/cktsens.c

@ -719,7 +719,7 @@ sens_getp(sgen *sg, CKTcircuit *ckt, IFvalue *val)
{ {
int pid; int pid;
IGNORE(ckt);
NG_IGNORE(ckt);
error = 0; error = 0;
@ -765,7 +765,7 @@ sens_setp(sgen *sg, CKTcircuit *ckt, IFvalue *val)
{ {
int pid; int pid;
IGNORE(ckt);
NG_IGNORE(ckt);
error = 0; error = 0;

2
src/spicelib/analysis/cktsetap.c

@ -20,7 +20,7 @@ CKTsetAnalPm(CKTcircuit *ckt, JOB *analPtr, int parm, IFvalue *value, IFvalue *s
{ {
int type = analPtr->JOBtype; int type = analPtr->JOBtype;
IGNORE(selector);
NG_IGNORE(selector);
if((analInfo[type]->setParm)==NULL) return(E_BADPARM); if((analInfo[type]->setParm)==NULL) return(E_BADPARM);
return( (*(analInfo[type]->setParm))(ckt,analPtr,parm,value) ); return( (*(analInfo[type]->setParm))(ckt,analPtr,parm,value) );

4
src/spicelib/analysis/cktsetnp.c

@ -20,8 +20,8 @@ Author: 1985 Thomas L. Quarles
int int
CKTsetNodPm(CKTcircuit *ckt, CKTnode *node, int parm, IFvalue *value, IFvalue *selector) CKTsetNodPm(CKTcircuit *ckt, CKTnode *node, int parm, IFvalue *value, IFvalue *selector)
{ {
IGNORE(ckt);
IGNORE(selector);
NG_IGNORE(ckt);
NG_IGNORE(selector);
if(!node) return(E_BADPARM); if(!node) return(E_BADPARM);
switch(parm) { switch(parm) {

6
src/spicelib/analysis/cktsgen.c

@ -179,19 +179,19 @@ sgen_next(sgen **xsg)
int set_inst(sgen *sg) int set_inst(sgen *sg)
{ {
IGNORE(sg);
NG_IGNORE(sg);
return 1; return 1;
} }
int set_model(sgen *sg) int set_model(sgen *sg)
{ {
IGNORE(sg);
NG_IGNORE(sg);
return 1; return 1;
} }
int set_dev(sgen *sg) int set_dev(sgen *sg)
{ {
IGNORE(sg);
NG_IGNORE(sg);
return 1; return 1;
} }

2
src/spicelib/analysis/cktsopt.c

@ -32,7 +32,7 @@ CKTsetOpt(CKTcircuit *ckt, JOB *anal, int opt, IFvalue *val)
{ {
TSKtask *task = (TSKtask *)anal; TSKtask *task = (TSKtask *)anal;
IGNORE(ckt);
NG_IGNORE(ckt);
switch(opt) { switch(opt) {

2
src/spicelib/analysis/daskq.c

@ -14,7 +14,7 @@ Author: 1988 Jaijeet S Roychowdhury
int int
DaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

8
src/spicelib/analysis/dcoaskq.c

@ -14,10 +14,10 @@ Author: 1985 Thomas L. Quarles
int int
DCOaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DCOaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
IGNORE(anal);
IGNORE(which);
IGNORE(value);
NG_IGNORE(ckt);
NG_IGNORE(anal);
NG_IGNORE(which);
NG_IGNORE(value);
return(E_BADPARM); return(E_BADPARM);
} }

2
src/spicelib/analysis/dcop.c

@ -27,7 +27,7 @@ DCop(CKTcircuit *ckt, int notused)
int numNames; int numNames;
void *plot = NULL; void *plot = NULL;
IGNORE(notused);
NG_IGNORE(notused);
#ifdef XSPICE #ifdef XSPICE
/* gtri - add - wbk - 12/19/90 - Add IPC stuff and initialize anal_init and anal_type */ /* gtri - add - wbk - 12/19/90 - Add IPC stuff and initialize anal_init and anal_type */

6
src/spicelib/analysis/dcosetp.c

@ -16,9 +16,9 @@ Author: 1985 Thomas L. Quarles
int int
DCOsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DCOsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
IGNORE(anal);
IGNORE(value);
NG_IGNORE(ckt);
NG_IGNORE(anal);
NG_IGNORE(value);
switch(which) { switch(which) {

6
src/spicelib/analysis/dctaskq.c

@ -14,9 +14,9 @@ Author: 1985 Thomas L. Quarles
int int
DCTaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DCTaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
IGNORE(anal);
IGNORE(value);
NG_IGNORE(ckt);
NG_IGNORE(anal);
NG_IGNORE(value);
switch(which) { switch(which) {
default: default:

2
src/spicelib/analysis/dctsetp.c

@ -17,7 +17,7 @@ DCTsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
TRCV* cv= (TRCV*)anal; TRCV* cv= (TRCV*)anal;
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/distoan.c

@ -56,7 +56,7 @@ DISTOan(CKTcircuit *ckt, int restart)
double time,time1; double time,time1;
#endif #endif
IGNORE(restart);
NG_IGNORE(restart);
/* start at beginning */ /* start at beginning */

2
src/spicelib/analysis/dkerproc.c

@ -14,7 +14,7 @@ DkerProc(int type, double *rPtr, double *iPtr, int size, DISTOAN *job)
{ {
int i; int i;
IGNORE(job);
NG_IGNORE(job);
switch(type) { switch(type) {

2
src/spicelib/analysis/dsetparm.c

@ -15,7 +15,7 @@ Author: 1988 Jaijeet S Roychowdhury
int int
DsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/naskq.c

@ -13,7 +13,7 @@ Author: 1987 Gary W. Ng
int int
NaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) NaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/nsetparm.c

@ -14,7 +14,7 @@ Author: 1987 Gary W. Ng
int int
NsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) NsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/pzan.c

@ -23,7 +23,7 @@ PZan(CKTcircuit *ckt, int reset)
IFuid *nameList; IFuid *nameList;
void *plot = NULL; void *plot = NULL;
IGNORE(reset);
NG_IGNORE(reset);
error = PZinit(ckt); error = PZinit(ckt);
if (error != OK) return error; if (error != OK) return error;

2
src/spicelib/analysis/pzsetp.c

@ -16,7 +16,7 @@ Author: 1985 Thomas L. Quarles
int int
PZsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) PZsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/sensaskq.c

@ -15,7 +15,7 @@ SENSask(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
SENS_AN *sinfo = (SENS_AN *) anal; SENS_AN *sinfo = (SENS_AN *) anal;
IGNORE(ckt);
NG_IGNORE(ckt);
switch (which) { switch (which) {

2
src/spicelib/analysis/senssetp.c

@ -16,7 +16,7 @@ SENSsetParam(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
SENS_AN *sinfo = (SENS_AN *) anal; SENS_AN *sinfo = (SENS_AN *) anal;
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/tfanal.c

@ -38,7 +38,7 @@ TFanal(CKTcircuit *ckt, int restart)
#define inuid (uids[1]) /* unique id for the transfer function input imp. */ #define inuid (uids[1]) /* unique id for the transfer function input imp. */
#define outuid (uids[2]) /* unique id for the transfer function out. imp. */ #define outuid (uids[2]) /* unique id for the transfer function out. imp. */
IGNORE(restart);
NG_IGNORE(restart);
/* first, find the operating point */ /* first, find the operating point */
converged = CKTop(ckt, converged = CKTop(ckt,

6
src/spicelib/analysis/tfaskq.c

@ -14,9 +14,9 @@ Author: 1985 Thomas L. Quarles
int int
TFaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) TFaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(value);
IGNORE(anal);
IGNORE(ckt);
NG_IGNORE(value);
NG_IGNORE(anal);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/tfsetp.c

@ -15,7 +15,7 @@ Author: 1985 Thomas L. Quarles
int int
TFsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) TFsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/tranaskq.c

@ -13,7 +13,7 @@ Author: 1985 Thomas L. Quarles
int int
TRANaskQuest(CKTcircuit *ckt, JOB *anal, int which,IFvalue *value) TRANaskQuest(CKTcircuit *ckt, JOB *anal, int which,IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/analysis/transetp.c

@ -15,7 +15,7 @@ Author: 1985 Thomas L. Quarles
int int
TRANsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) TRANsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
NG_IGNORE(ckt);
switch(which) { switch(which) {

2
src/spicelib/devices/asrc/asrcacld.c

@ -30,7 +30,7 @@ ASRCacLoad(GENmodel *inModel, CKTcircuit *ckt)
double *derivs; double *derivs;
double rhs; double rhs;
IGNORE(ckt);
NG_IGNORE(ckt);
/* loop through all the Arbitrary source models */ /* loop through all the Arbitrary source models */
for( ; model != NULL; model = model->ASRCnextModel ) { for( ; model != NULL; model = model->ASRCnextModel ) {

2
src/spicelib/devices/asrc/asrcask.c

@ -26,7 +26,7 @@ ASRCask(CKTcircuit *ckt, GENinstance *instPtr, int which, IFvalue *value, IFvalu
{ {
ASRCinstance *here = (ASRCinstance*)instPtr; ASRCinstance *here = (ASRCinstance*)instPtr;
IGNORE(select);
NG_IGNORE(select);
switch(which) { switch(which) {
case ASRC_CURRENT: case ASRC_CURRENT:

2
src/spicelib/devices/asrc/asrcpar.c

@ -19,7 +19,7 @@ ASRCparam(int param, IFvalue *value, GENinstance *fast, IFvalue *select)
{ {
ASRCinstance *here = (ASRCinstance*)fast; ASRCinstance *here = (ASRCinstance*)fast;
IGNORE(select);
NG_IGNORE(select);
switch(param) { switch(param) {
case ASRC_VOLTAGE: case ASRC_VOLTAGE:

2
src/spicelib/devices/asrc/asrcpzld.c

@ -23,7 +23,7 @@ ASRCpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s)
double value; double value;
int i, j; int i, j;
IGNORE(s);
NG_IGNORE(s);
/* loop through all the Arbitrary source models */ /* loop through all the Arbitrary source models */
for( ; model != NULL; model = model->ASRCnextModel ) { for( ; model != NULL; model = model->ASRCnextModel ) {

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save