Jim Monte
1d62ae2d97
type casts
6 years ago
Holger Vogt
85142709fc
For UNICODE use char in comparison to ' '
only as unsigned char
6 years ago
Jim Monte
4bd4a6e9be
Fixed usage of new dstring functions. Also added const to some parameters that did not change.
6 years ago
Jim Monte
89efe5aeae
Dynamic string (dstring) rework
6 years ago
Holger Vogt
75d1e45737
consider all PSPICE containing compatibility settings
for the evaluation of the pwr function
or allowing '-' in a subcircuit name
8 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
Holger Vogt
b07ae3123e
use only internal memory functions,
replace strdup by copy
8 years ago
h_vogt
d89eab99d5
add dicoS->linecount to safely delete dynrefptr[i],
linecount may change if circuits are changed or deleted.
10 years ago
h_vogt
1066bf0a7b
Store the numparam dicoS structure for each circuit in a list.
Functions to add, remove, retrive dicoS from the list
and to update dicoS, if the circuit has been changed.
Keeping dicoS is necessary because it may be used by measure.
This patch prevents (huge) memory leaks by overwriting
dicoS if multiple calls to the 'source' command are executed.
10 years ago
Holger Vogt
cbe4b31d4b
do not delete symbols that have not been created here
8 years ago
Holger Vogt
04059e5426
enable '-' as valid character in a subcircuit name
8 years ago
h_vogt
3dd2115291
frontend/subckt.c, do not put model names into numparam hash table
nobody seems to make use of these entries.
see nupa_type which shrinks to four enum's
10 years ago
rlar
95ef5e79d9
numparam/*, use `pscopy()'
8 years ago
rlar
9ad63cc2c0
numparam/*, plug memory leaks
8 years ago
rlar
ea1b83698f
numparam/*, drop case conversions
inpcom.c is supposed to convert everything to lower case.
Thus we can work case sensitive in numparam,
which is easier compared to a whole set of local case conversions.
8 years ago
rlar
0200d5c7e9
numparam/*, drop "old style" '&' syntax
Probably an artefact of the external preprocessor implementation
of numparam.
This syntax seems to have been a non spice macro expansion facility.
8 years ago
rlar
8022aa09a6
spicenum.c, cleanup dicoS usage
8 years ago
rlar
aa0dbd20ad
spicenum.c, drop putlogfile()
8 years ago
rlar
15c00a9d42
spicenum.c, drop dologfileS, logfileS and nblogS
which are never set
8 years ago
rlar
112f35cc96
nupa_copy(), use skip_back_ws()
8 years ago
rlar
9218b76583
nupa_copy(), cleanup
8 years ago
rlar
ec24c1ded7
nupa_copy(), fix lvalue
8 years ago
rlar
06708f1ed1
nupa_copy(), ls ==> s_end - (const) s
8 years ago
rlar
751d377d3e
pscopy(), pscopy_up(), use `char *stop' argument
instead of `int length' argument
8 years ago
rlar
2cb579cd9f
pscopy(), pscopy_up(), drop `start' argument
which is always zero
8 years ago
rlar
4859f7d8df
findsubname(), cleanup and use isspace_c()
8 years ago
rlar
784ad14d60
findsubname(), drop `ls_ptr'
8 years ago
rlar
d647a84e66
findsubname(), just truncate it
8 years ago
rlar
5e6fe75db6
findsubname(), collect decrement operations
8 years ago
rlar
31ad5ca970
findsubname(), decrement later
8 years ago
rlar
01eb593ca4
findsubname(), explicit break out of the loop
8 years ago
rlar
cbd38fdc9c
findsubname(), use skip_back_ws()
8 years ago
rlar
270e0b6154
findsubname(), cleanup
8 years ago
rlar
a5c743d48c
findsubname(), fix lvalues
8 years ago
rlar
21d3f04659
findsubname(), h ==> p_end - (const) s
8 years ago
rlar
8881aead44
findsubname(), cleanup
8 years ago
rlar
c8340f2b4c
findsubname(), fix lvalues
8 years ago
rlar
90bb7cc289
findsubname(), j ==> t - (const) s
8 years ago
rlar
1778b608d8
findsubname(), cleanup
8 years ago
rlar
8df5717017
findsubname(), fix lvalues
8 years ago
rlar
a7c2253c8a
findsubname(), k ==> p - (const) s - 1
8 years ago
rlar
623436c9f9
findsubname(), fix lvalues
8 years ago
rlar
521fee88a6
findsubname(), ls ==> ls_ptr - (const) s
8 years ago
rlar
4ca87d6b0b
findsubname(), reorder and add some constness
8 years ago
rlar
ab152c99fc
findsubname(), local scope for `nest' `j' and `h'
8 years ago
rlar
45f3749bb1
findsubname(), drop `found', which is constantly 0
because of the previous commit
8 years ago
rlar
f0cead24b8
findsubname(), duplicate function epilogue and return early
8 years ago
rlar
4986df1baf
findsubname(), signature, drop unused return value
8 years ago
rlar
af78917b98
stripbraces(), whitespace
8 years ago
rlar
11e024753a
stripbraces(), cleanup
8 years ago