Commit Graph

324 Commits

Author SHA1 Message Date
h_vogt 2379bd577a XSPICE triangle: remove memory leak remove initialization error for phase1 FIXME: there are still more initialization errors 2012-09-09 19:07:29 +02:00
h_vogt 8ece02a1cd XSPICE triangle: indentations 2012-09-09 17:56:12 +02:00
h_vogt feb545d8a7 XSPICE oneshot: remove memory leak remove using uninitialzed variable old_clock correct waveform shape by using permanent breakpoints 2012-09-09 16:55:10 +02:00
h_vogt 36898f9921 indentations 2012-09-09 16:44:58 +02:00
h_vogt bcbd506ccc XSPICE sine: out-of-bounds removed 2012-09-08 01:38:25 +02:00
h_vogt 10d97d222e XSPICE sine source: memory leak removed (bug no. 3564166) 2012-09-08 00:45:59 +02:00
h_vogt 5ce51f148e XSPICE filesource: remove segfault with op before tran 2012-09-07 23:48:09 +02:00
h_vogt 0efaeac8b4 evtqueue.c: plug memory leak 2012-08-27 10:42:12 +02:00
h_vogt a5a1029998 d_source: Use STATIC_VAR_TABLE to save memory 2012-08-25 13:39:27 +02:00
h_vogt f4ad29a17c d_source: allow multiple instances 2012-08-22 23:14:26 +02:00
h_vogt 7191fdce63 d_source cfunc.mod: plug memory leaks 2012-08-20 08:54:26 +02:00
h_vogt 488bc6a8c8 bug no. 3456221: new d_source model 2012-08-19 21:36:33 +02:00
rlar b5b0ec7302 cleanup, white space changes 2012-08-19 21:36:31 +02:00
h_vogt cb42989204 mifgetvalue.c: need a copy to allow freeing token 2012-08-19 15:49:24 +02:00
h_vogt 0af75f3bd9 subckt.c, mif_inp2.c: plug XSPICE setup memory leaks 2012-08-18 18:31:23 +02:00
h_vogt b02a497490 mif_inp2.c, subckt.c: plug memory leaks at XSPICE setup 2012-08-15 23:11:07 +02:00
h_vogt acfc7a2a27 remove memory leaks 2012-08-04 19:09:13 +02:00
h_vogt b85f6bbc7d controlled_exit() instead of exit() 2012-07-31 17:54:51 +02:00
h_vogt 207adefcda evtprint.c: no node data: error message instead of seg fault 2012-07-30 23:32:54 +02:00
h_vogt 1754427bee enhtrans.c: indentations 2012-07-25 23:05:28 +02:00
h_vogt 9b122d30a3 enhtrans.c, improved error meassage upon non 'Exxx poly' line bug 2012-07-24 22:04:31 +02:00
h_vogt 4ca6e56863 printf() ---> out_printf(): allow output redirection into file 2012-07-11 18:56:19 +02:00
rlar cb0a48801d introduce AM_CFLAGS = $(STATIC) 2012-07-07 14:51:39 +02:00
rlar b398d39772 xpsice, use the CFLAGS when linking .cm code models 2012-06-13 19:15:28 +02:00
h_vogt fde8c46356 add ac and dc simulation to memristor model 2012-06-13 19:15:25 +02:00
h_vogt f53eb5cf78 memristor code model in extradev 2012-06-13 19:15:24 +02:00
rlar f65cdd2f84 Changed line ending of several files from DOS to UNIX 2012-06-12 21:26:29 +02:00
rlar 3d34b22ebf fix file modes 2012-06-12 21:26:29 +02:00
h_vogt 023374fa79 update `making xspice' within actual ngspice 2012-06-12 21:26:27 +02:00
rlar 9f017ea557 .gitignore files 2012-02-26 16:19:58 +01:00
rlar d5f6bcbedf drop some more casts 2012-02-06 20:11:10 +00:00
rlar e800751d3e drop some (char*) casts 2012-02-06 20:03:50 +00:00
h_vogt 131e40dab9 prevent crash upon 'reset' (MS Windows only) 2012-01-28 10:35:04 +00:00
rlar 4755e416e3 install codemodels in $(pkglibdir) 2011-12-29 14:25:21 +00:00
rlar 323bceb33b #5/6 config.h --> ngspice/config.h, some more -I include paths 2011-12-27 12:09:21 +00:00
rlar d3c3741f43 #4/6 config.h --> ngspice/config.h, AM_CPPFLAGS 2011-12-27 12:07:52 +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
rlar d6e616a310 remove CVS `Id',`log' etc. keyword incantations 2011-12-17 18:35:11 +00:00
rlar 0b5042e7da remove CVS `Id',`log' etc. keyword incantations 2011-12-13 19:57:45 +00:00
rlar 4e3cc188d9 #2/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:12:36 +00:00
rlar 10346e055c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
rlar 7152c01751 xspice/icm/GNUmakefile.in, add missing `uninstall' target 2011-11-03 17:05:38 +00:00
rlar 028915d9ae #5/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:47:44 +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 324b27a4d4 ngspice.h always must be the first included file 2011-08-08 15:05:57 +00:00
rlar b6aef04d26 allow '//' comments in xspice code models 2011-08-07 10:04:35 +00:00
h_vogt ede2daf1f6 cmutil: NaN, inpcom: nested ( 2011-07-27 20:08:36 +00:00
rlar f8b4c7eb79 (int) cast, where size can be expected to be small enough 2011-07-24 20:18:00 +00:00
rlar 06bbefb5ee fix usage of an uninitialized variable 2011-07-23 20:02:19 +00:00
h_vogt 6979f1c76a NSPICE_INPUT_DIR 2011-07-10 11:18:57 +00:00
rlar 0892d04c8a explicit `int' casts for some ptrdiff_t expressions, where an `int' seems to be big enough 2011-07-09 19:45:22 +00:00
rlar 0d12371e7d minor bug fix, use EOF 2011-07-01 16:08:03 +00:00
rlar 0160ec8c4d cm.c, swallow type conversion warnings 2011-06-30 16:06:54 +00:00
h_vogt d95f76629a remove char to char* conversion 2011-06-25 23:25:23 +00:00
rlar 828e04c9fd ipc.c and ipcsockets.c, swallow type conversion warnings 2011-06-25 17:36:17 +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 451f88c5e1 swallow type conversion warnings 2011-06-24 15:26:52 +00:00
rlar 5d302ee823 tiny rewrite, round to nearest integer and reset errno for strtol() 2011-06-23 20:04:08 +00:00
h_vogt ce3d11f56e codemodel 'filesource' added to analog models 2011-06-23 19:52:57 +00:00
rlar 71a9a526cd malloc return value cast 2011-06-23 16:55:33 +00:00
rlar 9ee308a2a5 function pointer invocation, (*p)(...) ---> p(...) 2011-06-23 16:45:32 +00:00
h_vogt e6c86b4d98 explicit casting double -> int etc. 2011-06-11 17:07:38 +00:00
rlar 2b66531eb4 mop up some fixme comments 2011-05-08 12:52:58 +00:00
rlar da31886723 rename variable private --> mif_private 2011-05-08 08:48:43 +00:00
dwarning cded776aa6 few build changes 2011-05-07 08:01:22 +00:00
rlar 23ba264cd3 rename variable class --> ctype_class 2011-05-01 19:46:53 +00:00
rlar 6a6a52ebbe mop up, in the shadow of the last two commits 2011-05-01 17:32:41 +00:00
rlar 3d8fb96647 cleanup, (modtmp) --> modtmp 2011-05-01 17:29:21 +00:00
rlar c1683a5571 cleanup, some more (*p).foo --> p->foo 2011-05-01 17:27:52 +00:00
rlar 23056573d8 code cleanup, drop NULL pointer casts 2011-04-28 15:59:36 +00:00
rlar 0b6a557334 code cleanup 2011-04-27 18:30:15 +00:00
dwarning 5059bcb624 using DEPFLAGS for sun cc 2011-03-24 21:08:46 +00:00
dwarning 029f8c99e6 no message 2011-02-23 18:37:38 +00:00
rlar f7f4bfe70f bug fix, when `show' a xspice spice2poly device (acgains) 2011-02-11 19:16:48 +00:00
rlar f40f6c705a fix `make check' for build in a separate directory 2011-01-25 18:39:06 +00:00
rlar c349a97ea1 rework the xspice/icm Makefile for build in a separate directory 2011-01-25 18:34:11 +00:00
rlar 3fec598934 prepare the xspice cmpp processor for build in a separate directory 2011-01-25 17:39:23 +00:00
rlar e1292b0c3a bug fix, segmentation fault caused by `reset' when xspice used 2010-12-04 10:59:28 +00:00
rlar b7d969a472 drop -D CM_WINDOWS and -D CM_LINUX 2010-11-25 19:39:09 +00:00
rlar 83f9110dc1 use NG_IGNORE() ... 2010-11-23 20:00:50 +00:00
rlar 5ea63abb47 fix an ancient bug (typo `!=' versus `=!') 2010-11-23 19:22:57 +00:00
rlar 1755ee8626 d_source, bug fix 2010-11-22 18:54:46 +00:00
rlar b5702020b7 d_source d_state d_ram, rewrite bit operations 2010-11-21 15:44:56 +00:00
rlar 560126526a d_source d_state d_ram, rewrite index operations 2010-11-21 15:43:12 +00:00
rlar c57c3fe972 d_source d_state, change float --> double 2010-11-21 15:41:38 +00:00
rlar 05441d5823 Nr 5/5 (x = ...) == NULL , swallow warnings 2010-11-19 18:54:40 +00:00
rlar e6c30efe46 Nr 4/5 (x = ...) != NULL , swallow warnings 2010-11-19 18:52:44 +00:00
rlar abb87a6115 rename `IGNORE()' --> `NG_IGNORE()' 2010-11-16 20:38:24 +00:00
rlar 5412e4bfd2 convert macro `U()' to `IGNORE()' 2010-11-16 19:13:20 +00:00
rlar 80286e0032 pour `IGNORE()' all over the source 2010-11-16 19:11:32 +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 21a31ab2c2 tiny rewrite, make use of strtolower() and strtoupper() 2010-11-06 17:39:18 +00:00
rlar fbe0def68e change a (int) cast application, to avoid type conversion warnings 2010-11-06 17:16:53 +00:00
rlar 6e3bbd49ae casts, to make int <-> char conversions explicit 2010-11-02 17:31:19 +00:00
rlar 4ca91fbd82 local prototypes in `dlmain.c' 2010-11-02 17:21:49 +00:00
rlar b4ffca60c4 (int) casts for some `strlen()' expressions 2010-11-02 17:17:43 +00:00
rlar c9ba660155 (int) casts for cm_event_alloc and cm_analog_alloc 2010-11-02 17:14:52 +00:00
rlar 01566f2b49 add casts to make `int' versus `size_t' conversions explicit 2010-11-02 17:07:57 +00:00
rlar c3f20f8321 cleanup TMALLOC etc macros 2010-10-31 19:36:57 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
rlar de35847146 realloc does work, even with NULL argument 2010-10-27 16:40:10 +00:00
rlar cc5b9007a7 use tmalloc and trealloc instead of MALLOC and REALLOC 2010-10-27 16:34:27 +00:00
rlar 11c2ff1720 RALLOC usage unification, drop braces around the second argument 2010-10-24 13:24:02 +00:00
rlar 5e8e44cc0a cast the tmalloc, MALLOC, return value 2010-10-24 12:59:20 +00:00
rlar de10506199 cmpp shall add a function prototype to the generated "cfunc.c" file 2010-10-15 18:59:07 +00:00
rlar 59e223c5e4 disable dangling artifact 2010-10-15 18:53:58 +00:00
rlar 7f7504f30a collect prototype for ifs_yyerror() in "ifs_yacc_y.h", and fix return type 2010-10-15 18:49:12 +00:00
rlar 1c2bae2c48 collect prototype for mod_yyerror() in "mod_yacc_y.h", and fix return type 2010-10-15 18:47:20 +00:00
rlar 47d271d0c0 declare udn_int_ and udn_real_functions `static' 2010-10-15 18:36:28 +00:00
rlar 2540531c38 remove local prototypes, which are allready included 2010-10-15 18:31:20 +00:00
rlar 746c9d1212 static function definition 2010-10-08 18:20:39 +00:00
rlar 101f6d5f4a str_to_lower() init_error() protoypes --> include files 2010-10-08 18:11:48 +00:00
rlar 9cb57888d5 too much quoting caused an error for quoted things in CFLAGS 2010-10-08 17:18:55 +00:00
rlar 61f4fffdac use $(MAKE) instead of literal `make' 2010-09-30 20:24:07 +00:00
rlar 7816052481 bug fix, ./configure && make dist was broken, hardwire flex 2010-09-30 20:21:57 +00:00
h_vogt 97085752a4 external LDFLAGS for MINGW 2010-09-18 16:58:31 +00:00
rlar 001ad0c2bc `make dist' add some missing artifacts 2010-09-17 16:24:01 +00:00
rlar 68b2e6b23a whitespace cleanup (all Makefile.am files) 2010-09-17 16:11:25 +00:00
rlar d4946a6e81 convert K&R function definitions to ansi style 2010-09-07 20:11:13 +00:00
rlar 241783d0b5 use for(;;) instead of while(1) to muffle some visual-C warnings 2010-09-07 20:07:57 +00:00
rlar e20e18b855 whitespace cleanup, \r\n -> \n 2010-09-07 18:57:22 +00:00
dwarning f58d7a5001 omit warnings 2010-08-17 07:37:46 +00:00
rlar 50ad9c548e chomp some warnings 2010-08-15 18:26:56 +00:00
rlar 44a182c1ba use the type CKTnode instead of void* 2010-08-11 18:54:31 +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 b31aef0557 find a suitable home for **DEVices and DEVmaxnum in devdefs.h 2010-07-24 21:16:50 +00:00
rlar 60ff9aaef2 muffle `nested extern' warnings, and drop a handcrafted malloc prototype 2010-07-24 20:24:26 +00:00
rlar 4cdd842cd8 muffle compiler warnings 2010-07-24 18:51:06 +00:00
rlar d0a7220f6f muffle `unused variable' warnings 2010-07-24 18:24:43 +00:00
rlar a0a7d0ca70 xspice, xtraevt/*real*, add casts to `INPUT' and `OUTPUT'
the *.ifs files specify this to be `real'
  yet the *.mod translator seems to be incomplete, and delivers void *
2010-07-16 15:47:05 +00:00
rlar ba91a6074a add a missing `const' qualifier 2010-07-16 15:42:46 +00:00
rlar 1915f964dc xspice, digital/d_fdiv, fix the type of counter and counter_old
from Digital_State_t to int
2010-07-16 15:38:27 +00:00
rlar 84a69a3896 xspice, flip-flops and ram, cast the `ic' PARAM to Digitial_State_t
the *.ifs file claims this parameter to be an integer in range 0..2
  meant to represent ZERO, ONE and UNKNOWN
2010-07-16 15:33:25 +00:00
rlar 26412f883e xspice, cast so called `STATIC_VAR' pointers to their concrete type 2010-07-16 15:26:05 +00:00
rlar a44cc3dd7e for c++, lex input() function is named yyinput() 2010-07-11 19:22:36 +00:00
rlar fd7ef635a2 missing casts 2010-07-11 16:04:27 +00:00
rlar cc1cdbeeac dont compare with '\0' when NULL was meant 2010-07-11 12:33:54 +00:00
rlar 98ae3c949f cast the udn*() function args 2010-07-11 10:59:03 +00:00
rlar 3600f91ab0 drop some malloc prototypes, use <stdlib.h> 2010-07-10 12:48:56 +00:00
rlar 26f2d23e6c cleanups 2010-07-10 12:37:49 +00:00
rlar c2ca9a7998 drop -1, extend enum Mif_Cntl_Src_Type_t 2010-07-10 12:23:33 +00:00
rlar d7e2e7f7f0 cast malloc... return values 2010-07-09 16:53:34 +00:00
rlar eb6e3e9827 fix some casts 2010-07-08 18:27:17 +00:00
rlar c9bfe72187 use CKTcircuit instead of void*, #4/4 2010-07-07 17:36:56 +00:00
rlar 94518fdb02 use CKTcircuit instead of void*, #3/4 2010-07-07 17:32:40 +00:00
rlar e26cec467d initialization of the struct IFdevice.flags element in generated code 2010-07-05 16:42:48 +00:00
rlar d6d7fbde26 cast the return values of the void* returning functions 2010-07-05 16:16:56 +00:00
rlar d19476685a tiny fixes 2010-07-03 17:55:44 +00:00