From b70b04f22c7c09dd8f78ba5a627fc15477f3669e Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 30 Mar 2022 16:00:03 +0200 Subject: [PATCH] Update to config.h Move relevant entries up to the top of the file S-parameter and periodic steady state may be selected in config.h CIDER and XSPICE are always selected and cannot be excluded (will not compile without). --- visualc/src/include/ngspice/config.h | 64 +++++++++++++++++----------- 1 file changed, 39 insertions(+), 25 deletions(-) diff --git a/visualc/src/include/ngspice/config.h b/visualc/src/include/ngspice/config.h index c82da7e13..43cf23edb 100644 --- a/visualc/src/include/ngspice/config.h +++ b/visualc/src/include/ngspice/config.h @@ -1,9 +1,45 @@ -/* config.h. Adoted from config which was generated by configure using MSYS and MINGW. */ -/* Special consideration have been given to MS Visual Studio 2008 requirements. */ -/* HVo Jan. 2014 */ +/* config.h. made especially for Visual Studio compilation of ngspice + Adopted from config.h which was generated by configure using MSYS and MINGW. + HVo Jan. 2022 */ +/**********************************************************************/ +/* select major ngspice options */ +/* to undefine, replace #define by #undef and comment out */ + +/* S parameter analysis */ +#define RFSPICE 1 + +/* Define if you want PSS analysis */ +#define WITH_PSS /**/ + +/* Name of package */ +#define PACKAGE "ngspice" + +/* Version number of package */ +#define VERSION "36+" //" Built on " __DATE__ " at " __TIME__ + +/* Define the directory for executables */ +#define NGSPICEBINDIR "../bin" +/* Define the directory for architecture independent data files */ +#define NGSPICEDATADIR "../share/ngspice" + +/* If defined, there wiƶll be no UNICODE support, only extended ASCII */ +/*#undef EXT_ASC */ + +/**********************************************************************/ +/********* Don't change entries found below ***************************/ + +/* The xspice enhancements */ +/* XSPICE is always included in the Visual Studio compiled executable */ +#define XSPICE 1 +/* don't undef XSPICE, otherwise compilation will fail */ + +/* The CIDER enhancements */ +#define CIDER 1 +/* don't undef CIDER, otherwise compilation will fail */ /* Support for Verilog-A(MS) models */ /* #undef ADMS */ +/* ADMS compilation is not supported with MS Visual Studio */ /* Define if we want debug sensitivity analysis */ /* #undef ASDEBUG */ @@ -11,9 +47,6 @@ /* Define if we want to bypass cbd/cbs calculation for non varying vbs/vbd */ /* #undef CAPBYPASS */ -/* The CIDER enhancements */ -#define CIDER 1 - /* Define to 1 if the `closedir' function returns void instead of `int'. */ /* #undef CLOSEDIR_VOID */ @@ -434,22 +467,12 @@ /* Do not trigger unwanted traps by default */ /* #undef NEWTRUNC */ -/* Define the directory for executables */ -#define NGSPICEBINDIR "../bin" -/* Define the directory for architecture independent data files */ -#define NGSPICEDATADIR "../share/ngspice" - /* Define if we want NOBYPASS */ /* #undef NOBYPASS */ /* Experimental code never implemented to damp Newton iterations */ /* #undef NODELIMITING */ -/* Name of package */ -#define PACKAGE "ngspice" - -/* Version number of package */ -#define VERSION "36+" //" Built on " __DATE__ " at " __TIME__ /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "http://ngspice.sourceforge.net/bugrep.html" @@ -521,12 +544,6 @@ /* Define if we want spice2 sensitivity analysis */ /* #undef WANT_SENSE2 */ -/* Define if you want PSS analysis */ -#define WITH_PSS /**/ - -/* The xspice enhancements */ -#define XSPICE 1 - /* Define to 1 if the X Window System is missing or not being used. */ #define X_DISPLAY_MISSING 1 @@ -552,6 +569,3 @@ /* Define as `fork' if `vfork' does not work. */ #define vfork fork -#define HAVE_XFT - -//#define EXT_ASC