Commit Graph

81 Commits

Author SHA1 Message Date
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
rlar 64b8dfc570 use wl_delete_slice() 2012-07-29 13:11:43 +02:00
rlar 891d99497d use wl_find() 2012-07-28 12:29:23 +02:00
rlar 561d30e5bf implement wl_chop() 2012-07-21 14:42:18 +02:00
rlar 9655b9885a cleanup, use wl_cons(), wl_append_word() and wl_chop_rest() 2012-07-14 10:23:51 +02:00
rlar bde3536ecc subckt.c, doit(): fix another memory leak 2012-06-12 21:26:27 +02:00
rlar e3402554f0 subckt.c, doit(): fix a memory leak 2012-06-12 21:26:27 +02:00
rlar 6e829f7cc4 rewrite subckt.c
transform doit() into a true recursive version,
    drop usage of global variables
  reduce scope of many variables
  cleanup and readability

  FIXME,
    an opportunity to plug a memory leak is visible now.
2012-03-25 20:19:42 +02:00
rlar da06afb895 bug fix, numnodes()
in response to the `ex-41.cir' test case
    distilled from a Dietmar Warning Bug report in
      "Subject: Re: subckt, param"

  translate() is called recursively and depends on
    `num of nodes' provided by numnodes().
  numnodes() depends on availability of `su_numargs'.
  But the processing allows non-processing of subckt instantiations
    in inner recursions (which will be processed later)
    which means `su_numargs' is not always available.
2012-03-25 18:54:10 +02:00
rlar d5f6bcbedf drop some more casts 2012-02-06 20:11:10 +00:00
h_vogt 54501d90e0 beautify code 2011-12-16 21:55:28 +00:00
rlar f7ea50c287 new: configure --enable-adms3 2011-12-15 20:44:45 +00:00
r29173 bab7e17a6a added SPICEadmsdev - a super structure of SPICEdev used to build dynamic device libraries 2011-12-15 15:34:50 +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 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 23056573d8 code cleanup, drop NULL pointer casts 2011-04-28 15:59:36 +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 927470e12f minor rewrite, avoid type conversion warnings 2010-11-06 16:50:21 +00:00
rlar 6e3bbd49ae casts, to make int <-> char conversions explicit 2010-11-02 17:31:19 +00:00
rlar b4ffca60c4 (int) casts for some `strlen()' expressions 2010-11-02 17:17:43 +00:00
rlar 01566f2b49 add casts to make `int' versus `size_t' conversions explicit 2010-11-02 17:07:57 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
rlar 6e9e8e2e51 trealloc usage unification 2010-10-24 13:32:17 +00:00
rlar 3c3b31fa60 declare some functions `static' 2010-10-15 18:43:52 +00:00
h_vogt e45aff5549 b. added to i(b.xxx.byyy) 2010-10-07 21:43:40 +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 8851f67efd Change remaining code to use the new usage pattern cp_getvar(,CP_BOOL,NULL) 2010-07-20 18:52:19 +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 d19476685a tiny fixes 2010-07-03 17:55:44 +00:00
rlar 3369d860b4 cast the return values of malloc() function calls 2010-07-01 19:52:23 +00:00
h_vogt aab308e863 bug, see support tracker no. 3013968 2010-06-19 18:23:32 +00:00
h_vogt dd66fc7220 abort if .inc fails 2010-05-16 16:31:03 +00:00
h_vogt 1cf306f8e8 remove bugs in processing of lines 2010-05-16 11:55:07 +00:00
h_vogt d850fdd7a3 fcn finishLine: add e. or h. to token inside i(...) 2010-05-10 21:57:36 +00:00
h_vogt 9e2f02fbe2 HERTZ added to B source 2010-03-20 15:32:23 +00:00
h_vogt 76feebbbfa various bug fixes 2010-02-25 21:43:03 +00:00
dwarning ba54c4d9b8 big kspice model update 2010-02-07 18:16:17 +00:00
h_vogt f1a4f27d21 improved numparam error message 2010-02-07 11:27:59 +00:00
dwarning 88c64bc954 devmodtranslation for txl and cpl in subckts 2010-01-27 21:26:08 +00:00
h_vogt 204362044e .gllobal bug 2010-01-17 14:49:42 +00:00
h_vogt ecf5665104 patch for translate(), R. Larice, .global bug 2010-01-15 22:05:23 +00:00
dwarning e09d408c0f support of 5-terminal bjt's in subckt's 2009-11-09 09:15:21 +00:00
dwarning 07e06cf701 initialize local variables 2009-10-04 11:48:37 +00:00
dwarning ca8bbd2695 /* within comment 2009-08-22 18:12:17 +00:00
h_vogt 9282e4e434 comments added 2009-08-17 20:13:51 +00:00
h_vogt b16759cf97 1348: find last dot 2009-05-10 19:29:13 +00:00