rlar
a8ffd52c42
inpgmod.c, #12/15, cleanup braces
9 years ago
rlar
627ed98464
inpgmod.c, #11/15, reduce scope and rewrite
9 years ago
rlar
66976d492e
inpgmod.c, #10/15, reorder 'extern's
9 years ago
rlar
19e36dd4cb
inpgmod.c, #9/15, drop trailing whitespace in messages
9 years ago
rlar
370420d00e
inpgmod.c, #8/15, commute boolean expressions
9 years ago
rlar
4842cd39a7
inpgmod.c, #7/15, reduce scope and rewrite
9 years ago
rlar
3212b18115
inpgmod.c, #6/15, simplify return of boolean expressions
9 years ago
rlar
6ee483ed1d
inpgmod.c, #5/15, simplify tprintf usage
9 years ago
rlar
b329fd56fc
inpgmod.c, #4/15, unify 'return' statements
9 years ago
rlar
cdc8fbd192
inpgmod.c, #3/15, line wraps
9 years ago
rlar
b0537a7e96
inpgmod.c, #2/15, polish comments
9 years ago
rlar
6cdd306fea
inpgmod.c, #1/15, cleanup comparisons
9 years ago
rlar
5905ed26fa
inpgmod.c, INPgetMod(), bug fix, missing 'model' assignment
'model' is a return value, and must always be assigned to.
NULL denotes the error case.
9 years ago
rlar
51fa006c63
INPparseNumMod(), #14/14, whitespace cleanup
10 years ago
rlar
0b1c79172c
INPparseNumMod(), #13/14, invert 'if' statement
10 years ago
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
7bc6374138
cleanup, use '\0' instead of 0 in char context
11 years ago
dwarning
9ed2da9ad9
new hisimhv model version 2.2.0 in a separate directory
11 years ago
rlar
f5d05af51d
inpgmod.c, INPgetModBin(), use model_name_match()
12 years ago
dwarning
010174ec2a
devices/bsim4v7, add to build infrastructure
12 years ago
dwarning
cba69c4850
devices/bsim4v4, remove ancient bsim4 model version 4.4
12 years ago
rlar
7aa454e5b4
rewrite, using tprintf()
12 years ago
rlar
6050e2e0ea
cleanup some extra parentheses
13 years ago
rlar
7381081226
ciderlib, proper types for newCard(), setCardParm(), askCardQuest()
13 years ago
rlar
df5c785a84
drop `INPmodUsed' which is redundant to `INPmodfast'
13 years ago
h_vogt
1b4c17a464
rename spicelib/parser/inp.h to inpxx.h
since we have another "inp.h" in src/frontend
13 years ago
dwarning
2516a118a3
indentation
14 years ago
h_vogt
b85f6bbc7d
controlled_exit() instead of exit()
14 years ago
dwarning
3c3ba4c731
inpgmod.c: correct the range check to prevent overlap
14 years ago
dwarning
fd85e8fd42
indentation
14 years ago
Michael Woodworth
3375e1b976
fix a memory leak in parse_line()
This has a HUGE affect on memory usage
14 years ago
dwarning
1938041e10
1. Correct the list of binable models. 2. Fix a problem with wrong MOS level entries.
14 years ago
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
15 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
15 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
3d8fb96647
cleanup, (modtmp) --> modtmp
15 years ago
rlar
c1683a5571
cleanup, some more (*p).foo --> p->foo
15 years ago
rlar
55638c8023
various cleanups
15 years ago
rlar
23056573d8
code cleanup, drop NULL pointer casts
15 years ago