Brian Taylor
a7961f1a97
Fix some compiler warnings when -Wextra is added to CFLAGS.
11 months ago
Holger Vogt
dd6089c4fc
Improved warning message: hint to line causing the warning.
2 years ago
Holger Vogt
e151b691fb
Add an additional funtion parameter 'filename' to fcn inp_readall
to transfer not only the folder, but also the file name of the
current input
2 years ago
Holger Vogt
da51e1bddf
Don't use printf(".."), but fprintf(stdout, "..."),
thus send an end-of-line also when redirected to file.
2 years ago
Holger Vogt
67726f7f8b
Add new flags to command devhelp:
-type (show parameter types)
-flags (show parameter flags)
Patches provided by Mikolaj Wielgus
4 years ago
Holger Vogt
ed2d48756c
exclude 'type=xxx' from model declaration
4 years ago
Holger Vogt
8895a6e633
Enable math characters in vector (node) names for command alter
Replace ft_getpnames() by ft_getpnames_quotes().
4 years ago
Holger Vogt
605f59b417
Fix a bug with the alter statement
lower case for device name, when sent from shared ngspice
or from interactive mode.
5 years ago
Holger Vogt
990d87bf1c
replace gettok by gettok_node to ignore parentheses when reading
a .model line in the altermod ... file ... command.
6 years ago
Holger Vogt
11b22c8f46
showmod will no longer crash ngspice if run after some error
6 years ago
Holger Vogt
6ab1f8b2d6
add mfg to the .model tokens to be ignored during altermod
6 years ago
Holger Vogt
55f3776fc1
add a warning if file with modified parameters has not been found.
Then ignore the altermod command.
6 years ago
dwarning
3999dcc700
w and l must be exact altermod parameter for MOS binning
6 years ago
Holger Vogt
14c0828a65
plug a memory leak (IXTH80N20L-IXTH48P20P-quasisat.sp)
6 years ago
Vogt
e628fd8977
just use strcmp instead of wrapper function
6 years ago
Jim Monte
c7b95587de
Fixed compiler warnings regarding type of argument passed
6 years ago
dwarning
a2c5cb4301
It is odd that pointer to 'char' type is compared with the '\0' value.
Correct compare with *eqword follows in a correct error message.
8 years ago
Holger Vogt
0675da008b
make the paramter param in @dev[param] lower case for
commands alter, altermod
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
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
rlar
511cdd7188
struct card, #3/6, rename members from struct line to struct card
9 years ago
rlar
0db861e4a6
device.c, bug fix commit "device.c, #8/19, use parent wordlist ..."
This commit did rely on the existence of a parent 'wordlist' element,
usually guranteed by a leading "alter" or "altermod" command word.
But 'inp_evaluate_temper()' passes a wordlist without any parent word
when invoking 'com_altermod()'
9 years ago
rlar
043d3b4f6d
device.c, #19/19, whitespace
9 years ago
rlar
aa50718573
device.c, #18/19, polish comments
9 years ago
rlar
b4b32e2b93
device.c, #17/19, drop unused assignment to 'eqword'
9 years ago
rlar
fac04193e5
device.c, #16/19, shrink scope of variable 'p'
9 years ago
rlar
3eda944db5
device.c, #15/19, make use of 'wl_find()'
9 years ago
rlar
20c303eb8b
device.c, #14/19, drop variable 'wl2', can use 'wl' instead
9 years ago
rlar
e8ebfb115e
device.c, #13/19, drop artificial rewind to the beginning of the list
9 years ago
rlar
79cc996a93
device.c, #12/19, shrink scope of variable 'wlen' and 'maxelem'
9 years ago
rlar
c2c4683b4b
device.c, #11/19, shrink scope of variable 'wlin'
9 years ago
rlar
b817ca8cf7
device.c, #10/19, drop unused assignment to 'wl2'
9 years ago
rlar
9085084ccb
device.c, #9/19, drop variable 'rhs'
9 years ago
rlar
1ff0500117
device.c, #8/19, use parent wordlist to restore beginning of the list
9 years ago
rlar
01039f81a2
device.c, #7/19, use a local wordlist *wn
9 years ago
rlar
50dd15093e
device.c, #6/19, this 'wl2' wont be used anywhere
9 years ago
rlar
26f7a0e04e
device.c, #5/19, drop 'eqfound', equivalent to 'wl != NULL'
9 years ago
rlar
3f09ab6634
device.c, #4/19, loop wont be executed, and 'step' wont be used any more
9 years ago
rlar
3baaa57d18
device.c, #3/19, move some code up
9 years ago
rlar
670d87a589
device.c, #2/19, 'wl' will not be used any more
9 years ago
rlar
1eca384a94
device.c, #1/19, can 'break' here, because 'wl' is NULL
9 years ago
h_vogt
761f3915f5
device.c, 'alter', don't insert empty "" token
when entering ' =' or '= ' in interactive mode
9 years ago
h_vogt
d06f39f67d
device.c, bug #342 , prevent crash when using 'alter'
#342 SegFault alter command
https://sourceforge.net/p/ngspice/bugs/342/
9 years ago
rlar
1e6b809af8
introduce command "check_ifparm" to check consistency of the device IFparm sets
For developing purpose only, and bound to HAVE_TSEARCH, HAVE_TDESTROY
IFparm descriptors must obey certain contracts,
1) aliases must be grouped together with their associated main descriptor,
and all must have flag IF_REDUNDANT set
2) there shall be no duplicated .id fields except for aliases.
3) aliased entries shall have consistent .dataType fields
check_ifparm will traverse all IFparm sets and report violations
9 years ago
rlar
2809ccaa13
shrink scope of expr_w_temper
9 years ago
rlar
dc6e1cb064
use strchr() instead of strstr()
9 years ago
rlar
059f2b6c0d
fix garbage collection of vectors returned by ft_evaluate()
10 years ago
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
10 years ago
rlar
908c650f72
dvec abstraction, #3/11, use `dvec_alloc()'
10 years ago