rlar
146ca72153
numparam/xpressn.c, #2/5, cleanup, drop 'err' and return early
9 years ago
rlar
303d78f616
numparam/xpressn.c, #1/5, cleanup, rewrite upside down
and use known variable values to instantly 'return'
instead of skipping some 'if' bodies
9 years ago
rlar
bc0782aba1
numparam, #4/4, defsubckt(), use struct card * argument
9 years ago
rlar
2a149d7541
numparam, #3/4, nupa_scan(), use struct card * argument
9 years ago
rlar
77da3c6f26
numparam, #2/2, nupa_copy(), use struct card * argument
9 years ago
rlar
19dfaf03f3
numparam, #1/2, nupa_eval(), use struct card * argument
9 years ago
rlar
ee489599cb
struct card, #6/6, drop some redundant casts
9 years ago
rlar
4ec2717079
struct card, #5/6, rewrite from type "card" to "struct card"
9 years ago
rlar
511cdd7188
struct card, #3/6, rename members from struct line to struct card
9 years ago
rlar
8d93511a96
struct card, #1/6, minor cleanup
9 years ago
rlar
121a46f9cb
frontend/com_alias.c, asubst(), bug fix
wl_word can not be incremented,
this is a pointer to malloc'ed space
and will eventually be free'ed
8 years ago
rlar
41c0ee45a2
introduce GENinstanceFree() and GENmodelFree()
To abstract away the business of releasing the memory
of a struct GENmodel or struct GENinstance.
8 years ago
Holger Vogt
560cb6e970
plotting/grid.c, bug fix, avoid string buffer overflow
Prevent a crash of example/FFT_test.cir.
Buffer 'buf' in function drawlingrid() has been too small.
Increase 'buf' size, and add some protection.
The example file examples/plot/test-small-plot.cir
shows the limits of plotting:
difference in two numbers at digit 14 is plotted well.
at digit 15 is plotted with bugs.
at digit 16 is reduced to integer.
consider compiling with
-O1 -D_FORTIFY_SOURCE=2
for gcc, and
/GS
for visual studio.
8 years ago
rlar
f0159cbd0b
numparam/spicenum.c, stripbraces(), bug fix
overwriting SPICE_DSTRING `dstr_p' may invalidate `s'
This bug was injected with the introduction of SPICE_DSTRING in :
> commit 76feebbbfa
> Date: Thu Feb 25 21:43:03 2010 +0000
> various bug fixes
9 years ago
rlar
91c60c28df
whitespace change, avoid gcc warnings due to missleading indentation
9 years ago
h_vogt
b3827f6488
gnuplot.c, correct the setting of limits in log plots
9 years ago
dwarning
2fd3c4d94f
fix the still existing wrong array access in psd smooth routine
9 years ago
h_vogt
ca3a9bb648
com_fft.c, correct scaling and filtering for PSD
9 years ago
dwarning
0ef666ea26
com_psd: Correct the special handling of dc and nyquist component in fftw branch
9 years ago
dwarning
2377d3a64f
fix wrong write and read in not allocated memory
9 years ago
dwarning
b8a9ca9df4
correct the fft scaling for real input and complex output vector
9 years ago
rlar
0db861e4a6
device.c, bug fix commit "device.c, #8/19, use parent wordlist ..."
This commit did rely on the existence of a parent 'wordlist' element,
usually guranteed by a leading "alter" or "altermod" command word.
But 'inp_evaluate_temper()' passes a wordlist without any parent word
when invoking 'com_altermod()'
9 years ago
rlar
043d3b4f6d
device.c, #19/19, whitespace
9 years ago
rlar
aa50718573
device.c, #18/19, polish comments
9 years ago
rlar
b4b32e2b93
device.c, #17/19, drop unused assignment to 'eqword'
9 years ago
rlar
fac04193e5
device.c, #16/19, shrink scope of variable 'p'
9 years ago
rlar
3eda944db5
device.c, #15/19, make use of 'wl_find()'
9 years ago
rlar
20c303eb8b
device.c, #14/19, drop variable 'wl2', can use 'wl' instead
9 years ago
rlar
e8ebfb115e
device.c, #13/19, drop artificial rewind to the beginning of the list
9 years ago
rlar
79cc996a93
device.c, #12/19, shrink scope of variable 'wlen' and 'maxelem'
9 years ago
rlar
c2c4683b4b
device.c, #11/19, shrink scope of variable 'wlin'
9 years ago
rlar
b817ca8cf7
device.c, #10/19, drop unused assignment to 'wl2'
9 years ago
rlar
9085084ccb
device.c, #9/19, drop variable 'rhs'
9 years ago
rlar
1ff0500117
device.c, #8/19, use parent wordlist to restore beginning of the list
9 years ago
rlar
01039f81a2
device.c, #7/19, use a local wordlist *wn
9 years ago
rlar
50dd15093e
device.c, #6/19, this 'wl2' wont be used anywhere
9 years ago
rlar
26f7a0e04e
device.c, #5/19, drop 'eqfound', equivalent to 'wl != NULL'
9 years ago
rlar
3f09ab6634
device.c, #4/19, loop wont be executed, and 'step' wont be used any more
9 years ago
rlar
3baaa57d18
device.c, #3/19, move some code up
9 years ago
rlar
670d87a589
device.c, #2/19, 'wl' will not be used any more
9 years ago
rlar
1eca384a94
device.c, #1/19, can 'break' here, because 'wl' is NULL
9 years ago
h_vogt
761f3915f5
device.c, 'alter', don't insert empty "" token
when entering ' =' or '= ' in interactive mode
9 years ago
h_vogt
d06f39f67d
device.c, bug #342 , prevent crash when using 'alter'
#342 SegFault alter command
https://sourceforge.net/p/ngspice/bugs/342/
9 years ago
rlar
2b17f3292d
inpcom.c, inp_add_control_section(), upside down for readability
9 years ago
rlar
76bbaf4ac3
inpcom.c, inp_sort_params(), use insert_deck()
9 years ago
rlar
a26ec804cb
inpcom.c, inp_reorder_params_subckt(), introduce insert_deck()
9 years ago
rlar
c285602105
inpcom.c, inp_reorder_params_subckt(), reorder
9 years ago
rlar
bc62407226
inpcom.c, drop unused artefact xx_new_line()
9 years ago
rlar
1afa04b2d1
inpcom.c, insert_new_line(), inline xx_new_line()
9 years ago
rlar
5c7c278c3d
inpcom.c, inp_fix_subckt(), #4/4, drop redundant initialisations
9 years ago