Holger Vogt
|
02cf88c119
|
correct the return values
|
6 years ago |
Holger Vogt
|
d967e18632
|
compatibility to old vsnprintf() in MINGW is no longer needed.
Compiling with -D__USE_MINGW_ANSI_STDIO=1 enables C99 compatibility.
|
6 years ago |
Holger Vogt
|
249304a06f
|
Instantiations of string and dstring functions as inline
This will remove the redundant-decls warning
|
6 years ago |
Holger Vogt
|
bcfdc806a5
|
work around a bug in MINGW
Reported in
https://github.com/msys2/MINGW-packages/issues/6254
|
6 years ago |
Jim Monte
|
72801b1ab1
|
Fixed buffer resizing, made string utilities more modular, and added several new utilities, some which do not require a null termination, potentially avoiding the need to copy a string. Also some substring utilities using the Rabin-Karp algorithm were added.
|
6 years ago |
Jim Monte
|
81fa829b7d
|
Fixed potential infinite loop (until memory is exhausted) and added several utility functions for processing strings.
|
6 years ago |
Holger Vogt
|
c50dfa2be8
|
prevent crash if function is called with NULL argument
|
7 years ago |
Jim Monte
|
e92e2c7362
|
[PATCH #62] Fixed buffer overrun. Reworked to not use dstring for more
efficient parsing.
|
7 years ago |
Jim Monte
|
b66412f517
|
[PATCH] Changed prototypes of some functions having parameters that
should not be changed to const and added assorted comments. Also two very
minor efficiency improvements.
|
7 years ago |
Holger Vogt
|
61039c2736
|
add a new function gettok_model to consider {...} expressions
in VDMOS .model statements
|
7 years ago |
rlar
|
900bed550d
|
string.c, #6/6, use skip_ws() and skip_back_ws()
|
9 years ago |
rlar
|
0da47c644b
|
string.c, #5/6, cleanup
|
9 years ago |
rlar
|
5b23b54769
|
string.c, #4/6, cleanup token fetching
|
9 years ago |
rlar
|
c6a3438408
|
string.c, #3/6, cleanup 'return'
|
9 years ago |
rlar
|
ed13e8a15a
|
string.c, #2/7, drop 'register'
|
9 years ago |
rlar
|
d48bec757c
|
string.c, #1/6, whitespace
|
9 years ago |
rlar
|
dc6e1cb064
|
use strchr() instead of strstr()
|
9 years ago |
rlar
|
7a42510cc0
|
const'ify some 'skip'ing functions
|
10 years ago |
rlar
|
45ad60b738
|
rename gettok_nc() --> nexttok(), and functionalize it
|
9 years ago |
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)).
|
10 years ago |
h_vogt
|
33b11f9598
|
comments improved
|
10 years ago |
rlar
|
d298d5cc2f
|
use memset() instead of deprecated bzero()
|
10 years ago |
rlar
|
141ed61ec8
|
use memcpy() instead of deprecated bcopy()
|
10 years ago |
rlar
|
5e04924890
|
cleanup `skip_ws()' usage
|
10 years ago |
rlar
|
b1d8b99018
|
skip-ws, #6/6, rename to match inpcom.c
|
10 years ago |
rlar
|
22875d056b
|
skip-ws, #5/6, use functional style
|
10 years ago |
rlar
|
a86f2068c8
|
skip-ws, #3/6, use TEMPORARY macros, obj-invariant
|
10 years ago |
rlar
|
6d1171ad6f
|
skip-ws, #2/6, introduce "ngspice/stringskip.h"
with some temporary macros to skip whitespace
|
10 years ago |
rlar
|
726d0be34c
|
use char variants of the <ctype.h> toxxxx() family
|
10 years ago |
rlar
|
71a7c3459b
|
use char variants of the <ctype.h> isxxxx() family
|
10 years ago |
rlar
|
d37f18d777
|
misc/string.c, sprinkle some const'ness
|
10 years ago |
rlar
|
192eeadb0b
|
remove crufty comments which where used to support broken text editors
|
11 years ago |
rlar
|
7b0275ebf7
|
string.c, swallow "warning: value computed is not used"
|
11 years ago |
rlar
|
7524ad2ee6
|
src/misc/string.c, rewrite using `copy_substring()'
|
12 years ago |
rlar
|
f5d05af51d
|
inpgmod.c, INPgetModBin(), use model_name_match()
|
12 years ago |
rlar
|
b663731379
|
rewrite model_bin_match(), rename --> model_name_match()
|
12 years ago |
rlar
|
7f7453a227
|
inp_do_macro_param_replace(), fix several bugs concerning .func processing
|
12 years ago |
rlar
|
80dd41451f
|
introduce tvprintf()
|
12 years ago |
rlar
|
a4780f8e34
|
string.c, introduce tprintf()
|
12 years ago |
rlar
|
a94170d2ab
|
gettok_node(), use copy_substring()
|
13 years ago |
Krzysztof Blaszkowski
|
493aaba468
|
gettok_node(), avoid segfault when *s == NULL
|
13 years ago |
rlar
|
d50ffdd987
|
swallow warnings
|
14 years ago |
rlar
|
608e0473d3
|
copy(), allow NULL argument
|
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
|
87c80b842c
|
gettok_char(), return(NULL) if substring not found
|
14 years ago |
h_vogt
|
94e9f07b90
|
Gxxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
|
14 years ago |
rlar
|
0d7f64657c
|
move stringutil.h --> src/include/ngspice
|
14 years ago |
rlar
|
10346e055c
|
#1/4 #include <ngspice/...> --> #include "ngspice/..."
|
14 years ago |
rlar
|
d26015586c
|
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
|
15 years ago |
rlar
|
e6c30efe46
|
Nr 4/5 (x = ...) != NULL , swallow warnings
|
16 years ago |