Jspice3
inppas1.c File Reference
#include "spice.h"
#include <stdio.h>
#include "inpdefs.h"
Include dependency graph for inppas1.c:

Go to the source code of this file.

Functions

void INPpas1 (GENERIC *ckt, card *deck, INPtables *tab)
 

Function Documentation

void INPpas1 ( GENERIC ckt,
card deck,
INPtables tab 
)

Definition at line 18 of file inppas1.c.

23 {
24  card *current;
25  char *INPdomodel();
26  char *thisline;
27 
28  for (current = deck; current != NULL; current = current->nextcard) {
29  /* SPICE-2 keys off of the first character of the line */
30  thisline = current->line;
31 
32  while (*thisline && ((*thisline == ' ') || (*thisline == '\t')))
33  thisline++;
34 
35  if (*thisline == '.') {
36  if (!strncmp(thisline,".table",6)) {
37  current->error = INPerrCat(current->error,
38  INPtablParse(&thisline,ckt));
39  continue;
40  }
41  if (!strncmp(thisline,".model",6)) {
42  current->error = INPerrCat(current->error,
43  INPdomodel(ckt,current,tab));
44  }
45  }
46 
47  /* for now, we do nothing with the other cards - just
48  * keep them in the list for pass 2
49  */
50  }
51 }
char * line
Definition: inpdefs.h:64
Definition: inpdefs.h:62
struct card * nextcard
Definition: inpdefs.h:66
#define NULL
Definition: spdefs.h:121
char * error
Definition: inpdefs.h:65
char * INPtablParse()
char * INPdomodel()
char * INPerrCat()