rlar
dbfc90df0a
inpcom.c, bug fix, incorrect start value for `prev'
this bug was introduced in the following commit,
which `reused' variable prev,
failing to preserve its initialization value NULL
Author: pnenzi <pnenzi>
Date: Mon Oct 8 21:10:34 2007 +0000
Improvements in frontend by Phil Barker
13 years ago
h_vogt
20716d3496
inpcom.c: exit if 'poly' option is required, but XSPICE not available,
remove memory leak
13 years ago
rlar
83e3100917
remove unused variables
14 years ago
h_vogt
6a6c49516a
inpcom.c: remove memory leak
14 years ago
h_vogt
9d52468471
inpcom.c: plug memory leaks
14 years ago
h_vogt
d0f58dc5a6
inpcom.c: prevent invalid memory read/write
14 years ago
h_vogt
85244d0222
inpcom.c: remove bug in inp_add_series_resistor(),
prevent crash in inp_remove_ws() upon erroneous input
14 years ago
h_vogt
a57361333a
inpcom.c: add series resistor to each inductor with option rseries=1m
14 years ago
rlar
ba131a5077
remove adms3 #1/2, code
due to license issues, and with the aim to approach the next
ngspice release 25
we have to move this over to a development branch
14 years ago
rlar
a394d79c56
use utf-8 encoding
14 years ago
h_vogt
0853c374a1
inpcom.c: require parentheses in ternary functions if numparam
parser is involved (no B sources)
14 years ago
h_vogt
ae25f54709
inpcom.c: plug small memory leak
14 years ago
rlar
ebc50b8639
inpcom.c, rewrite
14 years ago
rlar
a4e167a657
inpcom.c, use strchr() in favour of strstr()
14 years ago
rlar
3b2b130177
inpcom.c, inp_fix_ternary_operator_str(), use copy_substring()
14 years ago
rlar
680e45f7f3
inpcom.c, inp_fix_ternary_operator_str(), rewrite
14 years ago
rlar
9352a4b72d
inpcom.c, get_instance_subckt(), more carefull when there is trailing whitespace
14 years ago
rlar
f61f323be0
inpcom.c, get_instance_subckt(), rewrite
14 years ago
rlar
7f0065e7fb
inpcom.c, make use of copy_substring()
14 years ago
rlar
69bf624097
inpcom.c, rewrite
14 years ago
rlar
3f4e2eed49
inpcom.c, bug fix in inp_get_subckt_name()
14 years ago
rlar
021a5dd871
inpcom.c, rewrite
14 years ago
rlar
e0b796f3c5
inpcom.c, rewrite
14 years ago
rlar
3085c471ac
inpcom.c, cleanup
14 years ago
rlar
dbf288bae7
inpcom.c, fix a bug
which was introduced in commit
skip-ws, #5/6, unify macro versions, obj not invariant
where the SKIP.*back.* macros have been unified
FIXME, the check for `\0' in the backwards direction if of course nonsense.
These backward functions either shall not check it at all (being optimistic),
or they shell check against a start of string pointer.
14 years ago
rlar
caf50ba4d8
inpcom.c, cleanup
14 years ago
rlar
2b72fbbc5e
skip_ws(), #2/2, drop macros, obj-invariant
14 years ago
rlar
9f3f794ced
skip_ws(), #1/2, use functions instead of macros
14 years ago
rlar
701942cebf
skip-ws, #6/6, unify macro versions, obj-invariant
checked for object file invariance
14 years ago
rlar
532ff76dac
skip-ws, #5/6, unify macro versions, obj not invariant
14 years ago
rlar
6a5f234519
skip-ws, #4/6, use macros, obj-invariant
checked for object file invariance
14 years ago
rlar
4bf52410fb
skip-ws, #3/6, introduce macros, obj-invariant
checked for object file invariance
14 years ago
rlar
e3b5ff94c5
skip-ws, #2/6, prepare for rewrite, obj-invariant
checked for object file invariance
14 years ago
rlar
841db86e00
skip-ws, #1/6, prepare for rewrite, obj-invariant
checked for object file invariance
14 years ago
h_vogt
996dedaa71
inpcom.c: remove cccs from F, ccvs from H source
14 years ago
h_vogt
e69f50270d
inpcom.c: correct replacement of vccs, vcvs in E, G-sources
search for 'par(' instead of 'par'
14 years ago
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
14 years ago
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
14 years ago
rlar
adc9ee09ce
api change for ngdirname() to fix a memory leak
ngdirname did `own' the returned string.
now the invoker is responsible for the returned string.
note, this is contrary to the POSIX dirname() implementation,
which *might* return pointers to statical allocated memory.
14 years ago
h_vogt
acfc7a2a27
remove memory leaks
14 years ago
h_vogt
05437b1d48
inpcom.c: safely uncomment unused subcircuits (top level only)
if they contain further nested subcircuits
14 years ago
h_vogt
4d0d0fafb9
repair broken ternary function in B-Source
failed if parameters were included in function.
fixed by finding nested parens in gettok_char()
14 years ago
h_vogt
c3141d94e0
table: prevent crashes upon wrong inputs, allow time, temper, hertz as part of device or node name (e.g. Rtime), remove some memory leaks
14 years ago
rlar
9655b9885a
cleanup, use wl_cons(), wl_append_word() and wl_chop_rest()
14 years ago
h_vogt
0207dc7239
no exchange of ' ' by { } inside .control section
14 years ago
rlar
d8105873db
remove error.h, use fteext.h for controlled_exit()
14 years ago
rlar
a9eb96e164
avoid `ambiguous else' Warning
14 years ago
h_vogt
a51953d93e
allow `time', `temper', and `hertz' in expressions of behavioral R,L,C devices
14 years ago
h_vogt
8b780fa42b
bug_fix: R,L,C instantiations, tc1, tc2, numbers followed by `:'
Ternary function was not recognized in R, C, or L lines
if no voltage or current node was part of the expression,
because then B-Source is not used.
In these cases now inp_fix_ternary_operator_str() is called explicitly.
tc1, tc2 were sometimes recognized falsely,
if part of a token e.g. tc1end.
R, C, and L models are never commented out,
because their names may be token no. 4 or 5 in an R, C, or L line,
and will not be recognized if 5.
INPevaluate() will now correctly evaluate a number if followed by ':'
(number may be part of the ternary function).
14 years ago
h_vogt
232270cbc4
bug fix, inp_bsource_compat(): `tc1=' `tc2=' `reciproctc=' `}'
don't substitute `tc1=' `tc2=' `reciproctc='
don't fail when processing tokens followed by `}' chars
14 years ago