Commit Graph

281 Commits

Author SHA1 Message Date
h_vogt 295c808b01 alloc.c sharedspice.c: improve thread safety
still much more to be done!
2013-12-31 16:06:53 +01:00
h_vogt d7e291c53a HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
rlar 6c8f002eea unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
h_vogt 8e5ad3d344 ivars.c: prevent crash in CYGWIN batch mode, if NGSPICE_INPUT_DIR given
remove unused Default_MFB_Cap
2013-01-01 17:31:44 +01:00
h_vogt 75447dc43c implement spice_dstring_append_lower()
patch originally provided by Bill Swartz, 2010
2012-12-09 13:27:53 +01:00
Francesco Lannutti 08ec219417 remove all .cvsignore files 2012-10-26 18:30:14 +02:00
Francesco Lannutti 1dc70189a7 remove compilation warnings (type casts) 2012-10-26 18:04:44 +02:00
Francesco Lannutti c23bd59c44 removed ancient PARALLEL_ARCH feature
removed variables
  ARCHme
  ARCHsize

removed functions
  SMPcombine()
  SMPcCombine()
  CKTpartition()

removed files
  spcombin.c
  cktpartn.c

removed struct slots
  STATcombineTime
  STATtranCombTime
  STATacCombTime
  GENowner
  <MODEL>owner
