rlar
aa5afccf15
INPparseNumMod(), #12/14, use 'info' instead of 'lastType'
to signify having read a cardName
10 years ago
rlar
c4d39d66de
INPparseNumMod(), #11/14, remove unused 'cardType'
10 years ago
rlar
521fd16c11
INPparseNumMod(), #10/14, don't fall through into the 'default:'
instead, duplicate the code of the 'default:' and break
10 years ago
rlar
6b305744d9
INPparseNumMod(), #9/14, invert the 'if' statement
10 years ago
rlar
1483e2df9a
INPparseNumMod(), #8/14, move the 'default:' body out of the 'switch'
this body is inevitable, as there is no other break out of the 'switch'
10 years ago
rlar
1a9bcf6b33
INPparseNumMod(), #7/14, use 'lastType' instead of the identical 'cardType'
there is no further access to cardType
thus can drop the reduntandant assignments to cardType
10 years ago
rlar
110f16b361
INPparseNumMod(), #6/14, again, assign 'lastType' sooner
in the block in-between those two positions
there is no access to lastType
there is no 'continue'
there is no 'break' out of the enclosing switch
thus the assignment is inevitable
there is one position where cardType is modified,
need to assign to lastType there too to keep it in sync
10 years ago
rlar
18d6679c02
INPparseNumMod(), #5/14, use 'lastType' instead of the identical 'cardType'
10 years ago
rlar
11f3907139
INPparseNumMod(), #4/14, assign 'lastType' sooner
in the block in-between those two positions
there is no access to lastType or cardType
there is no 'continue'
there is no 'break' out of the enclosing 'switch'
thus the assignment is inevitable
10 years ago
rlar
7862a4f59f
INPparseNumMod(), #3/14, `continue' the loop instead of
'break'ing out of the `switch'
this is equivalent because the 'switch' is the last statement in the loop body
10 years ago
rlar
c1c7b5305e
INPparseNumMod(), #2/14, transform the `while' loop into a `for' loop
there was no 'continue' for this loop
there was no 'break' out of this loop
there was no assignment to txtCard, thus txtCard can't be NULL
10 years ago
rlar
e824cbd193
INPparseNumMod(), #1/14, return sooner
setting txtCard to 0 and cardType to E_MISSING (which is < 0)
caused the following `if (cardType >= 0)' to be skipped
and then broke out of the enclosing 'while' loop
in this case, there where no other statements executed
10 years ago
rlar
5522bfd814
tests/regression/sens, add some tests for "sensitivity" analysis
10 years ago
h_vogt
77380219d8
breakp2.c, prevent crash in `save' command if no circuit is loaded
10 years ago
rlar
34f8841805
cpl/cplsetup.c, cleanup
10 years ago
h_vogt
7ea4e99842
numparam/general.h, remove redundant memory management functions
10 years ago
rlar
a6f530b95c
USE_OMP, cleanup initialisation of local variable `model'
10 years ago
rlar
5b2fa579f1
USE_OMP, rename variables, `good' --> `error'
to express the actual meaning of these variables
10 years ago
rlar
fddbb7d9eb
USE_OMP, fix type of local variables `idx' and `InstCount'
10 years ago
rlar
994bec7859
declare free() / realloc() arguments `const void *'
to avoid extra casting when freeing `const' strings
10 years ago
h_vogt
6a7895fbc1
frontend/options.c, fix memory leak (pl_name, pl_title, pl_date)
10 years ago
rlar
1c565a1a89
frontend/rawfile.c, raw_write(), fix memory ownership for pl_title and pl_date
avoid assigning cloned strings
to pl_date/pl_title fields of multiple plots
avoid excess allocation
10 years ago
h_vogt
236b99f2b1
cktdest.c, xspice, set g_mif_info.ckt = NULL
when destroying/remcirc'ing a circuit
to avoid a crash in EVTfindvec()
which might try to access fields in the destroyed CKTcircuit
( excercise: tran, remcirc, load rawfile, plot something_nonexistant )
10 years ago
h_vogt
0252f7b9cb
examples/various/ro_17_4.cir, a ring oscillator with BSIM4 using 'xmu'
10 years ago
h_vogt
f66e76fb5f
implement option 'xmu' to control trapezoidal integration method
default is 0.5
option xmu=0.49
can be used to add some damping to reduce trap ringing
set xmu=0.49
or
.option xmu=0.49
works as well
10 years ago
Francesco Lannutti
ef0dcfe5f2
avoid bison dependency `version >= 2.7'
10 years ago
Francesco Lannutti
99a20162d5
bsimsoi/b4soiset.c, bug fix, don't allocate `B4SOIEbPtr' twice
10 years ago
h_vogt
b14e7cb040
sharedspice.c, remove meory leaks
10 years ago
rlar
4c60783e4d
xspice, implement EVTdest() to fix xspice memory leaks
10 years ago
rlar
af93d79675
ngspice/mifparse.h, ngspice/mifcmdat.t, reduce scope of these include files
10 years ago
rlar
97cc400efb
ngspice/evt.h, ngspice/enh.t, reduce scope of these include files
10 years ago
h_vogt
efcd8584f1
error.c, ft_sperror(), memory leak, free memory returned by `if_errstring()'
10 years ago
rlar
5611ca4f10
harmonise all incarnations of `if_errstring()' to return malloced memory
10 years ago
h_vogt
50bd157349
parser/inppas3.c, fix memory leak
10 years ago
h_vogt
ffee2a6b5f
parser/inppas3.c, fix memory ownership
`INPgetTok()' creates `nodename' which is then committed to `INPtermInsert()'
10 years ago
rlar
ddf01dbe3f
parser/inppas3.c, shrink scope of local variable `name'
10 years ago
rlar
cff23b8d38
fix commit "ngspice.h, cm.h, cleanup NAN defines"
10 years ago
rlar
d58fd306f3
input.c, inchar(), cleanup
10 years ago
rlar
1aab43dd1a
xspice/cmpp/*.l, flex file cleanup and use %option noinput, nounput
10 years ago
h_vogt
9154ab103a
inp2dot.c, dot_tran(), fix a memory leak
10 years ago
h_vogt
0443a2690c
glob.c, brac1(), fix a memory leak
10 years ago
h_vogt
841f2846fe
plotit.c, properly free a reversed wordlist
10 years ago
rlar
5299f8cdb6
ngspice.h, cm.h, cleanup NAN defines
10 years ago
h_vogt
8480898399
frontend/variable.c, remove memory leak
10 years ago
rlar
ac726f0cf4
struct variable, #18/18, clean
10 years ago
rlar
a6cd5eea45
struct variable, #17/18, clean
10 years ago
rlar
af81e6810e
struct variable, #16/18, drop intermediate variable
10 years ago
rlar
212121d373
struct variable, #15/18, rewrite in terms of `var_alloc_xxx()' (do-3)
10 years ago
rlar
57f56f53a6
struct variable, #14/18, introduce `var_alloc_xxx()'
10 years ago
rlar
bf5acda362
struct variable, #13/18, reorder var_alloc() invocation
10 years ago