h_vogt
0853c374a1
inpcom.c: require parentheses in ternary functions if numparam
...
parser is involved (no B sources)
2012-10-17 22:28:49 +02:00
h_vogt
ae25f54709
inpcom.c: plug small memory leak
2012-10-15 18:35:12 +02:00
rlar
ebc50b8639
inpcom.c, rewrite
2012-10-13 16:48:15 +02:00
rlar
a4e167a657
inpcom.c, use strchr() in favour of strstr()
2012-10-13 12:27:20 +02:00
rlar
3b2b130177
inpcom.c, inp_fix_ternary_operator_str(), use copy_substring()
2012-10-13 12:00:29 +02:00
rlar
680e45f7f3
inpcom.c, inp_fix_ternary_operator_str(), rewrite
2012-10-13 11:47:22 +02:00
rlar
9352a4b72d
inpcom.c, get_instance_subckt(), more carefull when there is trailing whitespace
2012-10-13 11:31:37 +02:00
rlar
f61f323be0
inpcom.c, get_instance_subckt(), rewrite
2012-10-13 11:31:37 +02:00
rlar
7f0065e7fb
inpcom.c, make use of copy_substring()
2012-10-13 11:03:52 +02:00
rlar
69bf624097
inpcom.c, rewrite
2012-10-13 11:02:34 +02:00
rlar
3f4e2eed49
inpcom.c, bug fix in inp_get_subckt_name()
2012-10-13 10:45:09 +02:00
rlar
021a5dd871
inpcom.c, rewrite
2012-10-12 19:23:46 +02:00
rlar
e0b796f3c5
inpcom.c, rewrite
2012-10-12 18:10:52 +02:00
rlar
3085c471ac
inpcom.c, cleanup
2012-10-12 17:58:05 +02:00
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.
2012-10-11 19:33:32 +02:00
rlar
caf50ba4d8
inpcom.c, cleanup
2012-10-10 20:48:42 +02:00
rlar
2b72fbbc5e
skip_ws(), #2/2, drop macros, obj-invariant
2012-10-08 17:48:27 +02:00
rlar
9f3f794ced
skip_ws(), #1/2, use functions instead of macros
2012-10-08 17:28:52 +02:00
rlar
701942cebf
skip-ws, #6/6, unify macro versions, obj-invariant
...
checked for object file invariance
2012-10-07 21:53:42 +02:00
rlar
532ff76dac
skip-ws, #5/6, unify macro versions, obj not invariant
2012-10-07 21:53:29 +02:00
rlar
6a5f234519
skip-ws, #4/6, use macros, obj-invariant
...
checked for object file invariance
2012-10-07 21:52:54 +02:00
rlar
4bf52410fb
skip-ws, #3/6, introduce macros, obj-invariant
...
checked for object file invariance
2012-10-07 21:52:35 +02:00
rlar
e3b5ff94c5
skip-ws, #2/6, prepare for rewrite, obj-invariant
...
checked for object file invariance
2012-10-07 21:52:22 +02:00
rlar
841db86e00
skip-ws, #1/6, prepare for rewrite, obj-invariant
...
checked for object file invariance
2012-10-07 21:52:09 +02:00
h_vogt
996dedaa71
inpcom.c: remove cccs from F, ccvs from H source
2012-10-07 17:12:42 +02:00
h_vogt
e69f50270d
inpcom.c: correct replacement of vccs, vcvs in E, G-sources
...
search for 'par(' instead of 'par'
2012-10-07 15:19:28 +02:00
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
2012-09-22 19:33:55 +02:00
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
2012-09-20 20:30:53 +02:00
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.
2012-09-13 20:07:33 +02:00
h_vogt
acfc7a2a27
remove memory leaks
2012-08-04 19:09:13 +02:00
h_vogt
05437b1d48
inpcom.c: safely uncomment unused subcircuits (top level only)
...
if they contain further nested subcircuits
2012-08-03 22:42:33 +02:00
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()
2012-07-21 22:23:49 +02:00
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
2012-07-21 21:18:24 +02:00
rlar
9655b9885a
cleanup, use wl_cons(), wl_append_word() and wl_chop_rest()
2012-07-14 10:23:51 +02:00
h_vogt
0207dc7239
no exchange of ' ' by { } inside .control section
2012-06-26 23:28:31 +02:00
rlar
d8105873db
remove error.h, use fteext.h for controlled_exit()
2012-06-12 21:26:29 +02:00
rlar
a9eb96e164
avoid `ambiguous else' Warning
2012-06-12 21:26:29 +02:00
h_vogt
a51953d93e
allow `time', `temper', and `hertz' in expressions of behavioral R,L,C devices
2012-06-12 21:26:27 +02:00
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).
2012-03-31 23:42:37 +02:00
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
2012-03-30 22:56:15 +02:00
h_vogt
0a2e031cb1
bug fix, inp_fix_subckt(): problem when parsing a .subckt line
...
this worked
.subckt psub a b p2 = {p1*2-1} p1 = 1
but this failed
.subckt psub a b p2 = { p1 * 2 - 1 } p1 = 1
thanks to Ivan Riis Nielsen for the report in Message
[Ngspice-devel] parsing problem (ngspice-24 tarball)
2012-03-24 18:29:36 +01:00
h_vogt
787a6a3581
inp_fix_subckt(): allow spaces in an expression which acts as a parameter
2012-03-17 16:56:30 +01:00
dwarning
70e9907415
Add reciprocal temperature behaviour for B sources
2012-02-19 12:55:54 +00:00
dwarning
d9561123f9
Add temperature coefficients for B sources
2012-02-11 19:45:25 +00:00
h_vogt
1a7fa85e3c
reading incs, libs etc.
2012-02-11 13:14:34 +00:00
rlar
f285dd0aa8
use strchr() instead of index()
2012-02-06 17:46:33 +00:00
rlar
33764b1f91
cleanup, muffle compiler warning
2012-01-07 14:48:55 +00:00
rlar
29442c91c8
cleanup, muffle compiler warning
2012-01-02 19:43:02 +00:00
h_vogt
d2f9faf66b
.lib handling
2012-01-01 13:58:03 +00:00
h_vogt
4d35b4ce7b
partially undo commit 2011-12-27 Holger Vogt
2011-12-30 19:53:26 +00:00