rlar
cff6188fe3
lexical #12/19, use `append'
some `assumption' are no longer valid
14 years ago
rlar
5ad8382cf1
lexical #11/19, aproach `append' here
14 years ago
rlar
d61f3c10a0
lexical #10/19, split off `append' from `newword'
14 years ago
rlar
af0a0c2c03
lexical #9/19, aproach the `append'
cw has never been NULL here,
because we used to survive an update of cw->wl_next here
wlist hasn't been NULL either,
because there is no place where wlist becomes NULL without
setting cw to NULL as well. yet cw isn't NULL (see above)
aproach the `append'
14 years ago
rlar
74cc38f67a
lexical #8/19, express where `wlist' and `cw' start being != NULL
14 years ago
rlar
3cbc4b0773
lexical #7/19, express verbosely where `wlist' and `cw' are NULL
14 years ago
rlar
ecb2eec279
lexical #6/19, express cp_ccom() property
14 years ago
rlar
3b575d5e3d
lexical #5/19, collapse into `newword'
14 years ago
rlar
348dc2d7d1
lexical #4/19, the `else' can take that job (unconditionally)
14 years ago
rlar
80191f3d44
lexical #3/19, attach and instantly remove a NULL wl_word here
this modification is faithful iff cw != NULL and cw->wl_next == NULL
cw != NULL because we have just survived an update of cw->wl_word
cw->wl_next == NULL is witnessed by:
1) cw either NULL or pointing to a wl_cons(,NULL)
2) cw not being modified, and no wl_next being modified
3) check of all function invocations with wlist/cw argument
not to modify any wl_next slot
which are:
1) cp_ccom(wlist, ...)
2) wl_free() always followed by goto nloop, which does a cw = wl_cons(,NULL)
and cp_ccom() doesn't modify any wl_next slot
the first part of the patch is intentionally similar to newword
`i' and `buf' can be modified here, because we will inevitably `goto done'
attach and instantly remove a NULL wl_word here
14 years ago
rlar
ddebb63425
lexical #2/19, rewrite the `else if'
14 years ago
rlar
f2f43bcce7
lexical #1/19, use wl_cons
14 years ago
rlar
f36772419a
Revert "cleanup, use wl_cons()"
This reverts parts of commit 7a7250cdbd .
There is a cleaner way to rewrite lexical.c
14 years ago
h_vogt
b85f6bbc7d
controlled_exit() instead of exit()
14 years ago
rlar
64b8dfc570
use wl_delete_slice()
14 years ago
rlar
26468839d4
plotit(), cleanup wordlist processing
14 years ago
rlar
b808fcec8a
fix typo in the commit `use wl_find()'
14 years ago
rlar
891d99497d
use wl_find()
14 years ago
rlar
60398d113c
plotit.c, prepare for usage of wl_find()
14 years ago
rlar
7a7250cdbd
cleanup, use wl_cons()
14 years ago
h_vogt
12e60822fb
measure.c: indentations
14 years ago
h_vogt
ed5491c179
measure.c: Update on error message for .meas
14 years ago
h_vogt
d1d2ff94e4
measure, error message updated and return(NAN) in case of measure failure
test for failure with isnan()
14 years ago
rlar
05e5854268
plotit.c, whitespace cleanup
14 years ago
rlar
512644ca34
rewrite using wl_ functions
14 years ago
rlar
cd2cab2a94
bug fix, cp_ioreset(): fclosing an already closed stream
causing memory corruption when using `>&' stderr redirection
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
1e65ea9e80
rewrite using wl_ functions
this fixed following bug as well:
echo "echo abra ; ; echo kadabra" | ngspice -p
building a circular list and looping forever
14 years ago
rlar
561d30e5bf
implement wl_chop()
14 years ago
rlar
fee664bc19
untabify
14 years ago
rlar
31ee05ceef
mw_coms.c, fix the cleanup using wl_cons()
14 years ago
rlar
8d0306c27a
cpif.c, whitespace, indentation, cleanups
14 years ago
rlar
75d6f6da5e
cpitf.c, cleanup using wl_ functions
14 years ago
rlar
3062e25184
mw_comms.c, whitespace, indentation, cleanups
14 years ago
rlar
95978d3697
mw_coms.c, cleanup using wl_cons()
14 years ago
rlar
a890a55937
fix wl_reverse() for empty lists
14 years ago
rlar
9655b9885a
cleanup, use wl_cons(), wl_append_word() and wl_chop_rest()
14 years ago
rlar
2a22c1b23c
bug fix, missing update of a wordlist's wl_prev pointer
14 years ago
rlar
e1f8033f1c
bug fix, incorrect update of a wordlist's wl_prev pointer
14 years ago
rlar
cb0a48801d
introduce AM_CFLAGS = $(STATIC)
14 years ago
h_vogt
14914025c0
measure_at(), allow real valued data for meas ac
14 years ago
h_vogt
0207dc7239
no exchange of ' ' by { } inside .control section
14 years ago
h_vogt
07727f74f0
commands.c: 'options' equivalent to 'option' and allow 'loadsnap' and 'savesnap'
which have been EXPERIMENTAL_CODE so far
14 years ago
rlar
5bb4c56165
outitf.c, cleanup
14 years ago
rlar
05fd5a03d6
outitf.c, cleanup cancer of the semicolon
14 years ago
rlar
4202354704
outitf.c, cleanup comment
14 years ago
rlar
ccea57570e
outitf.c, cleanup return
14 years ago
rlar
486ffc9429
outitf.c, whitespace
14 years ago
rlar
6ae6223250
misccoms.c, com_quit(), implement exitcode
14 years ago