prepare few things for VS compilation
This commit is contained in:
parent
149bf2c8ca
commit
faf0d29095
|
|
@ -82,7 +82,7 @@ int $(module)ask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value,
|
||||||
default:
|
default:
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
return(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</admst:template>
|
</admst:template>
|
||||||
|
|
|
||||||
|
|
@ -91,10 +91,10 @@
|
||||||
#define EXIT_IF_ISNAN(var) \\
|
#define EXIT_IF_ISNAN(var) \\
|
||||||
{ \\
|
{ \\
|
||||||
}
|
}
|
||||||
|
#ifndef _MSC_VER
|
||||||
static inline double max(double x,double y) { return ((x)>(y))?(x):(y); }
|
static inline double max(double x,double y) { return ((x)>(y))?(x):(y); }
|
||||||
static inline double min(double x,double y) { return ((x)<(y))?(x):(y); }
|
static inline double min(double x,double y) { return ((x)<(y))?(x):(y); }
|
||||||
|
#endif
|
||||||
/* ngspice \$simparam variables
|
/* ngspice \$simparam variables
|
||||||
gdev (1/Ohms): Additional conductance to be added to nonlinear branches for conductance homotopy convergence algorithm.
|
gdev (1/Ohms): Additional conductance to be added to nonlinear branches for conductance homotopy convergence algorithm.
|
||||||
gmin (1/Ohms): Minimum conductance placed in parallel with nonlinear branches.
|
gmin (1/Ohms): Minimum conductance placed in parallel with nonlinear branches.
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,7 @@ int $(module)guesstopology (SMPmatrix *matrix, CKTcircuit *ckt, $(module)model *
|
||||||
</admst:for-each>
|
</admst:for-each>
|
||||||
<admst:for-each select="$localvariables">
|
<admst:for-each select="$localvariables">
|
||||||
<admst:if test="[type='integer']">int %(name);\n</admst:if>
|
<admst:if test="[type='integer']">int %(name);\n</admst:if>
|
||||||
<admst:if test="[type='real']">double %(name)=0.0/0.0;\n</admst:if>
|
<admst:if test="[type='real']">double %(name)=0.0;\n</admst:if>
|
||||||
<admst:if test="[type='string']">char* %(name);\n</admst:if>
|
<admst:if test="[type='string']">char* %(name);\n</admst:if>
|
||||||
</admst:for-each>
|
</admst:for-each>
|
||||||
<admst:for-each select="analog/code[datatypename='block']/item">
|
<admst:for-each select="analog/code[datatypename='block']/item">
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ int $(module)mAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value)
|
||||||
default:
|
default:
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
return(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</admst:template>
|
</admst:template>
|
||||||
|
|
|
||||||
|
|
@ -1031,7 +1031,7 @@
|
||||||
<admst:if test="[static='no' and dynamic='yes']">#if defined(_DYNAMIC)\n</admst:if>
|
<admst:if test="[static='no' and dynamic='yes']">#if defined(_DYNAMIC)\n</admst:if>
|
||||||
<admst:value-of select="name"/>
|
<admst:value-of select="name"/>
|
||||||
<admst:if test="[type='integer']">int %s;\n</admst:if>
|
<admst:if test="[type='integer']">int %s;\n</admst:if>
|
||||||
<admst:if test="[type='real']">double %s=0.0/0.0;\n</admst:if>
|
<admst:if test="[type='real']">double %s=0.0;\n</admst:if>
|
||||||
<admst:if test="[type='string']">char* %s;\n</admst:if>
|
<admst:if test="[type='string']">char* %s;\n</admst:if>
|
||||||
<admst:if test="[insource='yes']">
|
<admst:if test="[insource='yes']">
|
||||||
<admst:if test="probe">
|
<admst:if test="probe">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue