Browse Source

* src/circuit/inptyplk.c: Trimmed unneeded header files and


			
			
				pre-master-46
			
			
		
arno 26 years ago
parent
commit
b4b54b3aa5
  1. 3
      src/circuit/Makefile.am
  2. 9
      src/circuit/inppas1.c
  3. 8
      src/circuit/inppas1.h
  4. 17
      src/circuit/inppas2.c
  5. 9
      src/circuit/inppas2.h
  6. 4
      src/circuit/inptyplk.c

3
src/circuit/Makefile.am

@ -48,7 +48,9 @@ libinp_a_SOURCES = \
inpmkmod.c \
inpmktmp.c \
inppas1.c \
inppas1.h \
inppas2.c \
inppas2.h \
inppname.c \
inpptree.c \
inpsymt.c \
@ -58,7 +60,6 @@ libinp_a_SOURCES = \
inp.h
INCLUDES = -I$(top_srcdir)/src/include
MAINTAINERCLEANFILES = Makefile.in

9
src/circuit/inppas1.c

@ -3,11 +3,12 @@ Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Thomas L. Quarles
**********/
#include "ngspice.h"
#include <stdio.h>
#include "inpdefs.h"
#include "ifsim.h"
#include "inp.h"
#include <config.h>
#include <ngspice.h>
#include "inppas1.h"
/*
* The first pass of the circuit parser just looks for '.model' lines

8
src/circuit/inppas1.h

@ -0,0 +1,8 @@
#ifndef _INPPAS1_H
#define _INPPAS1_H
#include <inpdefs.h>
void INPpas1(void *ckt, card *deck, INPtables *tab);
#endif

17
src/circuit/inppas2.c

@ -3,17 +3,12 @@ Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Thomas L. Quarles
**********/
#include "ngspice.h"
#include <ctype.h>
#include "ifsim.h"
#include "cpdefs.h"
#include "fteext.h"
#include "ftedefs.h"
#include "inpdefs.h"
#include "iferrmsg.h"
#include "tskdefs.h"
#include "inpmacs.h"
#include "inp.h"
#include <config.h>
#include <ngspice.h>
#include <iferrmsg.h>
#include <inpmacs.h>
#include "inppas2.h"
/* pass 2 - Scan through the lines. ".model" cards have processed
* in pass1 and are ignored here.

9
src/circuit/inppas2.h

@ -0,0 +1,9 @@
#ifndef _INPPAS2_H
#define _INPPAS2_H
#include <inpdefs.h>
void INPpas2(void *ckt, card *data, INPtables *tab, void *task);
#endif

4
src/circuit/inptyplk.c

@ -22,9 +22,9 @@ INPtypelook(char *type)
for(i = 0; i < ft_sim->numDevices; i++) {
if(strcmp(type, (*(ft_sim->devices)[i]).name) == 0) {
/*found the device - return it */
return(i);
return i;
}
}
return(-1);
return -1;
}
Loading…
Cancel
Save