Holger Vogt
050cea146e
correct zeroing of allnodes array
6 years ago
Holger Vogt
833751ab3f
fix typo
6 years ago
Holger Vogt
bad2a4e467
Guard XSPICE plot switching against circuit being removed already
6 years ago
Holger Vogt
ae2d207344
don't forget to free jobs->statistics[i]
6 years ago
Holger Vogt
3b5c272096
free mor data in jobs struct. Avoid memory leak upon 'quit' command.
6 years ago
Holger Vogt
bc0cef9371
remove all data enlisted in the jobs structure
6 years ago
Holger Vogt
bbb0007466
add function EVTswitch_plot() to switch the event data
according tothe (analog) plot. Called from plot_setcur()
in vetors.c, when command 'setplot xxx' is given.
6 years ago
Holger Vogt
d72b4c415f
get the plot name into the event job
6 years ago
Holger Vogt
b356b00014
Fixes bugs 476, 486: Reset code model init flag,
required when any run is called a second time.
6 years ago
dwarning
f19da3bd79
case correction for library name
6 years ago
Holger Vogt
c076c932b4
enable MINGW linking to -lShlwapi,
which failed during making 32 bit shared lib
6 years ago
Holger Vogt
96976ee49d
prevent non-English characters (e.g. Umlaute),
which gtkwave does not understand
6 years ago
Holger Vogt
2f23c58585
plug a memory leak (pll-xspice.cir)
6 years ago
dwarning
5e4c7a255e
update .gitignore and make clean
6 years ago
Holger Vogt
eab10ee065
prevent double closing of file (Linux does not NULL fp during fclose)
6 years ago
Holger Vogt
57e647c704
enable "null allowed" for reset input
6 years ago
Holger Vogt
28c0fbf397
Zero fp, this fixes bug no #475
6 years ago
Holger Vogt
c77da1870d
Fixed compiler warnings related to const, unreachable code, and an empty translation unit.
6 years ago
Holger Vogt
5bd45c0451
make path to dstring.c independent from build directory
6 years ago
Holger Vogt
5bc9a320eb
Revert "correct the path to dstring.c"
This reverts commit 28002be150 .
6 years ago
dwarning
129b219ed2
correct the path to dstring.c
6 years ago
Holger Vogt
5e76758e57
update to cmpp by J. Monte
6 years ago
Jim Monte
955dda749d
Jim Monte's update to cmpp
6 years ago
Holger Vogt
375a92d788
Fix of buffer overrun in interpolation at endpoint of interval.
Made cfunc.mod for tables more modular.
Prevented buffer overrun when building file name.
Added error checking for allocation failures in many locations.
Made binary search for interpolation more efficient.
6 years ago
Jim Monte
1867f5b727
Fix of buffer overrun in interpolation at endpoint of interval. Made cfunc.mod for tables more modular. Prevented buffer overrun when building file name. Added error checking for allocation failures in many locations. Made binary search for interpolation more efficient.
6 years ago
Jim Monte
b4757f934b
Added support for DSTRING in code modules with makefile builds
6 years ago
Jim Monte
b967caaabb
File path built more efficiently and now allows an arbitrary length. Prevented strdup() of NULL if path too long. Similarly prevented fopen with a NULL file name. Added function to determine Windows absolute paths properly. Fixed numerous issues that were caused by including Windows system header due to conflicting names. Generally a CMPP_ prefix was added as a "namespace". Also used the standard C bool type instead of defining one.
6 years ago
Jim Monte
7990a82f02
Formatting and comments added
6 years ago
Jim Monte
3a2a05f7b0
Removed unnecessary comparisons when lowercasing a string.
6 years ago
Holger Vogt
53613f4e69
deprecated gets() -> fgets()
6 years ago
Holger Vogt
39ce1f77d2
patch provided by Vito (see
https://sourceforge.net/p/ngspice/discussion/133842/thread/31aa24261e/ )
6 years ago
Holger Vogt
9452121954
Remove memory leaks in cmpp.
Two small ones (a few bytes) are still there, difficult to assess.
6 years ago
Holger Vogt
29b2799c22
plug a memory leak by CALLBACK,
deleting locally malloced memory
6 years ago
Holger Vogt
e89a92f944
prevent referencing a NULL pointer
free the loc pointer and NULL its origin STATIC_VAR (locdata)
(that translates to mif_private->inst_var[0]->element[0].pvalue)
6 years ago
Holger Vogt
2f396187fa
Better indentation of message
7 years ago
Holger Vogt
0575481206
Better info in case of error
Initited by a patch from Bohdan Tkhir
7 years ago
Holger Vogt
88008af088
remove memory leaks
7 years ago
Holger Vogt
7bb8049d2a
fix bug no. 394, reported by Yurii Demchyna
7 years ago
Holger Vogt
198fea0db4
-rm -> rm, re-enable 'make uninstall'
7 years ago
Holger Vogt
f9f28f7679
MS Windows: Use only POSIX compliant snprintf
7 years ago
Holger Vogt
c2db1d5547
Bug 385 enable variable numdgt for printout
7 years ago
dwarning
edb42b526d
Add comment for better understanding.
7 years ago
dwarning
390d0bddd9
Dereferencing of the null pointer 'p' might take place. Remove unused variable.
7 years ago
Holger Vogt
96f3b7b029
bug 380, fix removal of string vector after setting the model parameters
7 years ago
Holger Vogt
34f0e98080
plug a memory leak, delete 'element', if tmalloced before
7 years ago
Holger Vogt
0d9d228c11
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!
7 years ago
Holger Vogt
2a6212f77e
Add a function gc_start to reset the garbage collector
7 years ago
Holger Vogt
4e6de9626e
** 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.
7 years ago
Holger Vogt
fb1970e25a
add gc functions to replace MIFgettok and MIFget_token
7 years ago
Holger Vogt
ccb7fa410b
remove all instances of tfree.
Code is working, but full of memory leaks.
7 years ago