find a suitable home for **DEVices and DEVmaxnum in devdefs.h

This commit is contained in:
rlar 2010-07-24 21:16:50 +00:00
parent 60ff9aaef2
commit b31aef0557
44 changed files with 52 additions and 111 deletions

View File

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

View File

@ -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 ? */

View File

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

View File

@ -401,7 +401,6 @@ endsweep:
int
CKTacLoad(CKTcircuit *ckt)
{
extern SPICEdev **DEVices;
int i;
int size;
int error;

View File

@ -18,9 +18,6 @@ Author: 1985 Thomas L. Quarles
#include "sperror.h"
extern SPICEdev **DEVices;
int
CKTdestroy(CKTcircuit *inCkt)
{

View File

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

View File

@ -26,8 +26,6 @@ TODO:
#include "gendefs.h"
#include "devdefs.h"
extern SPICEdev **DEVices;
/* End cider integration */
#endif

View File

@ -20,7 +20,6 @@ Author: 1985 Thomas L. Quarles
int
CKTfndBranch(CKTcircuit *ckt, IFuid name)
{
extern SPICEdev **DEVices;
int i;
int j;

View File

@ -7,6 +7,7 @@ Author: 1985 Thomas L. Quarles
#include "ngspice.h"
#include "cktdefs.h"
#include "devdefs.h"
#include "ifsim.h"
#include "sperror.h"

View File

@ -19,8 +19,6 @@ Author: 1985 Thomas L. Quarles
extern SPICEdev **DEVices;
int
CKTinst2Node(CKTcircuit *ckt, void *instPtr, int terminal, CKTnode **node, IFuid *nodeName)
{

View File

@ -10,11 +10,6 @@ Author: 1985 Thomas L. Quarles
#include "devdefs.h"
extern SPICEdev **DEVices;
int
CKTic(CKTcircuit *ckt)
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -93,7 +93,6 @@ ckt->CKTmode = firstmode;
int
CKTconvTest (CKTcircuit * ckt)
{
extern SPICEdev **DEVices;
int i;
int error = OK;
#ifdef PARALLEL_ARCH

View File

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

View File

@ -16,8 +16,6 @@ Author: 1992 David A. Gates, UC Berkeley CADgroup
#include "sperror.h"
extern SPICEdev **DEVices;
#ifdef XSPICE
extern int *DEVicesfl;
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -26,8 +26,6 @@ Author: 1985 Thomas L. Quarles
extern void SetAnalyse( char * Analyse, int Percent);
#endif
extern SPICEdev **DEVices;
int
CKTsetup(CKTcircuit *ckt)

View File

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

View File

@ -17,11 +17,6 @@ Author: 1985 Thomas L. Quarles
#include "sperror.h"
extern SPICEdev **DEVices;
int
CKTtemp(CKTcircuit *ckt)
{

View File

@ -12,8 +12,6 @@ Copyright 1990 Regents of the University of California. All rights reserved.
#include "analysis.h"
extern SPICEdev **DEVices;
extern SPICEanalysis *analInfo[];

View File

@ -16,10 +16,6 @@ Author: 1985 Thomas L. Quarles
#include "sperror.h"
extern SPICEdev **DEVices;
int
CKTtrunc(CKTcircuit *ckt, double *timeStep)
{

View File

@ -12,9 +12,6 @@ Author: 1985 Thomas L. Quarles
#include "devdefs.h"
extern SPICEdev **DEVices;
int
CKTtypelook(char *type)
{

View File

@ -23,7 +23,6 @@ Modified: 1999 Paolo Nenzi
#endif
#include <devdefs.h>
extern SPICEdev **DEVices;
#ifdef HAS_WINDOWS
void SetAnalyse( char * Analyse, int Percent);

View File

@ -5,6 +5,7 @@ Author: 1985 Thomas L. Quarles
#include <config.h>
#include <cktdefs.h>
#include <devdefs.h>
#include <sperror.h>
#include "string.h"

View File

@ -25,7 +25,6 @@ int
CKTsenUpdate(ckt)
register CKTcircuit *ckt;
{
extern SPICEdev *DEVices[];
register int i;
int error;

View File

@ -26,7 +26,6 @@ int
CKTsenLoad(ckt)
register CKTcircuit *ckt;
{
extern SPICEdev *DEVices[];
register int i;
int size,row,col;
int error;

View File

@ -25,7 +25,6 @@ void
CKTsenPrint(ckt)
register CKTcircuit *ckt;
{
extern SPICEdev *DEVices[];
register int i;
for (i=0;i<DEVmaxnum;i++) {

View File

@ -28,8 +28,6 @@ CKTsenSetup(ckt)
register CKTcircuit *ckt;
{
extern SPICEdev *DEVices[];
register int i;
int error;
register SENstruct *info;

View File

@ -55,12 +55,6 @@ NON-STANDARD FEATURES
#include "evtproto.h"
extern SPICEdev **DEVices;
static void EVTcreate_state(
CKTcircuit *ckt,
int inst_index);

View File

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

View File

@ -54,14 +54,6 @@ NON-STANDARD FEATURES
/* #include "suffix.h" */
extern SPICEdev **DEVices;
extern int DEVmaxnum;
/*
MIFask

View File

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

View File

@ -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 *),

View File

@ -54,13 +54,6 @@ NON-STANDARD FEATURES
/* #include "suffix.h" */
extern SPICEdev **DEVices;
extern int DEVmaxnum;
/*
MIFmAsk

View File

@ -57,13 +57,6 @@ NON-STANDARD FEATURES
/* #include "suffix.h" */
extern SPICEdev **DEVices;
extern int DEVmaxnum;
/*
MIFmParam

View File

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