dwarning
a2c5cb4301
It is odd that pointer to 'char' type is compared with the '\0' value.
Correct compare with *eqword follows in a correct error message.
8 years ago
Holger Vogt
94fa272c9d
A hack to repair bug reported by Clyde R. Shappee
8 years ago
dwarning
6b99bc8f7a
prevent pass null pointer into setvbuf
8 years ago
dwarning
93f35afe69
s variable was assigned values twice successively
8 years ago
dwarning
360efabf36
no null pointer to fprintf
8 years ago
Holger Vogt
75d1e45737
consider all PSPICE containing compatibility settings
for the evaluation of the pwr function
or allowing '-' in a subcircuit name
8 years ago
dwarning
5c31aec164
prevent core dump to get the baseaddress
8 years ago
Holger Vogt
7787268118
Enable psa, ltpsa compatibility mode
8 years ago
Holger Vogt
b0d79630a4
New variable no_auto_gnd
'set no_auto_gnd' in spinit or .spiceinit will preclude
ngspice to automatically replace 'gnd' by global '0'
8 years ago
Holger Vogt
b3db3c7fd9
Don't modify 'working' address, insert new item (functions etc)
only after ther first line.
8 years ago
Holger Vogt
3930e27501
New compatibility modes (set ngbehavior=??): PS LT LTPS PSA LTA LTPSA
PS: PSPICE comp. in .include files., LT: LTSPICE comp. in .include files.
LTPS: both, PSA: PSPICE comp. in complete input deck,
LTA and LTPSA: comp. in complete input deck for LT or both.
Add functions uplim, dnlim, uplim_tanh, dnlim_tanh.
Replace
D1 A K SDMOD
.MODEL SDMOD D (Roff=1000 Ron=0.7 Rrev=0.2 Vfwd=1 Vrev=10 Revepsilon=0.2 Epsilon=0.2 Ilimit=7 Revilimit=7)
by
ad1 a k asmod
.model asmod sidiode(Roff=1000 Ron=0.7 Rrev=0.2 Vfwd=1 Vrev=10 Revepsilon=0.2 Epsilon=0.2 Ilimit=7 Revilimit=7)
8 years ago
Holger Vogt
0675da008b
make the paramter param in @dev[param] lower case for
commands alter, altermod
8 years ago
Holger Vogt
d636f7899b
cp_enqvar() returns freshly malloced variables as well
as variables owned by somebody else, e.g. from ft_curckt->ci_vars.
The new function parameter tbfreed notifies the caller if the
variable is malloced here and may be freed safely.
8 years ago
Holger Vogt
6df684e22a
Evaluate .if ... .elsif ... .else ... .endif recursivly
8 years ago
Holger Vogt
f33c3f0751
remove memory leak, when ft_getnames ... free_pnode couple
parses a vector like v(1,2)
8 years ago
Holger Vogt
ae89381bb6
Prevent a segfault if multiple circuits are freed upon 'quit'
by checking if a 'recent_deck' that is to be freed also exists
with same address in ci_mcdeck of another circuit. If yes, set
this to NULL before freeing.
8 years ago
Holger Vogt
2a3c88add6
Commit ad0f59657 ("fix a memory leak", 2018-08-13) made
the special device parameter notation @m1[vt0] unusable.
This fix frees only the tokens that are already overridden
in function INPinsertNofree(). The reason for using this
function instead of INPinsert() is not obvious.
8 years ago
Holger Vogt
fc3ffb2e3c
free global string errMsg
8 years ago
Holger Vogt
0406546f7e
remove a small memoryleak in (nested) goto loops
8 years ago
Holger Vogt
70439e38fa
safety check if no circuit is loaded, prevent crash
8 years ago
Holger Vogt
f6cbaea604
data[i] is no longer written beyond its allocated length
8 years ago
Holger Vogt
7d12b4897c
clean-up function com_quit
8 years ago
Holger Vogt
fa60f7d21d
avoid memory leak in X11
8 years ago
Holger Vogt
06df6ca8e7
avoid pre-matuire exit (byemessage not called)
8 years ago
Holger Vogt
e7bcc09bb0
remove memory leak: delete duplicate .param lines
8 years ago
Holger Vogt
b6b66c71bd
plug a small memory leak (switch-oszillators.cir)
8 years ago
Holger Vogt
9332801382
free the original wlist, made by getcommand(),
not a derived wlist that is just part of the original
8 years ago
Holger Vogt
c5cea6d6c1
remove ft_curckt->ci_meas upon removing the current circuit ft_curckt
8 years ago
Holger Vogt
5f1f6ccb29
add a small comment
8 years ago
Holger Vogt
0fbe920382
plug a small memory leak in switch-oscillators.cir
8 years ago
Holger Vogt
2b50ca7271
command 'print': preserve case for filenames after redirection '>'
8 years ago
dwarning
5380c3f4da
prevent a small memory leak
8 years ago
Holger Vogt
b4c6a7d324
add function trnoise_state_free and use it
instead of its individual components
8 years ago
dwarning
aa95da431a
adaptive format specifier for size_t printf
8 years ago
dwarning
aed5ba01c0
prevent a small memory leak
8 years ago
dwarning
7d78cba9ef
fix some prototype declarations
8 years ago
dwarning
561fdd805c
rm unused variables
8 years ago
dwarning
598b72be37
prevent a huge memory leak by calling fftw3 in a loop
8 years ago
Holger Vogt
1f7d84b270
trivial patch to avoid memory leaks during transient noise generation.
This has to be replaced by a rewrite of the noise generating code.
8 years ago
Holger Vogt
8c9b18ef7e
fix a small memory leak
8 years ago
Holger Vogt
7e4b68c708
update to the rusage command:
print total analysis time, total elapsed time, and
memory information (OS dependant) if rusage is given
without parameters
8 years ago
Holger Vogt
f07c73b6a5
Command 'cd' now switches to the home directory also for MS Windows.
A new command 'getcwd' just prints the current working directory
without changing it.
8 years ago
Holger Vogt
9cc690c55c
try to reload only when mc_deck is available
comment modified
8 years ago
Holger Vogt
2b071fec5a
add loading from recent deck (mc_deck) if circuit
file has been removed by remcirc.
8 years ago
Holger Vogt
2dfdf984d6
re-number the lines during copying,
required by nupa_copy()
8 years ago
Holger Vogt
f9eb75f55d
skip comment lines
8 years ago
Holger Vogt
ac0a70bb84
print deck after re-loading into debug-out-mc.txt,
if 'set ngdebug' is set in .spiceinit
8 years ago
Holger Vogt
cebb83eec1
give preference to mc_reload when reloading the circuit
8 years ago
Holger Vogt
ad0f596570
fix a memory leak
8 years ago
Holger Vogt
795f9ed6ad
remove unused rparen
8 years ago