54 changed files with 3742 additions and 3694 deletions
-
1src/circuit/Makefile.am
-
80src/circuit/ifeval.c
-
97src/circuit/ifnewuid.c
-
2src/circuit/inp.h
-
59src/circuit/inp2b.c
-
133src/circuit/inp2c.c
-
104src/circuit/inp2d.c
-
1052src/circuit/inp2dot.c
-
89src/circuit/inp2e.c
-
75src/circuit/inp2f.c
-
89src/circuit/inp2g.c
-
75src/circuit/inp2h.c
-
69src/circuit/inp2i.c
-
121src/circuit/inp2j.c
-
59src/circuit/inp2k.c
-
69src/circuit/inp2l.c
-
143src/circuit/inp2m.c
-
126src/circuit/inp2o.c
-
134src/circuit/inp2q.c
-
149src/circuit/inp2r.c
-
120src/circuit/inp2s.c
-
81src/circuit/inp2t.c
-
106src/circuit/inp2u.c
-
73src/circuit/inp2v.c
-
108src/circuit/inp2w.c
-
116src/circuit/inp2z.c
-
66src/circuit/inpaname.c
-
20src/circuit/inpapnam.c
-
13src/circuit/inpcfix.c
-
439src/circuit/inpdomod.c
-
84src/circuit/inpdoopt.c
-
84src/circuit/inpdpar.c
-
35src/circuit/inperrc.c
-
10src/circuit/inperror.c
-
293src/circuit/inpeval.c
-
87src/circuit/inpfindl.c
-
161src/circuit/inpgmod.c
-
107src/circuit/inpgstr.c
-
11src/circuit/inpgtitl.c
-
212src/circuit/inpgtok.c
-
93src/circuit/inpgval.c
-
18src/circuit/inpkmods.c
-
52src/circuit/inplist.c
-
16src/circuit/inplkmod.c
-
20src/circuit/inpmkmod.c
-
16src/circuit/inpmktmp.c
-
17src/circuit/inppas1.c
-
257src/circuit/inppas2.c
-
43src/circuit/inppname.c
-
1246src/circuit/inpptree.c
-
385src/circuit/inpsymt.c
-
14src/circuit/inptyplk.c
-
105src/circuit/ptfuncs.c
-
202src/circuit/sperror.c
1052
src/circuit/inp2dot.c
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,84 +0,0 @@ |
|||
/********** |
|||
Copyright 1990 Regents of the University of California. All rights reserved. |
|||
Author: 1985 Thomas L. Quarles |
|||
**********/ |
|||
|
|||
/* INPdoOpts(ckt,option card) |
|||
* parse the options off of the given option card and add them to |
|||
* the given circuit |
|||
*/ |
|||
|
|||
#include "ngspice.h" |
|||
#include <stdio.h> |
|||
#include "inpdefs.h" |
|||
#include "ifsim.h" |
|||
#include "cpdefs.h" |
|||
#include "fteext.h" |
|||
#include "inp.h" |
|||
|
|||
/* MW. this is never called - look at inp2dot.c |
|||
void |
|||
INPdoOpts(void *ckt, void *anal, card *optCard, INPtables *tab) |
|||
{ |
|||
char *line; |
|||
char *token; |
|||
char *errmsg; |
|||
IFvalue *val; |
|||
int error; |
|||
int i; |
|||
int which; |
|||
IFanalysis *prm=NULL; |
|||
|
|||
which = -1; |
|||
i=0; |
|||
for(i=0;i<ft_sim->numAnalyses;i++) { |
|||
prm = ft_sim->analyses[i]; |
|||
if(strcmp(prm->name,"options")==0) { |
|||
which = i; |
|||
break; |
|||
} |
|||
i++; |
|||
} |
|||
if(which == -1) { |
|||
optCard->error = INPerrCat(optCard->error,INPmkTemp( |
|||
"errr: analysis options table not found\n")); |
|||
return; |
|||
} |
|||
line = optCard->line; |
|||
INPgetTok(&line,&token,1); * throw away '.option' * |
|||
while (*line) { |
|||
INPgetTok(&line,&token,1); |
|||
for(i=0;i<prm->numParms;i++) { |
|||
if(strcmp(token,prm->analysisParms[i].keyword) == 0) { |
|||
if(!(prm->analysisParms[i].dataType & IF_UNIMP_MASK)) { |
|||
errmsg = (char *)MALLOC((45+strlen(token)) * sizeof(char)); |
|||
(void) sprintf(errmsg, |
|||
" Warning: %s not yet implemented - ignored \n",token); |
|||
optCard->error = INPerrCat(optCard->error,errmsg); |
|||
val = INPgetValue(ckt,&line, |
|||
prm->analysisParms[i].dataType, tab); |
|||
break; |
|||
} |
|||
if(prm->analysisParms[i].dataType & IF_SET) { |
|||
val = INPgetValue(ckt,&line, |
|||
prm->analysisParms[i].dataType&IF_VARTYPES, tab); |
|||
error = (*(ft_sim->setAnalysisParm))(ckt,anal, |
|||
prm->analysisParms[i].id,val,(IFvalue*)NULL); |
|||
if(error) { |
|||
errmsg =(char *)MALLOC((35+strlen(token))*sizeof(char)); |
|||
(void) sprintf(errmsg, |
|||
"Warning: can't set optione %s\n", token); |
|||
optCard->error = INPerrCat(optCard->error, errmsg); |
|||
} |
|||
break; |
|||
} |
|||
} |
|||
} |
|||
if(i == prm->numParms) { |
|||
errmsg = (char *)MALLOC(100 * sizeof(char)); |
|||
(void) strcpy(errmsg," Error: unknown option - ignored\n"); |
|||
optCard->error = INPerrCat(optCard->error,errmsg); |
|||
} |
|||
} |
|||
} |
|||
*/ |
|||
1246
src/circuit/inpptree.c
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue