Holger Vogt
fc7ba6ee8f
Add a fcn wl_delete to free the wordlist, but not its wl_word contents.
2024-05-14 16:30:49 +02:00
Holger Vogt
7f085144a9
remove all the remains of quote() and strip() that had been
...
used to modify the eigths bit of a character or string.
The functions had been switched off some time ago.
We now need all bits of a char for extended ascii or utf8
2020-03-15 08:51:12 +01:00
Jim Monte
ea81da2b01
[PATCH #55-1] Fixed some compiler warnings added by Visual Studio 2019
2019-08-13 23:29:13 +02:00
Jim Monte
1c5176282b
[PATCH #52 ] General cleanup of word list processing, such as adding
...
comments and const. Also added a new function wl_from_string() to convert a
single word into a word list. This function can be useful when calling a
function taking a single-word word list.
2019-08-13 23:28:49 +02:00
Jim Monte
0ddd4a8456
Fixed excess buffer allocation and converted wordlist to string more efficiently
...
Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
2019-08-13 23:14:27 +02:00
rlar
52a1a58e14
wlist.c, wl_find(), avoid crash when `string' argument is NULL
2016-11-01 11:56:47 +01:00
rlar
bd0bc3038b
use `SWAP' macro
2016-03-22 13:04:13 +01:00
rlar
f84d2d4e44
misc/wlist.c, minor cleanup
2016-03-22 11:22:53 +01:00
rlar
4c1c95e20f
everywhere, use `TMALLOC()' instead of `alloc()'
2016-03-21 21:22:07 +01:00
rlar
11579d9369
cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones)
2012-10-06 12:12:08 +02:00
rlar
713091ea22
wlist #3/3, whitespace
2012-08-04 11:40:35 +02:00
rlar
fe5ac28b92
wlist #2/3, cleanup
2012-08-04 11:40:35 +02:00
rlar
406dcc3519
wlist #1/3, cleanup
2012-08-04 11:40:35 +02:00
rlar
9ed7ce4e9e
wlist.c, `const' ness
2012-08-03 21:46:13 +02:00
rlar
cdef8aa10e
implement wl_delete_slice()
2012-07-29 13:11:42 +02:00
rlar
e2be942b72
implement wl_find()
2012-07-28 12:29:22 +02:00
rlar
561d30e5bf
implement wl_chop()
2012-07-21 14:42:18 +02:00
rlar
2b859633a1
fix the fix wl_reverse() for empty lists
2012-07-15 19:42:09 +02:00
rlar
a890a55937
fix wl_reverse() for empty lists
2012-07-14 12:39:13 +02:00
rlar
5859f1a61d
comments for wl_cons(), wl_append_word() and wl_chop_rest()
2012-07-14 12:39:02 +02:00
rlar
9655b9885a
cleanup, use wl_cons(), wl_append_word() and wl_chop_rest()
2012-07-14 10:23:51 +02:00
rlar
d9ddaec784
implement wl_cons(), wl_append_word() and wl_chop_rest()
2012-07-14 09:18:39 +02:00
rlar
d04f0948d6
preserve const'ness of some casts
2012-02-06 20:21:47 +00:00
rlar
4ca58067a2
#2/6 config.h --> ngspice/config.h, #include's
2011-12-27 11:33:01 +00:00
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
2011-12-11 18:05:00 +00:00
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
2011-08-20 17:27:09 +00:00
rlar
d0dba768f8
change the type of a bunch of variables from `int' to `size_t'
2010-11-06 20:11:24 +00:00
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
2010-10-28 19:32:34 +00:00
rlar
b96989b506
fix incorrect usage of tmalloc/sizeof, incorrect indirection level
2010-10-24 12:56:11 +00:00
rlar
bf0b7b4386
qsort() usage, drop cast of the first argument (which is a void *)
2010-10-24 12:53:52 +00:00
rlar
4cdd842cd8
muffle compiler warnings
2010-07-24 18:51:06 +00:00
rlar
3369d860b4
cast the return values of malloc() function calls
2010-07-01 19:52:23 +00:00
arno
57dfb0f945
* main.c frontend/com_ahelp.c frontend/com_asciiplot.c
...
frontend/com_help.c frontend/com_plot.c frontend/com_set.c
frontend/com_unset.c frontend/quote.c include/cpdefs.h
include/defines.h include/wordlist.h maths/ni/niconv.c
misc/Makefile.am parser/Makefile.am parser/numparse.c
misc/wlist.c parser/wlist.c parser/wlist.h: Sorry for the big
commit, I screwed up the last one. See the ChangeLogs for an
account of what changed.
2000-07-18 18:07:16 +00:00