Holger Vogt
7a1218cc0e
fix ouput redirection for 'print' command
8 years ago
Holger Vogt
54d9ec93cb
bug 375, select correct input line,
reported by Bohdan Tkhir
8 years ago
Holger Vogt
ebe4fd5332
control.c, bug 374, prevent crash if cend[stackp] is NULL
reported by PyroPeter
8 years ago
Holger Vogt
2a947a933e
bug 253: Do not delete the scale vector of the current plot
8 years ago
Holger Vogt
157aaee6f1
Bug #332 , reported by M. Hendriks
Add a warning if statements .control ... .endc are misplaced or missing
8 years ago
Holger Vogt
530cac53c5
bug 337: keep '-' as sign of number following tc1, tc2
8 years ago
Holger Vogt
8d89202161
keep sign together with number when preparing B source pwl (and others)
Seems to be optional, B Source handles numbers with offset sign
8 years ago
Holger Vogt
113060473e
bug 337: replace atof by INPevaluate to allow ngspice numbers
in tc1 or tc2 tokens.
8 years ago
dwarning
ddd3a11bff
variables are assigned values twice successively
8 years ago
Holger Vogt
65ee87e0a2
grid.c, windisp.c, vertical text for postscript and WINGUI
Arial as standard font for WINGUI
8 years ago
Holger Vogt
56701e3d10
add rotation angle to text output, currently used only by postscript,
ignored by all others
8 years ago
Holger Vogt
9e01d0b9f9
postsc.c, enable postscript output for extended ascii.
Currently only Western European latin-1 (ISO/IEC 8859-1) encoding
is supported.
8 years ago
Holger Vogt
41fbc0bb1d
inpcom.c, command gnuplot: no lower case in xlabel, ylabel, title
8 years ago
h_vogt
b0da1f2a0f
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
9 years ago
Holger Vogt
9ab153ddc2
Exclude from model search all lines beginning
with a character contained in this list: *vibefghkt
8 years ago
Holger Vogt
277842f948
update to model search function
8 years ago
Holger Vogt
78ab9c477b
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
{*^@\\\' .
8 years ago
dwarning
de9755b1ad
backup to original state - but changing name of local struct t to tc
8 years ago
dwarning
12498623c8
no use of string 't' - but struct 't' is still used
8 years ago
dwarning
cc4e4d9bad
verify pointer before utilization
8 years ago
dwarning
42d29ef49f
remove the entire file buffer modification which was never come in effect
Take over this task to the OS which will handle this properly.
8 years ago
dwarning
f0f19f87a3
In case the file open failed we have no need to set the IO buffer size.
And this should also not be done with a NULL pointer into setvbuf.
8 years ago
dwarning
5590406acf
The 'j' variable is assigned values twice successively.
Obviously the first assigment is waste because 'j' has the meaning of row count.
8 years ago
dwarning
a36366be1a
A call of the 'memset' function will lead to underflow of the buffer 'table'.
Table structure multiplied by N_GLOBAL_NODES will initialize the entire table with 0.
8 years ago
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