Inlude code into #ifdef RFSPICE ... #endif
to allow compiling without pre-processor flag RFSPICE.
This commit is contained in:
parent
909fbc8988
commit
4e1ae255f6
|
|
@ -15,6 +15,8 @@ Author: 1985 Thomas L. Quarles
|
||||||
#include "ngspice/ifsim.h"
|
#include "ngspice/ifsim.h"
|
||||||
#include "vsrc/vsrcdefs.h"
|
#include "vsrc/vsrcdefs.h"
|
||||||
|
|
||||||
|
#ifdef RFSPICE
|
||||||
|
|
||||||
unsigned int CKTmatrixIndex(CKTcircuit* ckt, unsigned int source, unsigned int dest)
|
unsigned int CKTmatrixIndex(CKTcircuit* ckt, unsigned int source, unsigned int dest)
|
||||||
{
|
{
|
||||||
return source * ckt->CKTportCount + dest;
|
return source * ckt->CKTportCount + dest;
|
||||||
|
|
@ -106,3 +108,4 @@ CKTspDump(CKTcircuit *ckt, double freq, runDesc *plot)
|
||||||
FREE(data);
|
FREE(data);
|
||||||
return(OK);
|
return(OK);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ Author: 1985 Thomas L. Quarles
|
||||||
#include "ngspice/spdefs.h"
|
#include "ngspice/spdefs.h"
|
||||||
#include "ngspice/cktdefs.h"
|
#include "ngspice/cktdefs.h"
|
||||||
|
|
||||||
|
#ifdef RFSPICE
|
||||||
|
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
int
|
int
|
||||||
|
|
@ -70,4 +71,4 @@ SPaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
|
||||||
}
|
}
|
||||||
return(OK);
|
return(OK);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ Author: 1985 Thomas L. Quarles
|
||||||
|
|
||||||
#include "analysis.h"
|
#include "analysis.h"
|
||||||
|
|
||||||
|
#ifdef RFSPICE
|
||||||
|
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
int
|
int
|
||||||
SPsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
|
SPsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
|
||||||
|
|
@ -112,3 +114,4 @@ SPICEanalysis SPinfo = {
|
||||||
NULL,
|
NULL,
|
||||||
SPan
|
SPan
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue