rlar
900bed550d
string.c, #6/6, use skip_ws() and skip_back_ws()
2017-04-09 15:35:44 +02:00
rlar
0da47c644b
string.c, #5/6, cleanup
2017-04-09 15:35:41 +02:00
rlar
5b23b54769
string.c, #4/6, cleanup token fetching
2017-04-09 15:35:38 +02:00
rlar
c6a3438408
string.c, #3/6, cleanup 'return'
2017-04-09 15:35:35 +02:00
rlar
ed13e8a15a
string.c, #2/7, drop 'register'
2017-04-09 15:35:32 +02:00
rlar
d48bec757c
string.c, #1/6, whitespace
2017-04-09 15:35:29 +02:00
rlar
dc6e1cb064
use strchr() instead of strstr()
2017-03-19 20:24:49 +01:00
rlar
7a42510cc0
const'ify some 'skip'ing functions
2017-03-19 20:12:25 +01:00
rlar
45ad60b738
rename gettok_nc() --> nexttok(), and functionalize it
2017-03-19 20:11:01 +01:00
rlar
52a1a58e14
wlist.c, wl_find(), avoid crash when `string' argument is NULL
2016-11-01 11:56:47 +01:00
h_vogt
6a0a6071a0
gettok_nc(&line): like gettok(), move pointer beyond next token in line, but without returning a string, without TMALLOC. Replaces constructs like tfree(gettok(&line)).
2016-10-15 15:06:20 +02:00
h_vogt
33b11f9598
comments improved
2016-08-15 11:26:55 +02:00
rlar
d298d5cc2f
use memset() instead of deprecated bzero()
2016-07-30 20:58:33 +02:00
rlar
141ed61ec8
use memcpy() instead of deprecated bcopy()
2016-07-30 20:58:19 +02:00
rlar
994bec7859
declare free() / realloc() arguments `const void *'
...
to avoid extra casting when freeing `const' strings
2016-07-17 11:19:34 +02:00
rlar
5e04924890
cleanup `skip_ws()' usage
2016-03-22 15:26:11 +01:00
rlar
b1d8b99018
skip-ws, #6/6, rename to match inpcom.c
2016-03-22 15:26:10 +01:00
rlar
22875d056b
skip-ws, #5/6, use functional style
2016-03-22 15:26:09 +01:00
rlar
d12679fccd
skip-ws, #4/6, drop `TEMPORARY_SKIP_WS_X0'
...
use TEMPORARY_SKIP_WS_X1 instead of TEMPORARY_SKIP_WS_X0
2016-03-22 15:26:08 +01:00
rlar
a86f2068c8
skip-ws, #3/6, use TEMPORARY macros, obj-invariant
2016-03-22 15:26:06 +01:00
rlar
6d1171ad6f
skip-ws, #2/6, introduce "ngspice/stringskip.h"
...
with some temporary macros to skip whitespace
2016-03-22 15:26:05 +01:00
rlar
4b5669a51c
frontend/resource.c, fix bizarre time mathematics
2016-03-22 15:24:25 +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
726d0be34c
use char variants of the <ctype.h> toxxxx() family
2016-03-09 20:24:36 +01:00
rlar
71a7c3459b
use char variants of the <ctype.h> isxxxx() family
2016-03-09 20:24:36 +01:00
rlar
d37f18d777
misc/string.c, sprinkle some const'ness
2015-12-22 16:47:42 +01:00
rlar
192eeadb0b
remove crufty comments which where used to support broken text editors
2015-09-24 18:23:54 +02:00
rlar
0c0bc4079f
configure.ac, allow cross-compilation, especially for MinGW-w64
...
notably on debian gnu/linux with package `mingw-w64'
cross-compile a mingw 32bit windows executable with this incantation:
(compile "
./autogen.sh
rm -rf tmp-build tmp-output
mkdir -p tmp-build tmp-output
( cd tmp-build && ../configure \
--build=$(../config.guess) \
--host=i686-w64-mingw32 \
--prefix='c:/spice' \
--exec-prefix='c:/spice'\
--with-windows --enable-xspice --enable-cider --disable-debug )
LC_ALL=C make -C tmp-build -k -j6
LC_ALL=C make -C tmp-build -k -j6 DESTDIR=$(pwd)/tmp-output/ install
(cd 'tmp-output/c:/' && zip -r - .) > tmp-output.zip
")
compilation to Win64 works the same way, with
--host=x86_64-w64-mingw32
The tmp-output.zip directory structure resembles the
structure of our original sourceforge ngspice-26_140112.zip windows package
ready to be unzip'ed in c:/
Though the testfiles, examples and documentation is missing.
2015-07-06 21:08:05 +02:00
rlar
7bc6374138
cleanup, use '\0' instead of 0 in char context
2015-05-02 10:24:54 +02:00
rlar
7b0275ebf7
string.c, swallow "warning: value computed is not used"
2015-01-04 20:31:45 +01:00
rlar
7524ad2ee6
src/misc/string.c, rewrite using `copy_substring()'
2014-12-01 20:18:59 +01:00
rlar
f5d05af51d
inpgmod.c, INPgetModBin(), use model_name_match()
2014-08-09 18:17:51 +02:00
rlar
b663731379
rewrite model_bin_match(), rename --> model_name_match()
2014-08-09 18:17:34 +02:00
rlar
7f7453a227
inp_do_macro_param_replace(), fix several bugs concerning .func processing
2014-07-08 18:19:26 +02:00
rlar
aa7a7606c7
avoid multiple declarations of controlled_exit(), add 'noreturn' attribute
2014-05-14 21:36:18 +02:00
rlar
cc56c90b9d
drop asprintf()
2014-04-12 21:02:31 +02:00
rlar
80dd41451f
introduce tvprintf()
2014-04-12 21:01:36 +02:00
rlar
a9bdfe3b00
cleanup spice_format_length()
2014-04-12 20:31:04 +02:00
rlar
0750749962
mktemp.c, use tprintf()
2014-04-05 19:44:13 +02:00
rlar
7aa454e5b4
rewrite, using tprintf()
2014-04-05 19:10:12 +02:00
rlar
a4780f8e34
string.c, introduce tprintf()
2014-04-05 18:44:27 +02:00
h_vogt
6480fabeaf
tilde.c, enable search for home dir under MS Windows
2014-01-02 09:32:13 +01:00
rlar
aae92bf259
avoid overlapping "Dummy" symbols
...
reported by James Jackson in message:
[Ngspice-users] Problem building git head --with-ngspice Mac OS X
2013-12-31 16:41:26 +01:00
rlar
a94170d2ab
gettok_node(), use copy_substring()
2013-12-31 16:25:50 +01:00
Krzysztof Blaszkowski
493aaba468
gettok_node(), avoid segfault when *s == NULL
2013-12-31 16:25:49 +01:00
rlar
5db94276d3
sprinkle some constness
2013-12-31 16:25:26 +01:00
Henrik Forstén
44ef3db000
dstring_append_char(), rewrite
2013-12-31 16:12:35 +01:00
h_vogt
a072a13cb0
misc_time.c: make timediff always availabe when timeb.h is found
2013-12-31 16:11:25 +01:00
h_vogt
295c808b01
alloc.c sharedspice.c: improve thread safety
...
still much more to be done!
2013-12-31 16:06:53 +01:00
h_vogt
d7e291c53a
HAS_WINDOWS --> HAS_WINGUI
...
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
rlar
6c8f002eea
unify #ifndef include wrapper
2013-12-31 12:54:32 +01:00
h_vogt
8e5ad3d344
ivars.c: prevent crash in CYGWIN batch mode, if NGSPICE_INPUT_DIR given
...
remove unused Default_MFB_Cap
2013-01-01 17:31:44 +01:00
h_vogt
75447dc43c
implement spice_dstring_append_lower()
...
patch originally provided by Bill Swartz, 2010
2012-12-09 13:27:53 +01:00
Francesco Lannutti
08ec219417
remove all .cvsignore files
2012-10-26 18:30:14 +02:00
Francesco Lannutti
1dc70189a7
remove compilation warnings (type casts)
2012-10-26 18:04:44 +02:00
Francesco Lannutti
c23bd59c44
removed ancient PARALLEL_ARCH feature
...
removed variables
ARCHme
ARCHsize
removed functions
SMPcombine()
SMPcCombine()
CKTpartition()
removed files
spcombin.c
cktpartn.c
removed struct slots
STATcombineTime
STATtranCombTime
STATacCombTime
GENowner
<MODEL>owner
2012-10-22 23:06:25 +02: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
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
rlar
84283b43d4
cleanup ivars() related globals on program termination
2012-08-23 21:09:25 +02:00
rlar
d50ffdd987
swallow warnings
2012-08-06 19:50:23 +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
h_vogt
96d2ff96e0
alloc.c: exlude controlled_exit if not MS Windows
...
not available in some tests in cmaths and executable like ngproc2mod
2012-08-03 08:28:50 +02:00
h_vogt
67e0cf0608
undo controlled_exit: not compatible with ancient tests in cmath under LINUX
2012-08-01 22:10:13 +02:00
h_vogt
b85f6bbc7d
controlled_exit() instead of exit()
2012-07-31 17:54:51 +02:00
rlar
cdef8aa10e
implement wl_delete_slice()
2012-07-29 13:11:42 +02:00
rlar
608e0473d3
copy(), allow NULL argument
2012-07-28 19:53:55 +02:00
rlar
e2be942b72
implement wl_find()
2012-07-28 12:29:22 +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
rlar
561d30e5bf
implement wl_chop()
2012-07-21 14:42:18 +02:00
h_vogt
87c80b842c
gettok_char(), return(NULL) if substring not found
2012-07-19 23:16:15 +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
cb0a48801d
introduce AM_CFLAGS = $(STATIC)
2012-07-07 14:51:39 +02:00
h_vogt
fc7692a896
outheap removed
2012-02-11 12:50:44 +00:00
h_vogt
5d101f46f9
updates tcl for Windows
2012-02-11 11:59:12 +00:00
rlar
d04f0948d6
preserve const'ness of some casts
2012-02-06 20:21:47 +00:00
rlar
afa1371746
#3/6 config.h --> ngspice/config.h, AM_CPPFLAGS
2011-12-27 12:05:51 +00:00
rlar
4ca58067a2
#2/6 config.h --> ngspice/config.h, #include's
2011-12-27 11:33:01 +00:00
h_vogt
94e9f07b90
Gxxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
2011-12-21 21:33:47 +00:00
rlar
0d7f64657c
move stringutil.h --> src/include/ngspice
2011-12-17 17:16:29 +00:00
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
2011-12-13 19:57:45 +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
9fd458f0ed
rewrite ngdirname()
2011-08-07 19:26:53 +00:00
h_vogt
e86527635b
ivars(char*), Windows 64, 32 bit
2011-08-03 20:03:42 +00:00
rlar
2d50db4b91
use size_t
2011-07-24 20:16:21 +00:00
rlar
56287d9a1d
nghash cleanup, use `%p' to print a pointer value
2011-07-17 11:20:31 +00:00
rlar
a057ea7bd4
nghash cleanup, use stdint.h for proper sized integers representing a pointer
2011-07-17 10:59:00 +00:00
rlar
2b2dcb7f31
nghash cleanup, cleanup default functions
2011-07-17 09:58:27 +00:00
rlar
c680e70e8e
nghash cleanup, polish types
2011-07-17 09:56:45 +00:00
rlar
065b495248
nghash cleanup, drop a trivial local variable
2011-07-17 09:55:33 +00:00
rlar
abfa90832d
nghash cleanup, fix typeof compare_func
2011-07-17 09:54:20 +00:00