Holger Vogt
6ed10583f2
plug small memory leaks
8 years ago
Holger Vogt
dc34632421
fix memory leaks when evaluating a variable
MC example file MC_ring_ts.sp is now free of memory leaks
8 years ago
Holger Vogt
934656f6e8
fix memory leak: before killing a plot, remove its hash table entry
8 years ago
Holger Vogt
c5b5190199
command 'setplot': add predefined 'previous' and 'next' parameters
to switch to the previous or next plot. A warning results if this
is not possible, then the currnt plot is not changed.
8 years ago
Holger Vogt
19596f0f42
add search in current directory
Patch provided by Uros Platise
https://sourceforge.net/p/ngspice/ngspice/merge-requests/4/
8 years ago
Holger Vogt
7c90004921
add Inp_Path to sourcepath variable
Patch provided by Uros Platise
https://sourceforge.net/p/ngspice/ngspice/merge-requests/4/
8 years ago
Holger Vogt
f354f36121
replace 'magic numbers' by defines, thus setting several char arrays
safeguard these arrays against overflow
set numbers of parameters to 10000
8 years ago
Holger Vogt
8357564fee
fix missing tokens in cp_getvar
8 years ago
Holger Vogt
ef5747905f
fix bug no. 362, reported by Bohdan Tkhir
replace size_of by sizeof
8 years ago
Holger Vogt
e3b2b395b9
fix an ancient bug in retrieving the data with the cursor
from a log y graph: use y-offset instead of x-offset
8 years ago
Holger Vogt
0c94ab948b
treat ( ) , like spaces, that is ignore them during
switch parameter conversion
8 years ago
Holger Vogt
393c924886
improve finding tokens, considering nested parens
8 years ago
Holger Vogt
fac5754b79
add variabale inputdir to store the last input file directory
8 years ago
Holger Vogt
2786fcb86e
New .option seed=[val|random]
8 years ago
Holger Vogt
107a4a808e
New .option seed=[val|random]
8 years ago
Holger Vogt
10c6c5c38b
Convert .param lines containing 'agauss' and others
into .func (xxx1() 'agauss()', replace all xxx1 entries
by function xxx1().
After subcircuit expansion, replace agauss and others
in B-Line by their suitable values.
8 years ago
Holger Vogt
7ca61b3c98
New command 'setseed' with function com_sseed
to set the random number generator
8 years ago
Holger Vogt
8fbcb16a57
add fourth parameter to cp_getvar(), in functions missing so far
8 years ago
Holger Vogt
af70c2e8f0
cp_getvar with CP_STRING: add size of string to function parameters
8 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
Holger Vogt
8930690cd2
plug a small memory leak
8 years ago
Holger Vogt
824ac4fbc9
make functions static or add function prototypes
8 years ago
Holger Vogt
2dd293707b
initialize pn in ft_getpnames() parse.c
initialize dwLen in tesCreateSystemInfo() in com_sysinfo.c
Both were reported by MSVC Code Analysis
Crash of ngspice.dll in Eeschema is thus removed
(hopefully in general)
8 years ago
Holger Vogt
b07ae3123e
use only internal memory functions,
replace strdup by copy
8 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
Holger Vogt
a2b52b588e
a space is required between tokens that have got {}
8 years ago
Holger Vogt
417dbfef72
undo the previous commits dealing with snprintf,
use the C99 compliant function also with MS Visual Studio
8 years ago
Holger Vogt
92dd6e48d0
make up description comment for pspice_compat()
8 years ago
Holger Vogt
3b4640dee4
_snprintf in Windows 7 does not automatically put a '\0'
to the end of the buffer, only if there is space available.
That will change in the future if Snprintf is used.
8 years ago
Holger Vogt
1d9ab3eb5c
PSÜICE compatibility:
R n1 n2 val TC=xx1,xx2 --> R n1 n2 val TC1=xx1 TC2=xx2
8 years ago
Holger Vogt
22b7fa77b5
fix a bug with switches, when no subcircuit is involved
8 years ago
Holger Vogt
e5652cd745
safeguard fclose
8 years ago
Holger Vogt
2f56feea4a
do not lower-case command 'set sourcepath = XXX'
8 years ago
Holger Vogt
2e0b8b3e34
plug a small memory leak
8 years ago
Holger Vogt
a40ba9ec4e
add a comment
8 years ago
Holger Vogt
ae81481229
white spaces
8 years ago
Holger Vogt
7b6cd86a62
re-write vswitch transformation code:
first scan: check for each .model with vswitch
second scan: check for switch instances
(s lines) using the models
8 years ago
Holger Vogt
f9b11cd619
update to function pspice_compat(), concerning the VSWITCH replacement
only one .model replacement even for several s instances
firstly search in subcircuit at same level, then in top level
8 years ago
Holger Vogt
f4f389dabb
internal help: it is only available when --enable-oldapps is given
ngnutmeg is only made when --enable-oldapps is given during ./configure
8 years ago
Holger Vogt
0cb71b21bb
move ngspice_compat_mode(void) to inpcom.c and make it static
8 years ago
Holger Vogt
d991bbc470
ngconfig.sh is no more available
8 years ago
h_vogt
e47ab87385
inpcom.c, multiplier 'm' in subcircuits: exclude all devices not supporting multiplier 'm'
9 years ago
h_vogt
d89eab99d5
add dicoS->linecount to safely delete dynrefptr[i],
linecount may change if circuits are changed or deleted.
10 years ago
h_vogt
1066bf0a7b
Store the numparam dicoS structure for each circuit in a list.
Functions to add, remove, retrive dicoS from the list
and to update dicoS, if the circuit has been changed.
Keeping dicoS is necessary because it may be used by measure.
This patch prevents (huge) memory leaks by overwriting
dicoS if multiple calls to the 'source' command are executed.
10 years ago
h_vogt
4a3f02e979
runcoms.c, add variable 'sim_status' to indicate if a simulation has been aborted
10 years ago
h_vogt
2ece845f59
inpcom.c, responding to bug report 275 by Dominique Michel: commands plot, hardcopy: no lower case letters in tokens following xlabel, ylabel, title
10 years ago
Holger Vogt
7ee0b14431
better zero after deaalocation
8 years ago
Holger Vogt
8f41257d87
enable 'temper' evaluation, if circuit is reloaded
8 years ago
Holger Vogt
cbe4b31d4b
do not delete symbols that have not been created here
8 years ago
h_vogt
ce9f23f7af
outitf.c, restrict vector length to 1, the minimum needed
9 years ago