Commit Graph

266 Commits

Author SHA1 Message Date
h_vogt 188acd0060 correct usage of `unlink()' error return value -1 2012-06-25 15:13:02 +02:00
h_vogt 07727f74f0 commands.c: 'options' equivalent to 'option' and allow 'loadsnap' and 'savesnap'
which have been EXPERIMENTAL_CODE so far
2012-06-13 19:15:14 +02:00
h_vogt 80a039983e dummy functions 2012-02-19 16:38:33 +00:00
rlar 2e4d4a0e02 unuse srandom() and random() 2012-02-09 20:39:24 +00:00
rlar f70fd8ea1b use type `runDesc' 2012-02-07 17:43:07 +00:00
h_vogt d2f9faf66b .lib handling 2012-01-01 13:58:03 +00:00
rlar 0b5042e7da remove CVS `Id',`log' etc. keyword incantations 2011-12-13 19:57:45 +00:00
rlar 10346e055c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
rlar e42fa8ba06 swallow warnings 2011-10-31 10:53:51 +00:00
rlar 026a471d51 use unlink() instead of remove() 2011-08-21 08:55:58 +00:00
rlar d26015586c #1/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:27:09 +00:00
h_vogt 57c9b44c73 inproved error messages in pipe mode 2011-08-10 16:39:46 +00:00
rlar 9e86e5ca66 rewrite (double)literal --> floating-point-literal 2011-08-09 08:07:56 +00:00
h_vogt e86527635b ivars(char*), Windows 64, 32 bit 2011-08-03 20:03:42 +00:00
h_vogt ab587d8d3f environmental variable NGSPICE_INPUT_DIR 2011-07-10 09:59:39 +00:00
h_vogt e0ee07b491 NaN for MS VS 2011-07-03 19:32:27 +00:00
rlar 14aa6d4303 main.c, volatile, make shure they are up to date in memory when LONGJMP is executed 2011-07-02 20:26:16 +00:00
rlar 4b7627d60d main.c, rename variable `buf' -> `log_file' 2011-07-02 20:24:06 +00:00
rlar 21f4534455 main.c, reduce scope of `gdata' 2011-07-02 20:23:40 +00:00
rlar 4484058cbe main.c, reduce scope of `gotone' 2011-07-02 20:22:44 +00:00
rlar 6b2d6c67ca main.c, reduce scope of the `err' variable 2011-07-02 20:21:57 +00:00
rlar fc3107590c main.c, ft_nutmeg is a const global bool 2011-07-02 20:21:15 +00:00
rlar 0d1e66b7ed main.c, emphasize the SETJMP wrapper in ngspice 2011-07-02 20:20:44 +00:00
rlar d0012a124a main.c, emphasize the SETJMP wrapper in ngnutmeg 2011-07-02 20:20:00 +00:00
rlar 9887a2fb2b main.c, emphasize the SETJMP wrapper in ngspice and ngnutmeg 2011-07-02 20:19:21 +00:00
rlar f70bf82865 main.c, emphasize the common tail of ngnutmeg and ngspice 2011-07-02 20:18:22 +00:00
rlar ebacbe03de main.c, emphasize the SETJMP wrapper around the command processing loop 2011-07-02 20:17:37 +00:00
rlar ca43d4d57e main.c, emphasize batch termination with sp_shutdown(EXIT_NORMAL) invocation 2011-07-02 20:16:12 +00:00
rlar 44362f6760 main.c, first setsig then the business 2011-07-02 20:15:13 +00:00
rlar b16a1ccf92 main.c, emphasize SETJMP wrapper around the init file processing 2011-07-02 20:14:17 +00:00
rlar 1441ed8921 main.c, don't repeatedly execute initialization, when there is a failure 2011-07-02 20:13:18 +00:00
rlar f86d17ea5a main.c, batchmode SETJMP wrapper 2011-07-02 20:12:25 +00:00
rlar 4d8e4cfc89 main.c, ngnutmeg command processing loop 2011-07-02 20:11:31 +00:00
rlar 75c10da5b5 main.c, SETJMP compare value 2011-07-02 20:10:30 +00:00
rlar 8e50ce9905 main.c, brace noise 2011-07-02 15:35:54 +00:00
rlar 2c5c5e2c49 main.c, whitespace 2011-07-02 15:34:54 +00:00
rlar b397b0c798 main.c, drop short range #endif comments 2011-07-02 15:34:17 +00:00
rlar 69ca2fba10 main.c, cleanup 2011-07-02 15:33:24 +00:00
rlar 4beb782cfd main.c, nested #ifdef 2011-07-02 15:32:55 +00:00
rlar d150e75657 main.c, whitespace 2011-07-02 15:32:07 +00:00
rlar e0da156dda main.c, cleanup 2011-07-02 15:31:19 +00:00
rlar 2fb7697de6 main.c, shrink scope of `err' 2011-07-02 15:30:40 +00:00
rlar fbc83e52b0 main.c, collapse #ifdef 2011-07-02 15:30:07 +00:00
rlar 3d8d41108f main.c, cleanup 2011-07-02 15:29:35 +00:00
rlar c561a42143 main.c, rewrite `applicatio_name' 2011-07-02 15:28:22 +00:00
rlar 9a69676509 main.c, drop `addcontrol' 2011-07-02 15:27:19 +00:00
rlar c161ee2e62 main.c, rewrite readinit 2011-07-02 15:26:28 +00:00
rlar 3c8a18a93b main.c, shrink scope 2011-07-02 15:25:32 +00:00
rlar 7517419402 main.c, shrink scope of `error2' 2011-07-02 15:24:54 +00:00
rlar 53de59e988 main.c, anti obfuscate 2011-07-02 15:24:05 +00:00
rlar 00e783eeca main.c, unuse `gotone' 2011-07-02 15:22:16 +00:00
rlar cf6a15ed42 main.c, fseek usage 2011-07-02 15:21:14 +00:00
rlar e8f01efc9c main.c, shrink scope of `c' and `optind' 2011-07-02 15:20:35 +00:00
rlar e81f360f66 main.c, encapsulate an extremly ancient hack, stone age ... 2011-07-02 15:19:15 +00:00
rlar 78283dee89 main.c, xmain 2011-07-02 15:17:20 +00:00
rlar 56943212f1 remove redundant variable `has_smk' 2011-07-02 10:23:54 +00:00
rlar 1b0e1730d3 print_news() 2011-07-02 10:17:04 +00:00
rlar acac8cefe5 winmain.c, remove redundant global variable `oflag' 2011-07-01 19:19:59 +00:00
h_vogt 661d287029 env. var NGSPICE_INPUT to hold additional path for input files 2011-06-25 16:03:05 +00:00
h_vogt d4667d17c5 imrpoved shutdown message 2011-06-25 10:18:40 +00:00
rlar 451f88c5e1 swallow type conversion warnings 2011-06-24 15:26:52 +00:00
rlar 2cac6ca4b2 tiny fix, reoccuring option `h' in the getopt_long() option string 2011-06-23 16:41:37 +00:00
h_vogt 51614f0915 prototypes 2011-05-29 11:13:04 +00:00
h_vogt f94cc3a8a0 comp issues 2011-05-29 10:07:10 +00:00
rlar b778c50bd6 code cleanup, some warnings, some casts, ... 2011-04-28 17:05:22 +00:00
rlar 23056573d8 code cleanup, drop NULL pointer casts 2011-04-28 15:59:36 +00:00
h_vogt 5fd49349f6 update to RTS noise 2010-12-19 11:05:03 +00:00
h_vogt f476389531 RTS noise 2010-12-18 17:05:44 +00:00
h_vogt 5e1ed023c6 transient noise simulation 2010-11-27 16:36:03 +00:00
rlar 05441d5823 Nr 5/5 (x = ...) == NULL , swallow warnings 2010-11-19 18:54:40 +00:00
rlar abb87a6115 rename `IGNORE()' --> `NG_IGNORE()' 2010-11-16 20:38:24 +00:00
rlar 80286e0032 pour `IGNORE()' all over the source 2010-11-16 19:11:32 +00:00
rlar f30f96a4c7 use `size_t' variables for fread/fwrite operations 2010-11-04 19:15:41 +00:00
rlar 6e3bbd49ae casts, to make int <-> char conversions explicit 2010-11-02 17:31:19 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
h_vogt 3dd27472bc add mktemp.h 2010-10-17 16:04:34 +00:00
rlar 196262dd1b move the com_*() prototypes around. 2010-10-16 17:09:46 +00:00
rlar 894dcead35 collect if_inpdeck() if_run() if_cktfree() if_dump() if_option() in "spiceif.h" 2010-10-16 15:50:32 +00:00
rlar 7f8ee8818e collect BMin BMax ExpLim Accuracy in "accuracy.h", kill `Acc' 2010-10-15 19:24:52 +00:00
rlar b897dfa857 collect extern timebegin in "misc_time.h" 2010-10-15 18:32:57 +00:00
rlar cf3514b9ae remove ancient #defines for AND OR NOT substitute with && || ! 2010-10-09 11:40:00 +00:00
rlar 8a7b507f84 remove winmessage() prototype, there is no such thing (hopefully) 2010-10-08 18:56:32 +00:00
rlar 933bd11c43 use the type JOB, remove redundant casts 2010-10-08 16:49:18 +00:00
dwarning 0d2b618f31 modification for sun compiler 2010-10-06 20:06:05 +00:00
rlar d936068864 fix incorrect buffer type, and exit(1) on failure to open a tempfile 2010-09-12 17:29:43 +00:00
h_vogt 56679b429b add __MINGW32__ 2010-09-10 20:22:29 +00:00
h_vogt 355384e459 libiberty.h inclusion modified 2010-09-10 15:06:04 +00:00
rlar 241783d0b5 use for(;;) instead of while(1) to muffle some visual-C warnings 2010-09-07 20:07:57 +00:00
h_vogt 453b565f71 improve random number generation 2010-09-01 21:13:01 +00:00
h_vogt ba539d9ef1 new fcn sgauss(), new rnd-no generator 2010-08-28 18:13:08 +00:00
rlar a8c64094fc fix busy waiting loop, when using editline 2010-08-09 18:36:57 +00:00
rlar 02e4a4f32b bug fix, segfault caused by an ancient `editline' workaround 2010-08-07 10:24:58 +00:00
rlar 32e128d1a0 need an #ifdef for one of the just added #includes 2010-07-30 19:17:20 +00:00
rlar 8ff62fd262 add #include's for visibility of prototypes to their function definitions
move some typedefs to "typedef.h"
2010-07-30 16:09:38 +00:00
rlar a49d446826 fix an incorrect type, (&char versus &bool) 2010-07-20 19:06:25 +00:00
rlar 2990821053 use type void* to pass anonymous data to function if_option()
indicate its actual type with an enum cp_types argument
2010-07-17 22:11:51 +00:00
rlar a76cd1e104 textual replacement VT_* to CP_*, to avoid conflict in the windows world 2010-07-17 20:48:20 +00:00
rlar 94518fdb02 use CKTcircuit instead of void*, #3/4 2010-07-07 17:32:40 +00:00
rlar d6ad853ecb fix the type signature of the if_*() function family. 2010-07-06 19:03:40 +00:00
rlar c79d21af82 convert K&R function definitions to ansi style 2010-06-27 09:27:49 +00:00
rlar 3a6540b584 use allready defined enumerate Digital_State_t and Ipc_Status_t 2010-06-24 19:00:15 +00:00
rlar 5946300a97 upgrade foo() --> foo(void) ansi function definition 2010-06-23 18:57:13 +00:00
h_vogt e66ef33c57 ngspice compatibility mode 2010-04-23 22:00:40 +00:00
h_vogt d8810a841a patches by R. Larice 2010-01-17 16:40:22 +00:00
h_vogt 68b06c7a73 comments 2009-12-19 16:04:22 +00:00
h_vogt 5571e9b9fa source file path as additional search path 2009-12-19 09:18:03 +00:00
h_vogt 400100d9c6 pipe mode option -p 2009-12-07 21:42:09 +00:00
h_vogt 13819432bd flag for compatibility mode 2009-11-15 21:22:04 +00:00
dwarning 331facd98e correct the command completion under X11 2009-10-24 06:28:09 +00:00
h_vogt 9fb0d31390 MS Visual Studio: build date, "quit" button 2009-10-18 10:32:11 +00:00
h_vogt 3feb4377a6 initialize variable history_file 2009-10-11 16:54:52 +00:00
h_vogt 9eb855b802 command completion, more comments 2009-08-15 11:47:05 +00:00
h_vogt 1dd7a2869f comments added 2009-08-15 09:27:08 +00:00
dwarning 1ce76b68f1 small cosmetics 2009-07-25 10:21:38 +00:00
h_vogt 4ef61a65cf SIGSEGV handling for Windows 2009-05-02 09:40:33 +00:00
dwarning ded9f403d7 don't need string.h - comes from ngspice.h 2009-04-26 16:47:50 +00:00
h_vogt 6f4cdcac47 replace gpl getopt by BSD getopt 2009-04-12 21:08:18 +00:00
h_vogt fdb0e0bed7 remove heap overflow ion tfree(path) 2009-02-22 21:02:25 +00:00
pnenzi f0d3b7c976 Introduced the possibility to look for parameters in models and not only
in devices.
2009-01-15 16:46:31 +00:00
dwarning 75bb93925a double semikolon in nutmeginfo decl. 2008-12-07 10:07:35 +00:00
h_vogt 75f68291aa various compiler warnings removed 2008-11-26 20:33:20 +00:00
dwarning 530cb059fe polish to prevent warning 2008-10-14 19:59:23 +00:00
h_vogt 3dc3d42553 Small changes, e.g. _MS_VER macro, added to allow compilation of tclspice with MS VC++ 2008 2008-10-04 22:44:52 +00:00
h_vogt cdcf63aa46 add *.cir file path as search path (MS Windows) 2008-09-23 22:13:46 +00:00
pnenzi fa549df82a TCLSPICE IMPORT + libtool + measure2 command 2008-08-27 13:39:05 +00:00
pnenzi 5dfde8105f Machine accuracy limits always defined. 2008-08-24 17:03:26 +00:00
dwarning 5159eac292 srandom has a macro in ngspice.h 2008-05-03 16:05:47 +00:00
dwarning c241af9864 prevent unused 2008-04-16 20:18:25 +00:00
h_vogt 63ed715f75 temporary file for Win added, improved printout for batch mode 2008-04-13 14:29:16 +00:00
dwarning bb1539b666 fix conflict for own shutdown function 2008-01-20 17:36:02 +00:00
dwarning 7b2c98dd1a rflag still needed 2008-01-03 07:27:37 +00:00
dwarning 0618ecbf8b prototypes for asprintf 2007-11-28 17:38:00 +00:00
dwarning 4c0fe001e4 unused variable rflag 2007-11-14 20:27:48 +00:00
dwarning 41325622fd some clean-up's to come through MSC 2007-10-18 19:34:30 +00:00
pnenzi 7703a63230 Added -a option for switching on/off netlist autorun 2007-10-11 11:14:06 +00:00
pnenzi f06a4da2cd Change in rawfile flag 2007-10-10 11:23:40 +00:00
pnenzi 53e52f4a59 Model improvements from Phil Barker 2007-10-08 21:45:00 +00:00
sjborley 1f33b1ee02 Applied fix for logging supplied by Dietmar Warning (src/main.c).
Miscellaneous tidying for format, indentation, #include style ("" vis-a-vis <>). Also removal of some compile time warnings.
2005-05-31 16:47:48 +00:00
sjborley 3a0c488504 Replaced extern references in .c file with #include of suitable headers. Moved jbuf to signal_handler.c 2005-05-29 01:44:20 +00:00
sjborley 47e726bf12 Macros used for sigjmp_buf (JMP_BUF) and sigsetjmp (SETJMP) 2005-05-17 21:43:31 +00:00
sjborley 7545440a55 Added support for the BSD licensed editline library (libedit). Includes work-around for bug in v2.9 of this library. 2005-05-06 23:42:56 +00:00
sjborley e602232500 Fixed issues with the alternate prompt. Translations for German comments provided by Dietmar Warning. fixed readline with ngnutmeg. Updated copyright date for --help. Tidy to removed some compiler warnings. 2005-05-04 01:30:09 +00:00
pnenzi b3e47fbbd3 New logis in initialization files for ngspice. 2005-04-26 19:42:41 +00:00
pnenzi 0c2ff31d0b Applied a set of patches from Steven Borley. See changelog for details. 2005-03-17 21:22:33 +00:00
pnenzi 6a6c41acb4 Corrected implementation of "-o" switch. 2004-08-14 14:55:09 +00:00
pnenzi b03a70760b Applied Stuart's 12-03-2003 patch. Support for readline (disabled) and for node names in the form (x,y). 2004-01-10 21:39:36 +00:00
pnenzi 8686a73047 Added readline patch (support for command history). 2003-08-14 19:21:10 +00:00
pnenzi 8d893d890a CIDER integration. Code updated for cider support. 2003-08-11 20:53:33 +00:00
pnenzi d154d16449 Corrected errors I made in adding tclspice code. 2003-08-06 10:53:38 +00:00
pnenzi 78ad27c858 Applied vera patches and updated Changelog. 2003-07-25 19:57:34 +00:00