Commit Graph

6234 Commits

Author SHA1 Message Date
Holger Vogt 950fbd8290 Put the copy for generating permanent next_token exactly at the places
where is is needed: INPtermInsert() and fast->conn...->neg_node_str
XSPICE memory leaks are gone!
2018-11-11 18:54:24 +01:00
Holger Vogt b3695cb900 Add a function gc_start to reset the garbage collector 2018-11-11 17:57:13 +01:00
Holger Vogt 07f442c3d9 ** A local garbage collector **
Add the list of malloced addresses alltokens.
Add a function copy_gc to copy and enter the address.
Add a function gc_end to delete all entries in alltokens.
   Beware of addresses deleted elsewhere and use anew by malloc.
Some tokens should not be deleted here, they get another copying.
2018-11-11 16:04:52 +01:00
Holger Vogt 56443a58e3 add gc functions to replace MIFgettok and MIFget_token 2018-11-11 13:54:22 +01:00
Holger Vogt dbec61ae42 remove all instances of tfree.
Code is working, but full of memory leaks.
2018-11-11 12:41:30 +01:00
Holger Vogt 25885e4526 plug a memory leak, delete 'element', if tmalloced before 2018-11-11 00:46:16 +01:00
Holger Vogt 2355fafbf5 mif_inp2.c, improve on memory leaks
Delete token before generating it anew, delete def_port_str
only if not already done before.
Still there are some tiny leaks left.
2018-11-11 00:28:29 +01:00
Holger Vogt 76b5f16a88 Enable function GetProcessMemoryInfo() to get reliable memory usage data
for MINGW and MSVC console, WinGui and MSVC shared ngspice.
MINGW shared ngspice does not link to psapi.dll, so cannot
apply  GetProcessMemoryInfo(),  but sticks to unreliable function
GlobalMemoryStatusEx().
2018-11-10 16:36:15 +01:00
Holger Vogt 9fe60694c2 No gcc flag -fvisibility if MINGW, CYGWIN
Add flag WINCONSOLE to be used in makefile.am
2018-11-10 16:31:54 +01:00
Holger Vogt 9c39d542ec regression first, then xspice, then the model qua tests 2018-11-10 11:16:30 +01:00
Holger Vogt efc4c978e3 add .if ... .endif test to misc in regression 2018-11-10 11:05:36 +01:00
Holger Vogt f37013c96a make regrssion test first, the xspice, then model qua tests 2018-11-10 11:04:25 +01:00
Holger Vogt c22231599d bug 378 put tfree(def_port_type_str) to an appropriate place. 2018-11-07 23:20:55 +01:00
dwarning 0618dea999 Also in case of allocation error we have to free existing memory before return. 2018-11-07 16:55:01 +01:00
dwarning 13617be529 The 'then' statement was equivalent to the 'else' statement.
Also moredimensional poly sources need only one closing bracket for input port.
2018-11-07 16:14:50 +01:00
Holger Vogt a271797b39 inp.c, .if: enable multiple .elseif sections 2018-11-06 23:00:04 +01:00
Holger Vogt 3c85f07046 no lower case after redirection sign > for command 'asciiplot' 2018-11-06 19:19:38 +01:00
Holger Vogt f1ddd6606c fix ouput redirection for 'print' command 2018-11-06 19:06:01 +01:00
dwarning 66d32f3355 don't ask two times if the allocation has failed 2018-11-06 18:58:51 +01:00
dwarning 1e5065c7a1 As the comment said we have bypass only without selfheating
so the expression 'here->HSMHV2_coselfheat > 0' is always false
and all derivatives to temperature are 0.
2018-11-06 16:09:51 +01:00
Holger Vogt 458a4be12b bug 375, select correct input line,
reported by  Bohdan Tkhir
2018-11-05 23:02:40 +01:00
dwarning c7e8e20a87 white spaces 2018-11-05 22:55:19 +01:00
Holger Vogt 27da9a0626 control.c, bug 374, prevent crash if cend[stackp] is NULL
reported by  PyroPeter
2018-11-05 21:03:21 +01:00
dwarning 86cb946170 proper initialization of b magnitude coefficient in a special case 2018-11-05 15:51:31 +01:00
Holger Vogt 83cc000db5 bug 253: Do not delete the scale vector of the current plot 2018-11-04 22:47:03 +01:00
Holger Vogt b962f44da5 Bug #332, reported by M. Hendriks
Add a warning if statements .control ... .endc are misplaced or missing
2018-11-04 13:48:36 +01:00
Holger Vogt dc3b034781 Feature request #41 by Marek Szuba
Support libtinfo (split ncurses) in autoconf
2018-11-04 11:36:34 +01:00
Holger Vogt 726ec23b2f bug 337: keep '-' as sign of number following tc1, tc2 2018-11-02 23:49:07 +01:00
Holger Vogt fcd9c3038a keep sign together with number when preparing B source pwl (and others)
Seems to be optional, B Source handles numbers with offset sign
2018-11-02 22:16:10 +01:00
Holger Vogt 781a3dedcb bug 337: replace atof by INPevaluate to allow ngspice numbers
in tc1 or tc2 tokens.
2018-11-02 22:15:59 +01:00
dwarning bb0ccbbcf8 variables are assigned values twice successively 2018-11-02 17:38:06 +01:00
dwarning 0181a05a58 bug #368: x-axis description for nested dc sweeps should inline with first level sweep 2018-11-02 14:22:03 +01:00
Holger Vogt d2d1095958 various fonts and font sizes for plotting 2018-11-01 23:17:18 +01:00
Holger Vogt c43ee240f6 grid.c, windisp.c, vertical text for postscript and WINGUI
Arial as standard font for WINGUI
2018-11-01 23:15:39 +01:00
Holger Vogt 568e719354 add rotation angle to text output, currently used only by postscript,
ignored by all others
2018-11-01 22:50:54 +01:00
Holger Vogt 27ba17c205 re-eable compiling without xgraph 2018-11-01 22:16:34 +01:00
Holger Vogt e165f61450 postsc.c, enable postscript output for extended ascii.
Currently only Western European latin-1 (ISO/IEC 8859-1) encoding
is supported.
2018-11-01 21:58:33 +01:00
h_vogt b4daddc211 Do not set Bit 8 in an ANSI char, when \ or ^ occured in a string. Thus the full ANSI set is now available in ngspice strings. The setting of Bit 8 was not exploitet anywhere, but did not allow using the characters from extended ANSI. 2018-11-01 21:52:27 +01:00
Holger Vogt 7dbe9cf506 inpcom.c, command gnuplot: no lower case in xlabel, ylabel, title 2018-11-01 21:50:30 +01:00
Holger Vogt c9b91e2c05 noisean.c, beautify the code 2018-11-01 21:38:04 +01:00
h_vogt afe36c73d5 noisean.c, ensure correct user input:
number of points always > 0
single frequ measurement if 1 point given
2018-11-01 21:31:13 +01:00
h_vogt c743ba08e5 com_measure2.c, write a fft vector (sp plot) with complex data
and real frequency to file and load it again, frequency now has become
a complex number as well. This was not recognized, thus ngspice crashed
(see https://sourceforge.net/p/ngspice/discussion/127605/thread/8cccd69c/
by Michal Janik - 2014-11-04
2018-11-01 21:30:21 +01:00
Holger Vogt 5dbcea3044 move model name example to examples/various 2018-11-01 21:23:40 +01:00
Holger Vogt b8c4201010 Exclude from model search all lines beginning
with a character contained in this list: *vibefghkt
2018-11-01 21:18:17 +01:00
Holger Vogt 56bc325a35 update to model search function 2018-11-01 21:17:36 +01:00
Holger Vogt e1424287e7 some model name examples 2018-11-01 21:13:24 +01:00
Holger Vogt 89a659b6a1 Update to the model name search function:
A model name is any token not being a true ngspice number,
except for tokens with some prohibited front characters
{*^@\\\' .
2018-11-01 20:50:29 +01:00
Holger Vogt 6dd02eaf64 Revert "allow model names starting with underscore _"
This reverts commit df411ad1c9.
2018-11-01 20:47:52 +01:00
Holger Vogt df411ad1c9 allow model names starting with underscore _ 2018-11-01 18:50:09 +01:00
Holger Vogt bee866b926 remove xgraph from ngspice distribution.
ngspice supports gnuplot instead.
30 year old legacy code, not maintained.
Does not compile on MS Windows,
compiles on Cygwin, but xgraph.exe crahes immediately.
Lots of compiler warnings.
2018-11-01 13:47:25 +01:00