2012-10-22 23:06:25 +02:00
rlar 11579d9369 cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
rlar adc9ee09ce api change for ngdirname() to fix a memory leak
ngdirname did `own' the returned string.
now the invoker is responsible for the returned string.

note, this is contrary to the POSIX dirname() implementation,
   which *might* return pointers to statical allocated memory.
2012-09-13 20:07:33 +02:00
rlar 84283b43d4 cleanup ivars() related globals on program termination 2012-08-23 21:09:25 +02:00
rlar d50ffdd987 swallow warnings 2012-08-06 19:50:23 +02:00
rlar 713091ea22 wlist #3/3, whitespace 2012-08-04 11:40:35 +02:00
rlar fe5ac28b92 wlist #2/3, cleanup 2012-08-04 11:40:35 +02:00
rlar 406dcc3519 wlist #1/3, cleanup 2012-08-04 11:40:35 +02:00
rlar 9ed7ce4e9e wlist.c, `const' ness 2012-08-03 21:46:13 +02:00
h_vogt 96d2ff96e0 alloc.c: exlude controlled_exit if not MS Windows
not available in some tests in cmaths and executable like ngproc2mod
2012-08-03 08:28:50 +02:00
h_vogt 67e0cf0608 undo controlled_exit: not compatible with ancient tests in cmath under LINUX 2012-08-01 22:10:13 +02:00
h_vogt b85f6bbc7d controlled_exit() instead of exit() 2012-07-31 17:54:51 +02:00
rlar cdef8aa10e implement wl_delete_slice() 2012-07-29 13:11:42 +02:00
rlar 608e0473d3 copy(), allow NULL argument 2012-07-28 19:53:55 +02:00
rlar e2be942b72 implement wl_find() 2012-07-28 12:29:22 +02:00
h_vogt 4d0d0fafb9 repair broken ternary function in B-Source
failed if parameters were included in function.
fixed by finding nested parens in gettok_char()
2012-07-21 22:23:49 +02:00
rlar 561d30e5bf implement wl_chop() 2012-07-21 14:42:18 +02:00
h_vogt 87c80b842c gettok_char(), return(NULL) if substring not found 2012-07-19 23:16:15 +02:00
rlar 2b859633a1 fix the fix wl_reverse() for empty lists 2012-07-15 19:42:09 +02:00
rlar a890a55937 fix wl_reverse() for empty lists 2012-07-14 12:39:13 +02:00
rlar 5859f1a61d comments for wl_cons(), wl_append_word() and wl_chop_rest() 2012-07-14 12:39:02 +02:00
rlar 9655b9885a cleanup, use wl_cons(), wl_append_word() and wl_chop_rest() 2012-07-14 10:23:51 +02:00
rlar d9ddaec784 implement wl_cons(), wl_append_word() and wl_chop_rest() 2012-07-14 09:18:39 +02:00
rlar cb0a48801d introduce AM_CFLAGS = $(STATIC) 2012-07-07 14:51:39 +02:00
h_vogt fc7692a896 outheap removed 2012-02-11 12:50:44 +00:00
h_vogt 5d101f46f9 updates tcl for Windows 2012-02-11 11:59:12 +00:00
rlar d04f0948d6 preserve const'ness of some casts 2012-02-06 20:21:47 +00:00
rlar afa1371746 #3/6 config.h --> ngspice/config.h, AM_CPPFLAGS 2011-12-27 12:05:51 +00:00
rlar 4ca58067a2 #2/6 config.h --> ngspice/config.h, #include's 2011-12-27 11:33:01 +00:00
h_vogt 94e9f07b90 Gxxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2) 2011-12-21 21:33:47 +00:00
rlar 0d7f64657c move stringutil.h --> src/include/ngspice 2011-12-17 17:16:29 +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 d26015586c #1/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:27:09 +00:00
rlar 9fd458f0ed rewrite ngdirname() 2011-08-07 19:26:53 +00:00
h_vogt e86527635b ivars(char*), Windows 64, 32 bit 2011-08-03 20:03:42 +00:00
rlar 2d50db4b91 use size_t 2011-07-24 20:16:21 +00:00
rlar 56287d9a1d nghash cleanup, use `%p' to print a pointer value 2011-07-17 11:20:31 +00:00
rlar a057ea7bd4 nghash cleanup, use stdint.h for proper sized integers representing a pointer 2011-07-17 10:59:00 +00:00
rlar 2b2dcb7f31 nghash cleanup, cleanup default functions 2011-07-17 09:58:27 +00:00
rlar c680e70e8e nghash cleanup, polish types 2011-07-17 09:56:45 +00:00
rlar 065b495248 nghash cleanup, drop a trivial local variable 2011-07-17 09:55:33 +00:00
rlar abfa90832d nghash cleanup, fix typeof compare_func 2011-07-17 09:54:20 +00:00
rlar 7ac266e2e7 nghash cleanup, fix typeof nghash_func 2011-07-17 09:53:07 +00:00
rlar 2aa778552f nghash cleanup, struct forward declarations 2011-07-17 09:51:48 +00:00
h_vogt ab587d8d3f environmental variable NGSPICE_INPUT_DIR 2011-07-10 09:59:39 +00:00
rlar 3227d3c170 some explicit `int' casts 2011-07-09 19:40:16 +00:00
rlar 90360ef24c swallow type conversion warnings 2011-06-26 20:00:03 +00:00
h_vogt cc36fb8071 dirname() -> ngdirname() 2011-06-25 23:07:13 +00:00
h_vogt f3565bab6b fix usage of dirname() 2011-06-25 20:34:28 +00:00
h_vogt 661d287029 env. var NGSPICE_INPUT to hold additional path for input files 2011-06-25 16:03:05 +00:00
rlar 9ee308a2a5 function pointer invocation, (*p)(...) ---> p(...) 2011-06-23 16:45:32 +00:00
rlar b93fcb3779 remove some useless casts 2011-06-22 17:17:40 +00:00
h_vogt 3547fdc5f3 explicit casts double -> int 2011-06-11 18:38:38 +00:00
rlar 0b6a557334 code cleanup 2011-04-27 18:30:15 +00:00
h_vogt 53ba204cbb char* identifiers 2010-12-13 22:15:19 +00:00
dwarning 3ab9e6d060 cvs ignore .libs 2010-12-12 09:42:47 +00:00
dwarning b964cf949c cvs ignore *.lo and *.la 2010-12-12 09:34:10 +00:00
rlar e6c30efe46 Nr 4/5 (x = ...) != NULL , swallow warnings 2010-11-19 18:52:44 +00:00
rlar 6256f69499 Nr 2/5 (x = ...) != '\0' , swallow warnings 2010-11-19 18:49:05 +00:00
rlar 75b6eeb94a add `int' casts to some strlen() expressions, and center labels on a xlog scale 2010-11-06 20:17:19 +00:00
rlar 1779d62558 add some `int' and `size_t' casts 2010-11-06 20:14:21 +00:00
rlar d0dba768f8 change the type of a bunch of variables from `int' to `size_t' 2010-11-06 20:11:24 +00:00
rlar 5f4b0aa798 (int) cast the return value of some strlen() invocations 2010-11-06 16:54:11 +00:00
rlar 2cdd98715a minor modification of strtolower(), and implement strtoupper() 2010-11-04 20:01:46 +00:00
rlar 411c6fc8c3 minor rewrites 2010-11-04 19:28:00 +00:00
rlar db9125fecc convert some variables, from `int' to `size_t' 2010-11-02 17:20:05 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
rlar 5e8e44cc0a cast the tmalloc, MALLOC, return value 2010-10-24 12:59:20 +00:00
rlar b96989b506 fix incorrect usage of tmalloc/sizeof, incorrect indirection level 2010-10-24 12:56:11 +00:00
rlar bf0b7b4386 qsort() usage, drop cast of the first argument (which is a void *) 2010-10-24 12:53:52 +00:00
rlar b897dfa857 collect extern timebegin in "misc_time.h" 2010-10-15 18:32:57 +00:00
rlar 5bc8777a9b remove #define for EOS use '\0' instead 2010-10-09 11:42:10 +00:00
rlar cf3514b9ae remove ancient #defines for AND OR NOT substitute with && || ! 2010-10-09 11:40:00 +00:00
dwarning 0d2b618f31 modification for sun compiler 2010-10-06 20:06:05 +00:00
rlar 68b2e6b23a whitespace cleanup (all Makefile.am files) 2010-09-17 16:11:25 +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 2010672489 rename configure.in -> configure.ac 2010-09-08 17:14:44 +00:00
rlar 241783d0b5 use for(;;) instead of while(1) to muffle some visual-C warnings 2010-09-07 20:07:57 +00:00
dwarning 4d1bae86f0 prevent unreached statement if pwd.h available 2010-09-04 12:41:04 +00:00
rlar 50ad9c548e chomp some warnings 2010-08-15 18:26:56 +00:00
rlar 4cdd842cd8 muffle compiler warnings 2010-07-24 18:51:06 +00:00
rlar 62c6626254 add casts for void* returning functions 2010-07-11 19:34:15 +00:00
h_vogt fe2d079b31 par('expression') 2010-07-10 11:27:57 +00:00
rlar 3369d860b4 cast the return values of malloc() function calls 2010-07-01 19:52:23 +00:00
h_vogt ba48d85de1 return NULL 2010-06-03 22:17:25 +00:00
dwarning 5fcf9c2afe ternary operation in control blocks 2010-04-11 08:49:05 +00:00
dwarning 112261297d Bill Swartz patch 2010-03-25 22:44:37 +00:00
h_vogt a6c4756581 new files 2010-02-25 22:09:23 +00:00
h_vogt 76feebbbfa various bug fixes 2010-02-25 21:43:03 +00:00
h_vogt c7470aa895 line endings 2010-02-15 10:28:48 +00:00
dwarning 12ce6f7980 backup to exit() function 2010-01-30 14:04:59 +00:00
dwarning 27461a41eb controlled_exit removed 2010-01-30 13:29:16 +00:00
dwarning 8585a00243 controlled_exit implementation 2010-01-30 13:21:27 +00:00
dwarning 9f97f8701c provide a controlled_exit function 2010-01-19 21:48:42 +00:00
h_vogt d8810a841a patches by R. Larice 2010-01-17 16:40:22 +00:00
h_vogt 82d46a68c8 '^' added to is_arith_char() in string.c 2009-12-12 17:40:20 +00:00
dwarning 586af63f36 changed the declarator to new format 2009-11-26 20:04:09 +00:00
dwarning 62ef3c6793 init structure with 0 instead NULL 2009-11-18 21:19:49 +00:00
dwarning 9b90e03e90 stringutil.h: separate bcopy and bzero providing 2009-10-18 13:46:09 +00:00
h_vogt 6053c50723 mempool.c, hash.c compatmode.c removed (Preliminary) 2009-08-23 14:45:23 +00:00
h_vogt 9f1ee290a4 new code for .measurement 2009-08-23 10:02:28 +00:00
h_vogt 9aad956864 convergence (output.net), add some comments 2009-06-11 14:12:07 +00:00
dwarning ded9f403d7 don't need string.h - comes from ngspice.h 2009-04-26 16:47:50 +00:00
dwarning a755164f06 relay on ngspice.h 2009-04-26 09:04:43 +00:00
h_vogt eb378da811 winmessage 2009-04-22 21:57:37 +00:00
h_vogt 65b3fa2a4a show error message in Windows before exiting 2009-04-22 21:25:29 +00:00
h_vogt 6c55df1cb5 Windows error message 2009-04-22 21:15:30 +00:00
dwarning 4e8d474799 only cosmetics 2009-04-13 19:47:43 +00:00
h_vogt fa60b4d849 replace gpl getopt by BSD getopt 2009-04-12 21:14:00 +00:00
h_vogt 6f4cdcac47 replace gpl getopt by BSD getopt 2009-04-12 21:08:18 +00:00
dwarning 59917a149e init rusage 2009-04-01 19:33:38 +00:00
dwarning 9071404c63 exclude heap usage for windows compile under __MINGW__ 2009-02-01 18:09:15 +00:00
h_vogt 5dac6590e2 New heap only for tclspice in Windows (HAS_TCLWIN defined) 2009-02-01 09:49:35 +00:00
h_vogt 488771485e add HAS_TCLWIN 2009-01-18 12:09:56 +00:00
dwarning 0d1f70c6a9 heap also needed under windows with tcl 2009-01-14 20:44:49 +00:00
dwarning bea58219e7 heap only needed under windows 2009-01-09 20:19:57 +00:00
h_vogt 1fa4faf88c tclspice for Windows 2008-12-31 14:42:49 +00:00
saintel 6fe0cebe58 *** empty log message *** 2008-11-22 10:31:46 +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 7f6ad5c706 Updated to new automake standard. Replaced all INCLUDES with AM_CPPFLAGS 2008-08-24 17:12:50 +00:00
dwarning a28ad1a197 math functions in one central place maths/misc 2008-05-11 20:27:28 +00:00
dwarning 9cbf5a91ee moving some string functions from inpcom.c 2008-04-06 19:36:06 +00:00
dwarning 28e90e6330 Using a real double compare to equal. 2008-01-02 18:52:04 +00:00
dwarning 888a934fc5 token function for bjt instance 2007-12-29 21:13:23 +00:00
dwarning 6464cf535d backup - no unique long long function 2007-12-27 22:02:06 +00:00
dwarning b22a7666c1 AlmostEqualUlps in double is needed 2007-12-27 17:02:22 +00:00
dwarning adaeb6ca81 strip WhiteSpaces inside parens of dot cards 2007-12-02 22:00:25 +00:00
dwarning e099459179 no message 2007-12-02 21:56:44 +00:00
dwarning 7476998764 better macro request to HAVE_DIRNAME 2007-11-28 17:42:55 +00:00
dwarning 0618ecbf8b prototypes for asprintf 2007-11-28 17:38:00 +00:00
dwarning b7e71db2ad AlmostEqualUlps on central place 2007-11-21 17:05:51 +00:00
dwarning 88155300e6 providing prototype for timediff 2007-11-14 20:26:34 +00:00
dwarning 6c9f3ecc09 comment was nonsens 2007-11-14 20:25:39 +00:00
dwarning c4d1e93222 no prototypes index/rindex for non-provided functions 2007-11-14 20:25:17 +00:00
dwarning f4a3add493 dirname and basename for MSC 2007-10-24 20:59:45 +00:00
dwarning 41325622fd some clean-up's to come through MSC 2007-10-18 19:34:30 +00:00
pnenzi 9eb9f56060 fix for the negative times in seconds. 2007-06-14 10:27:35 +00:00
sjborley 358b5f829a Replace C++ style comment with C style comment 2005-05-22 20:39:07 +00:00