find a suitable home for **DEVices and DEVmaxnum in devdefs.h
This commit is contained in:
parent
60ff9aaef2
commit
b31aef0557
46
ChangeLog
46
ChangeLog
|
|
@ -1,3 +1,49 @@
|
|||
2010-07-24 Robert Larice
|
||||
* src/include/cktdefs.h ,
|
||||
* src/include/devdefs.h ,
|
||||
* src/spicelib/analysis/acan.c ,
|
||||
* src/spicelib/analysis/cktdest.c ,
|
||||
* src/spicelib/analysis/cktdisto.c ,
|
||||
* src/spicelib/analysis/cktdump.c ,
|
||||
* src/spicelib/analysis/cktfbran.c ,
|
||||
* src/spicelib/analysis/cktfndm.c ,
|
||||
* src/spicelib/analysis/ckti2nod.c ,
|
||||
* src/spicelib/analysis/cktic.c ,
|
||||
* src/spicelib/analysis/cktload.c ,
|
||||
* src/spicelib/analysis/cktmask.c ,
|
||||
* src/spicelib/analysis/cktmcrt.c ,
|
||||
* src/spicelib/analysis/cktmpar.c ,
|
||||
* src/spicelib/analysis/cktnoise.c ,
|
||||
* src/spicelib/analysis/cktop.c ,
|
||||
* src/spicelib/analysis/cktparam.c ,
|
||||
* src/spicelib/analysis/cktpartn.c ,
|
||||
* src/spicelib/analysis/cktpmnam.c ,
|
||||
* src/spicelib/analysis/cktpname.c ,
|
||||
* src/spicelib/analysis/cktpzld.c ,
|
||||
* src/spicelib/analysis/cktpzset.c ,
|
||||
* src/spicelib/analysis/cktsens.c ,
|
||||
* src/spicelib/analysis/cktsetup.c ,
|
||||
* src/spicelib/analysis/cktsgen.c ,
|
||||
* src/spicelib/analysis/ckttemp.c ,
|
||||
* src/spicelib/analysis/ckttroub.c ,
|
||||
* src/spicelib/analysis/ckttrunc.c ,
|
||||
* src/spicelib/analysis/ckttyplk.c ,
|
||||
* src/spicelib/analysis/dctrcurv.c ,
|
||||
* src/spicelib/devices/cktfinddev.c ,
|
||||
* src/unsupported/cktsenup.c ,
|
||||
* src/unsupported/cktsnld.c ,
|
||||
* src/unsupported/cktsnprt.c ,
|
||||
* src/unsupported/cktsnset.c ,
|
||||
* src/xspice/evt/evtload.c ,
|
||||
* src/xspice/mif/mif_inp2.c ,
|
||||
* src/xspice/mif/mifask.c ,
|
||||
* src/xspice/mif/mifgetmod.c ,
|
||||
* src/xspice/mif/mifload.c ,
|
||||
* src/xspice/mif/mifmask.c ,
|
||||
* src/xspice/mif/mifmpara.c ,
|
||||
* src/xspice/mif/mifsetup.c :
|
||||
find a suitable home for **DEVices and DEVmaxnum in devdefs.h
|
||||
|
||||
2010-07-24 Robert Larice
|
||||
* src/frontend/help/help.c ,
|
||||
* src/frontend/misccoms.c ,
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
|
||||
#define MAXNUMDEVS 64 /* Max number of possible devices PN:XXX may cause toubles*/
|
||||
extern int DEVmaxnum; /* Not sure if still used */
|
||||
#define MAXNUMDEVNODES 4 /* Max No. of nodes per device */
|
||||
/* Need to change for SOI devs ? */
|
||||
|
||||
|
|
|
|||
|
|
@ -106,6 +106,10 @@ typedef struct SPICEdev {
|
|||
} SPICEdev; /* instance of structure for each possible type of device */
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
extern int DEVmaxnum; /* size of DEVices array */
|
||||
|
||||
|
||||
/* IOP( ) Input/output parameter
|
||||
* IOPP( ) IO parameter which the principle value of a device (used
|
||||
* for naming output variables in sensetivity)
|
||||
|
|
|
|||
|
|
@ -401,7 +401,6 @@ endsweep:
|
|||
int
|
||||
CKTacLoad(CKTcircuit *ckt)
|
||||
{
|
||||
extern SPICEdev **DEVices;
|
||||
int i;
|
||||
int size;
|
||||
int error;
|
||||
|
|
|
|||
|
|
@ -18,9 +18,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
int
|
||||
CKTdestroy(CKTcircuit *inCkt)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ Author: 1988 Jaijeet S Roychowdhury
|
|||
int
|
||||
CKTdisto (CKTcircuit *ckt, int mode)
|
||||
{
|
||||
extern SPICEdev **DEVices;
|
||||
DISTOAN* cv = (DISTOAN*) (ckt->CKTcurJob);
|
||||
int i;
|
||||
int error=0;
|
||||
|
|
|
|||
|
|
@ -26,8 +26,6 @@ TODO:
|
|||
#include "gendefs.h"
|
||||
#include "devdefs.h"
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
/* End cider integration */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ Author: 1985 Thomas L. Quarles
|
|||
int
|
||||
CKTfndBranch(CKTcircuit *ckt, IFuid name)
|
||||
{
|
||||
extern SPICEdev **DEVices;
|
||||
int i;
|
||||
int j;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
#include "ngspice.h"
|
||||
#include "cktdefs.h"
|
||||
#include "devdefs.h"
|
||||
#include "ifsim.h"
|
||||
#include "sperror.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
int
|
||||
CKTinst2Node(CKTcircuit *ckt, void *instPtr, int terminal, CKTnode **node, IFuid *nodeName)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,11 +10,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "devdefs.h"
|
||||
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
int
|
||||
CKTic(CKTcircuit *ckt)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ static int ZeroNoncurRow(SMPmatrix *matrix, CKTnode *nodes, int rownum);
|
|||
int
|
||||
CKTload(CKTcircuit *ckt)
|
||||
{
|
||||
extern SPICEdev **DEVices;
|
||||
int i;
|
||||
int size;
|
||||
double startTime;
|
||||
|
|
|
|||
|
|
@ -14,10 +14,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
CKTmodAsk(CKTcircuit *ckt, GENmodel *modfast, int which, IFvalue *value, IFvalue *selector)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ Author: 1985 Thomas L. Quarles
|
|||
int
|
||||
CKTmodCrt(CKTcircuit *ckt, int type, GENmodel **modfast, IFuid name)
|
||||
{
|
||||
extern SPICEdev **DEVices;
|
||||
GENmodel *mymodfast = NULL;
|
||||
int error;
|
||||
|
||||
|
|
|
|||
|
|
@ -14,11 +14,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
CKTmodParam(CKTcircuit *ckt, GENmodel *modfast, int param, IFvalue *val, IFvalue *selector)
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ CKTnoise (CKTcircuit *ckt, int mode, int operation, Ndata *data)
|
|||
{
|
||||
double outNdens;
|
||||
int i;
|
||||
extern SPICEdev **DEVices;
|
||||
IFvalue outData; /* output variable (points to list of outputs)*/
|
||||
IFvalue refVal; /* reference variable (always 0)*/
|
||||
int error;
|
||||
|
|
|
|||
|
|
@ -93,7 +93,6 @@ ckt->CKTmode = firstmode;
|
|||
int
|
||||
CKTconvTest (CKTcircuit * ckt)
|
||||
{
|
||||
extern SPICEdev **DEVices;
|
||||
int i;
|
||||
int error = OK;
|
||||
#ifdef PARALLEL_ARCH
|
||||
|
|
|
|||
|
|
@ -14,10 +14,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
CKTparam(CKTcircuit *ckt, void *fast, int param, IFvalue *val, IFvalue *selector)
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ Author: 1992 David A. Gates, UC Berkeley CADgroup
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
#ifdef XSPICE
|
||||
extern int *DEVicesfl;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
CKTpModName(char *parm, IFvalue *val, CKTcircuit *ckt, int type, IFuid name, GENmodel **modfast)
|
||||
|
|
|
|||
|
|
@ -19,10 +19,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
CKTpName(char *parm, IFvalue *val, CKTcircuit *ckt, int dev, char *name, GENinstance **fast)
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ Copyright 1990 Regents of the University of California. All rights reserved.
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
int
|
||||
CKTpzLoad(CKTcircuit *ckt, SPcomplex *s)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ Copyright 1990 Regents of the University of California. All rights reserved.
|
|||
int
|
||||
CKTpzSetup(CKTcircuit *ckt, int type)
|
||||
{
|
||||
extern SPICEdev **DEVices;
|
||||
PZAN *pzan = (PZAN *) ckt->CKTcurJob;
|
||||
SMPmatrix *matrix;
|
||||
int error;
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@ static int sens_temp(sgen *sg, CKTcircuit *ckt);
|
|||
static int count_steps(int type, double low, double high, int steps, double *stepsize);
|
||||
static double inc_freq(double freq, int type, double step_size);
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
/*
|
||||
* Procedure:
|
||||
|
|
|
|||
|
|
@ -26,8 +26,6 @@ Author: 1985 Thomas L. Quarles
|
|||
extern void SetAnalyse( char * Analyse, int Percent);
|
||||
#endif
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
int
|
||||
CKTsetup(CKTcircuit *ckt)
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@ Copyright 1991 Regents of the University of California. All rights reserved.
|
|||
#include "ifsim.h"
|
||||
#include "sensgen.h"
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
/* XXX */
|
||||
extern char *Sfilter;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,11 +17,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
|
||||
int
|
||||
CKTtemp(CKTcircuit *ckt)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ Copyright 1990 Regents of the University of California. All rights reserved.
|
|||
|
||||
#include "analysis.h"
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
extern SPICEanalysis *analInfo[];
|
||||
|
||||
|
|
|
|||
|
|
@ -16,10 +16,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "sperror.h"
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
int
|
||||
CKTtrunc(CKTcircuit *ckt, double *timeStep)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,9 +12,6 @@ Author: 1985 Thomas L. Quarles
|
|||
#include "devdefs.h"
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
int
|
||||
CKTtypelook(char *type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ Modified: 1999 Paolo Nenzi
|
|||
#endif
|
||||
|
||||
#include <devdefs.h>
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
#ifdef HAS_WINDOWS
|
||||
void SetAnalyse( char * Analyse, int Percent);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
#include <config.h>
|
||||
#include <cktdefs.h>
|
||||
#include <devdefs.h>
|
||||
#include <sperror.h>
|
||||
#include "string.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ int
|
|||
CKTsenUpdate(ckt)
|
||||
register CKTcircuit *ckt;
|
||||
{
|
||||
extern SPICEdev *DEVices[];
|
||||
register int i;
|
||||
int error;
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ int
|
|||
CKTsenLoad(ckt)
|
||||
register CKTcircuit *ckt;
|
||||
{
|
||||
extern SPICEdev *DEVices[];
|
||||
register int i;
|
||||
int size,row,col;
|
||||
int error;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ void
|
|||
CKTsenPrint(ckt)
|
||||
register CKTcircuit *ckt;
|
||||
{
|
||||
extern SPICEdev *DEVices[];
|
||||
register int i;
|
||||
|
||||
for (i=0;i<DEVmaxnum;i++) {
|
||||
|
|
|
|||
|
|
@ -28,8 +28,6 @@ CKTsenSetup(ckt)
|
|||
register CKTcircuit *ckt;
|
||||
|
||||
{
|
||||
extern SPICEdev *DEVices[];
|
||||
|
||||
register int i;
|
||||
int error;
|
||||
register SENstruct *info;
|
||||
|
|
|
|||
|
|
@ -55,12 +55,6 @@ NON-STANDARD FEATURES
|
|||
#include "evtproto.h"
|
||||
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
|
||||
|
||||
|
||||
static void EVTcreate_state(
|
||||
CKTcircuit *ckt,
|
||||
int inst_index);
|
||||
|
|
|
|||
|
|
@ -63,8 +63,6 @@ NON-STANDARD FEATURES
|
|||
/* See CKT/SPIinit.c */
|
||||
|
||||
extern int *DEVicesfl; /*flags for the devices */
|
||||
extern SPICEdev **DEVices; /* info about all device types */
|
||||
extern int DEVmaxnum; /* size of DEVices array */
|
||||
|
||||
|
||||
static void MIFinit_inst(MIFmodel *mdfast, MIFinstance *fast);
|
||||
|
|
|
|||
|
|
@ -54,14 +54,6 @@ NON-STANDARD FEATURES
|
|||
/* #include "suffix.h" */
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
extern int DEVmaxnum;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
MIFask
|
||||
|
||||
|
|
|
|||
|
|
@ -64,8 +64,6 @@ NON-STANDARD FEATURES
|
|||
It is now defined in inpmkmod.c. */
|
||||
extern INPmodel *modtab;
|
||||
|
||||
extern SPICEdev **DEVices; /* info about all device types */
|
||||
|
||||
/*
|
||||
MIFgetMod
|
||||
|
||||
|
|
|
|||
|
|
@ -65,10 +65,6 @@ NON-STANDARD FEATURES
|
|||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices; /* info about all device types */
|
||||
|
||||
|
||||
|
||||
static void MIFauto_partial(
|
||||
MIFinstance *here,
|
||||
void (*cm_func) (Mif_Private_t *),
|
||||
|
|
|
|||
|
|
@ -54,13 +54,6 @@ NON-STANDARD FEATURES
|
|||
/* #include "suffix.h" */
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
extern int DEVmaxnum;
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
MIFmAsk
|
||||
|
||||
|
|
|
|||
|
|
@ -57,13 +57,6 @@ NON-STANDARD FEATURES
|
|||
/* #include "suffix.h" */
|
||||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices;
|
||||
extern int DEVmaxnum;
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
MIFmParam
|
||||
|
||||
|
|
|
|||
|
|
@ -54,9 +54,6 @@ NON-STANDARD FEATURES
|
|||
|
||||
|
||||
|
||||
extern SPICEdev **DEVices; /* info about all device types */
|
||||
|
||||
|
||||
/* define macro for easy creation of matrix entries/pointers for outputs */
|
||||
#define TSTALLOC(ptr,first,second) \
|
||||
if((smp_data_out->ptr = \
|
||||
|
|
|
|||
Loading…
Reference in New Issue