Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
...
free->tfree, malloc->tmalloc, realloc->trealloc
2018-07-21 23:54:43 +02:00
rlar
511cdd7188
struct card, #3/6, rename members from struct line to struct card
2018-02-17 19:15:53 +01:00
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()'
2017-07-30 12:17:43 +02:00
rlar
043d3b4f6d
device.c, #19/19, whitespace
2017-07-06 17:56:23 +02:00
rlar
aa50718573
device.c, #18/19, polish comments
2017-07-06 17:56:22 +02:00
rlar
b4b32e2b93
device.c, #17/19, drop unused assignment to 'eqword'
2017-07-06 17:56:22 +02:00
rlar
fac04193e5
device.c, #16/19, shrink scope of variable 'p'
2017-07-06 17:56:22 +02:00
rlar
3eda944db5
device.c, #15/19, make use of 'wl_find()'
2017-07-06 17:56:22 +02:00
rlar
20c303eb8b
device.c, #14/19, drop variable 'wl2', can use 'wl' instead
2017-07-06 17:56:22 +02:00
rlar
e8ebfb115e
device.c, #13/19, drop artificial rewind to the beginning of the list
2017-07-06 17:56:22 +02:00
rlar
79cc996a93
device.c, #12/19, shrink scope of variable 'wlen' and 'maxelem'
2017-07-06 17:56:22 +02:00
rlar
c2c4683b4b
device.c, #11/19, shrink scope of variable 'wlin'
2017-07-06 17:56:22 +02:00
rlar
b817ca8cf7
device.c, #10/19, drop unused assignment to 'wl2'
2017-07-06 17:56:21 +02:00
rlar
9085084ccb
device.c, #9/19, drop variable 'rhs'
2017-07-06 17:56:21 +02:00
rlar
1ff0500117
device.c, #8/19, use parent wordlist to restore beginning of the list
2017-07-06 17:56:21 +02:00
rlar
01039f81a2
device.c, #7/19, use a local wordlist *wn
2017-07-06 17:56:21 +02:00
rlar
50dd15093e
device.c, #6/19, this 'wl2' wont be used anywhere
2017-07-06 17:56:21 +02:00
rlar
26f7a0e04e
device.c, #5/19, drop 'eqfound', equivalent to 'wl != NULL'
2017-07-06 17:56:21 +02:00
rlar
3f09ab6634
device.c, #4/19, loop wont be executed, and 'step' wont be used any more
2017-07-06 17:56:21 +02:00
rlar
3baaa57d18
device.c, #3/19, move some code up
2017-07-06 17:56:21 +02:00
rlar
670d87a589
device.c, #2/19, 'wl' will not be used any more
2017-07-06 17:56:21 +02:00
rlar
1eca384a94
device.c, #1/19, can 'break' here, because 'wl' is NULL
2017-07-06 17:56:04 +02:00
h_vogt
761f3915f5
device.c, 'alter', don't insert empty "" token
...
when entering ' =' or '= ' in interactive mode
2017-07-06 17:55:06 +02:00
h_vogt
d06f39f67d
device.c, bug #342 , prevent crash when using 'alter'
...
#342 SegFault alter command
https://sourceforge.net/p/ngspice/bugs/342/
2017-07-06 17:55:02 +02:00
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
2017-04-09 14:40:51 +02:00
rlar
2809ccaa13
shrink scope of expr_w_temper
2017-04-09 14:06:27 +02:00
rlar
dc6e1cb064
use strchr() instead of strstr()
2017-03-19 20:24:49 +01:00
rlar
059f2b6c0d
fix garbage collection of vectors returned by ft_evaluate()
2016-03-26 18:48:50 +01:00
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
2015-12-28 20:34:42 +01:00
rlar
908c650f72
dvec abstraction, #3/11, use `dvec_alloc()'
2015-12-28 20:34:42 +01:00
rlar
3ab568fcba
frontend/device.c, com_alter_common(), #4/4 rename and reuse locals
2015-12-28 12:57:30 +01:00
rlar
dcef3da677
frontend/device.c, com_alter_common(), #3/4 use `wl_cons()'
2015-12-28 12:57:29 +01:00
rlar
335a47f70a
frontend/device.c, com_alter_common(), #2/4 shrink scope of locals
2015-12-28 12:57:28 +01:00
rlar
a3e06831fd
frontend/device.c, com_alter_common(), #1/4 rewrite for readability
2015-12-28 12:57:27 +01:00
rlar
c1b9f746a3
frontend/device.c, com_alter_common(), #10/11 whitespace
2015-12-26 19:00:12 +01:00
rlar
78a0f74bbc
frontend/device.c, com_alter_common(), #9/11 useless allocation
2015-12-26 19:00:08 +01:00
rlar
f04d6cffc2
frontend/device.c, com_alter_common(), #8/11 reorder
2015-12-26 19:00:04 +01:00
rlar
245ef2bbf1
frontend/device.c, com_alter_common(), #7/11 reorder
2015-12-26 19:00:00 +01:00
rlar
8fb0143043
frontend/device.c, com_alter_common(), #6/11 thats always true, drop `type'
2015-12-26 18:59:56 +01:00
rlar
88fa0bc8d2
frontend/device.c, com_alter_common(), #5/11 cleanup `i' usage
2015-12-26 18:59:52 +01:00
rlar
247767e3bf
frontend/device.c, com_alter_common(), #4/11 rewrite while() loop
2015-12-26 18:59:48 +01:00
rlar
80b76ebeb2
frontend/device.c, com_alter_common(), #3/11 rewrite while() loop
2015-12-26 18:59:44 +01:00
rlar
c284161949
frontend/device.c, com_alter_common(), #2/11 set `v_type' and `v_flags' too
2015-12-26 18:59:38 +01:00
rlar
fd2329c7e9
frontend/device.c, com_alter_common(), #1/11 fix error return
2015-12-26 18:59:27 +01:00
rlar
7bc6374138
cleanup, use '\0' instead of 0 in char context
2015-05-02 10:24:54 +02:00
rlar
19e427e3a5
cleanup, use NULL instead of 0 in pointer context
2015-05-02 10:24:49 +02:00
rlar
bcda90e258
src/frontend, cleanup, drop `GENcircuit'
2015-03-21 13:56:57 +01:00
rlar
b69e61d010
src/frontend/device.c, cleanup usage of `IFparm.dataType'
2015-03-21 13:52:55 +01:00
rlar
7aa454e5b4
rewrite, using tprintf()
2014-04-05 19:10:12 +02:00
rlar
d598630b72
inpcom.c, cleanup inp_readall() #1/7, introduce inp_read()
2013-12-31 16:26:12 +01:00