Inlude code into #ifdef RFSPICE ... #endif

to allow compiling without pre-processor flag RFSPICE.
This commit is contained in:
Holger Vogt 2022-01-08 23:00:05 +01:00
parent 909fbc8988
commit 4e1ae255f6
3 changed files with 8 additions and 1 deletions

View File

@ -15,6 +15,8 @@ Author: 1985 Thomas L. Quarles
#include "ngspice/ifsim.h"
#include "vsrc/vsrcdefs.h"
#ifdef RFSPICE
unsigned int CKTmatrixIndex(CKTcircuit* ckt, unsigned int source, unsigned int dest)
{
return source * ckt->CKTportCount + dest;
@ -106,3 +108,4 @@ CKTspDump(CKTcircuit *ckt, double freq, runDesc *plot)
FREE(data);
return(OK);
}
#endif

View File

@ -11,6 +11,7 @@ Author: 1985 Thomas L. Quarles
#include "ngspice/spdefs.h"
#include "ngspice/cktdefs.h"
#ifdef RFSPICE
/* ARGSUSED */
int
@ -70,4 +71,4 @@ SPaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
}
return(OK);
}
#endif

View File

@ -11,6 +11,8 @@ Author: 1985 Thomas L. Quarles
#include "analysis.h"
#ifdef RFSPICE
/* ARGSUSED */
int
SPsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
@ -112,3 +114,4 @@ SPICEanalysis SPinfo = {
NULL,
SPan
};
#endif