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

improved formatting a bit.

	* src/circuit/Makefile.am src/circuit/inppas1.h
	src/circuit/inppas1.c src/circuit/inppas2.h
	src/circuit/inppas2.c: Added header files and cut down
	unneeded include files.
This commit is contained in:
arno 2000-05-13 15:56:47 +00:00
parent 6886b8793b
commit b4b54b3aa5
6 changed files with 35 additions and 21 deletions

View File

@ -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

View File

@ -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 Normal file
View File

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

View File

@ -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 Normal file
View File

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

View File

@ -4,7 +4,7 @@ Author: 1985 Thomas L. Quarles
**********/
/* look up the 'type' in the device description struct and return the
* appropriatestrchr for the device found, or -1 for not found
* appropriate strchr for the device found, or -1 for not found
*/
#include "ngspice.h"
@ -19,12 +19,12 @@ INPtypelook(char *type)
{
int i;
for(i=0;i<ft_sim->numDevices;i++) {
if(strcmp(type,(*(ft_sim->devices)[i]).name)==0) {
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;
}