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
rlar
c3e2c920ef
inpcom.c, inp_fix_subckt(), #3/4, drop 'last_param_card'
9 years ago
rlar
2aafc50608
inpcom.c, inp_fix_subckt(), #2/4, use insert_new_line()
9 years ago
rlar
dda35ef2a5
inpcom.c, inp_fix_subckt(), #1/4, rewrite 'append'
9 years ago
rlar
e75f48d91f
inpcom.c, insert_new_line(), allow NULL head
9 years ago
rlar
5ff5839296
inpcom.c, inp_stitch_continuation_lines(), rewrite for the following commit
9 years ago
rlar
420c023f56
inpcom.c, introduce insert_new_line()
use it to replace this pattern
foo = bar->li_next = xx_new_line(bar->li_next, ...);
with
foo = insert_newline(bar, ...);
9 years ago
rlar
38183b6167
inpcom.c, expand_section_ref(), #7/7, cleanup
9 years ago
rlar
dd155dd83e
inpcom.c, expand_section_ref(), #6/7, drop 'rest'
9 years ago
rlar
0f8fb4cf51
inpcom.c, expand_section_ref(), #5/7, drop 'newl'
9 years ago
rlar
a77db80a85
inpcom.c, expand_section_ref(), #4/7, drop 'cend', use 'c' instead
9 years ago
rlar
0c94a651ee
inpcom.c, expand_section_ref(), #3/7, simplify
9 years ago