rlar
|
9494f8d9af
|
getexpress(), change signature, return char * to continue with
|
2018-02-17 19:15:54 +01:00 |
rlar
|
0c363d7b4f
|
getexpress(), return `tpe' per reference
|
2018-02-17 19:15:54 +01:00 |
rlar
|
49bdcc3e3d
|
getexpress(), drop first argument `ls_ptr'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
4bbff47518
|
getexpress(), first arg s ==> s + strlen(s)
|
2018-02-17 19:15:54 +01:00 |
rlar
|
7fc7202bdf
|
getexpress(), `p' doesn't need to be initialised here
|
2018-02-17 19:15:54 +01:00 |
rlar
|
4a6c7db226
|
getexpress(), break early
instead of doing nothing and then breaking
|
2018-02-17 19:15:54 +01:00 |
rlar
|
8a3871a0ef
|
getexpress(), transform loop
|
2018-02-17 19:15:54 +01:00 |
rlar
|
92eb2b0437
|
getexpress(), break early
instead of doing nothing and then breaking anyway
|
2018-02-17 19:15:54 +01:00 |
rlar
|
2f24e6e563
|
getexpress(), local scope for `c' and `d'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
86ef4b8cb1
|
getexpress(), transform loop
|
2018-02-17 19:15:54 +01:00 |
rlar
|
1df1e69f5d
|
getexpress(), d == ')' is automatically true
when level has been decremented to level <= 0
|
2018-02-17 19:15:54 +01:00 |
rlar
|
1e6a44af27
|
getexpress(), transform
|
2018-02-17 19:15:54 +01:00 |
rlar
|
0cc72ae3c1
|
getexpress(), always true
|
2018-02-17 19:15:54 +01:00 |
rlar
|
f87c629e1b
|
getexpress(), break
|
2018-02-17 19:15:54 +01:00 |
rlar
|
9ace8b161f
|
getexpress(), scope
|
2018-02-17 19:15:54 +01:00 |
rlar
|
f2013088a6
|
getexpress(), transform `<' etc comparisons
|
2018-02-17 19:15:54 +01:00 |
rlar
|
d1b25d59bb
|
getexpress(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
a913def4d7
|
getexpress(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
ec68ee7b94
|
getexpress(), fix lvalues
|
2018-02-17 19:15:54 +01:00 |
rlar
|
9ff93246b6
|
getexpress(), ia_ptr ==> xiaptr + 1
|
2018-02-17 19:15:54 +01:00 |
rlar
|
47db566181
|
getexpress(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
4402686c69
|
getexpress(), fix lvalues
|
2018-02-17 19:15:54 +01:00 |
rlar
|
6da6f6a4fd
|
getexpress(), iptr ==> p + 1
|
2018-02-17 19:15:54 +01:00 |
rlar
|
7509fa17da
|
getexpress(), transform pscopy(,x,y,) --> pscopy(,x+y,y-y,) (requirement strlen(x) >= y to be verified later)
|
2018-02-17 19:15:54 +01:00 |
rlar
|
0f00fd3043
|
getexpress(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
a47348526c
|
getexpress(), fix lvalues
|
2018-02-17 19:15:54 +01:00 |
rlar
|
dc8eb2b956
|
getexpress(), ia ==> ia_ptr - (const) s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
44c5410490
|
getexpress(), fix lvalue
|
2018-02-17 19:15:54 +01:00 |
rlar
|
632829575b
|
getexpress(), ls ==> ls_ptr - (const) s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
f19ddf6090
|
getexpress(), fix lvalues
|
2018-02-17 19:15:54 +01:00 |
rlar
|
c351f2f19b
|
getexpress(), i ==> iptr - (const) s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
d4098d454b
|
getexpress(), third argument, `char **pi' instead of `int *pi'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
57b822e0e9
|
getexpress(), express some constness
|
2018-02-17 19:15:54 +01:00 |
rlar
|
d9a2cec430
|
getword(), drop s_end argument, which is always == s + strlen(s)
|
2018-02-17 19:15:54 +01:00 |
rlar
|
c5966489c9
|
getword(), return one less
|
2018-02-17 19:15:54 +01:00 |
rlar
|
f5d686e23c
|
getword(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
51c9f93b7a
|
getword(), substitue s = s - 1
|
2018-02-17 19:15:54 +01:00 |
rlar
|
f96eb16255
|
getword(), (s < x) ==> (s - 1 < x - 1)
|
2018-02-17 19:15:54 +01:00 |
rlar
|
cc452a4c90
|
getword(), transform while loop
|
2018-02-17 19:15:54 +01:00 |
rlar
|
d6801c0cf1
|
getword(), substitute s = s - 1
|
2018-02-17 19:15:54 +01:00 |
rlar
|
68b0be8caa
|
getword(), (s <= x) --> (s - 1 < x)
|
2018-02-17 19:15:54 +01:00 |
rlar
|
10aaa7bcc0
|
getword(), rename variables
|
2018-02-17 19:15:54 +01:00 |
rlar
|
ba4d81b2d9
|
getword(), reorder args
|
2018-02-17 19:15:54 +01:00 |
rlar
|
6ca0c74cbf
|
getword(), pass s_end instead of s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
3f24aa4ea0
|
getword(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
d17bcbc276
|
getword(), change signature
|
2018-02-17 19:15:54 +01:00 |
rlar
|
d3d966b027
|
getword(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
52ec0a262c
|
getword(), fix lvalue
|
2018-02-17 19:15:54 +01:00 |
rlar
|
2514664f7a
|
getword(), ls ==> ls_ptr - (const) s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
d5893cd1cb
|
getword(), fix lvalues
|
2018-02-17 19:15:54 +01:00 |
rlar
|
51dc7037d3
|
getword(), i ==> iptr - (const) s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
051c3f4137
|
getword(), third argument, `char **pi' instead of `int *pi'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
6ba5a05905
|
getword(), drop `after' argument which is identical to `*pi'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
cf9c3fc4f8
|
getword(), express some constness
|
2018-02-17 19:15:54 +01:00 |
rlar
|
6a72c09b5f
|
insertnumber(), return char pointer instead of integer index
|
2018-02-17 19:15:54 +01:00 |
rlar
|
34e37f393c
|
insertnumber(), rename s_ ==> s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
1f15329745
|
insertnumber(), drop second argument
|
2018-02-17 19:15:54 +01:00 |
rlar
|
9f6173cd0b
|
insertnumber(), add second arg on invocation
|
2018-02-17 19:15:54 +01:00 |
rlar
|
a2ddc6bf2a
|
insertnumber(), express some constness
|
2018-02-17 19:15:54 +01:00 |
rlar
|
b41b8e7138
|
insertnumber(), add `i' on invocation
|
2018-02-17 19:15:54 +01:00 |
rlar
|
160529cf59
|
insertnumber(), express some constness
|
2018-02-17 19:15:54 +01:00 |
rlar
|
e8bc7df5c3
|
insertnumber(), emphasize return i + ...
|
2018-02-17 19:15:54 +01:00 |
rlar
|
06501162e5
|
nupa_substitute(), make use of the transformations
|
2018-02-17 19:15:54 +01:00 |
rlar
|
2a446c2119
|
nupa_substitute(), use `strncasecmp()'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
c036fa0519
|
nupa_substitute(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
81cb1ed674
|
nupa_substitute(), drop s_
|
2018-02-17 19:15:54 +01:00 |
rlar
|
5416ecaab9
|
nupa_substitute(), rename iptr --> s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
18f69116e8
|
nupa_substitute(), verify `s' beeing unused now
|
2018-02-17 19:15:54 +01:00 |
rlar
|
03abdc65f5
|
nupa_substitute(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
53b23cf4b6
|
nupa_substitute(), transform pscopy(,x,y,) --> pscopy(,x+y,y-y,) (requirement strlen(x) >= y to be verified later)
|
2018-02-17 19:15:54 +01:00 |
rlar
|
8e69f7e70a
|
nupa_substitute(), cleanup
|
2018-02-17 19:15:54 +01:00 |
rlar
|
0bea4987c4
|
nupa_substitute(), fix lvalues
|
2018-02-17 19:15:54 +01:00 |
rlar
|
b47123ac6a
|
nupa_substitute(), i ==> iptr - (const) s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
b832578f0e
|
nupa_substitute(), fix lvalues
|
2018-02-17 19:15:54 +01:00 |
rlar
|
ccf34637b3
|
nupa_substitute(), k ==> kptr - (const) s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
551aae4b05
|
nupa_substitute(), drop ls
|
2018-02-17 19:15:54 +01:00 |
rlar
|
4af5a78bb5
|
nupa_substitute(), ls ==> s_end - (const) s
|
2018-02-17 19:15:54 +01:00 |
rlar
|
fb3a1be6a5
|
nupa_substitute(), express some constness
|
2018-02-17 19:15:54 +01:00 |
rlar
|
aa5d48da3b
|
nupa_substitute(), drop unused argument `err'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
e212566176
|
evaluate_variable(), change signature, pass substring instead of string
side effect:
string `t' is no longer globally upcased, which is is of no consequence
for the single place where evaluate_variable() is invoked
|
2018-02-17 19:15:54 +01:00 |
rlar
|
3f7951d187
|
evaluate_expr(), change signature, pass substring instead of string
|
2018-02-17 19:15:54 +01:00 |
rlar
|
7aa3664157
|
numparam, drop some typedefs
|
2018-02-17 19:15:54 +01:00 |
rlar
|
fa14255fc9
|
numparam, use `strtoupper()', drop `stupcase()'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
a0a3f48227
|
numparam/xpressn.c, remove an artifact
|
2018-02-17 19:15:54 +01:00 |
rlar
|
7b175dd1c4
|
numparam, drop unused `srcfile'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
15e8fab975
|
numparam, use `trunc()'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
31ca73a6f0
|
numparam, use `isdigit_c()'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
e88e75a8d4
|
numparam, use `toupper_c()'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
6a328ef609
|
numparam, drop `length()'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
15dd80c0e7
|
numparam, drop `cpos()'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
a9a8afa12d
|
numparam/xpressn.c, split `evaluate()' into two functions
|
2018-02-17 19:15:54 +01:00 |
rlar
|
6da961c3f1
|
numparam/xpressn.c, evaluate(), drop local `numeric'
and return instantly when formula() reports an error
|
2018-02-17 19:15:54 +01:00 |
rlar
|
7549b3409e
|
numparam/xpressn.c, abstraction, introduce `double_to_string()'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
6d4fc501bd
|
numparam/xpressn.c, evaluate_variable(), cleanup `for' loop
|
2018-02-17 19:15:54 +01:00 |
rlar
|
fdfaf0c84a
|
numparam/xpressn.c, don't mess the case of quoted strings
and drop `dico_t.option' which is nowhere set
|
2018-02-17 19:15:54 +01:00 |
rlar
|
23f6d51c67
|
numparam/xpressn.c, evaluate(), drop local `done' and `lq'
no longer limit the length of a quoted string parameter
|
2018-02-17 19:15:54 +01:00 |
rlar
|
e970e8c4ea
|
numparam/xpressn.c, evaluate(), drop `dt'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
00c3d2f79e
|
numparam/xpressn.c, drop `getidtype()'
|
2018-02-17 19:15:54 +01:00 |
rlar
|
1bf2590caa
|
numparam, #2/3, avoid global `nupa_inst_name'
|
2018-02-17 19:15:53 +01:00 |
rlar
|
ca4278685d
|
numparam, #1/3, avoid global `nupa_inst_name'
|
2018-02-17 19:15:53 +01:00 |
rlar
|
495eef349d
|
numparam/xpressn.c, nupa_subcktcall(), drop unused `err' argument
|
2018-02-17 19:15:53 +01:00 |
rlar
|
979175fbc6
|
numparam/xpressn.c, findsubckt(), drop unused `subname' argument
|
2018-02-17 19:15:53 +01:00 |
rlar
|
49e03cdcb2
|
numparam, entry_type, #5/5, rewrite to get rid of 'NUPA_SPACE'
use fact: 'entry' !== NULL
|
2018-02-17 19:15:53 +01:00 |
rlar
|
c761c74a22
|
numparam, entry_type, #4/5, drop 'nolookup' which has known value here
|
2018-02-17 19:15:53 +01:00 |
rlar
|
b7b6d9ace3
|
numparam, entry_type, #3/5, drop unused 'NUPA_POINTER'
'NUPA_POINTER' is nowhere assigned to storage
thus 'nupa_type' variables can never have this value
|
2018-02-17 19:15:53 +01:00 |
rlar
|
09d92ba692
|
numparam, entry_type, #2/5, use a type-checked enum for 'nupa_type'
|
2018-02-17 19:15:53 +01:00 |
rlar
|
6a1c9f934c
|
numparam, entry_type, #1/5, introduce typedef 'nupa_type'
|
2018-02-17 19:15:53 +01:00 |
rlar
|
1820f5547f
|
numparam/xpressn.c, #4/5, use a local 'c' instead of 'dt'
|
2018-02-17 19:15:53 +01:00 |
rlar
|
85f48726ea
|
numparam/xpressn.c, #3/5, whitespace
|
2018-02-17 19:15:53 +01:00 |
rlar
|
146ca72153
|
numparam/xpressn.c, #2/5, cleanup, drop 'err' and return early
|
2018-02-17 19:15:53 +01:00 |
rlar
|
303d78f616
|
numparam/xpressn.c, #1/5, cleanup, rewrite upside down
and use known variable values to instantly 'return'
instead of skipping some 'if' bodies
|
2018-02-17 19:15:53 +01:00 |
rlar
|
bc0782aba1
|
numparam, #4/4, defsubckt(), use struct card * argument
|
2018-02-17 19:15:53 +01:00 |
h_vogt
|
9f62057973
|
introduce include file "ngspice/randnumb.h"
|
2016-08-15 11:30:26 +02: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
|
ea0cd17974
|
numparam/xpressn.c, fix a warning
|
2016-03-09 20:24:36 +01:00 |
rlar
|
b137930330
|
xpressn.c, formula(), #6/6 simplify
|
2015-11-07 19:11:54 +01:00 |
rlar
|
a805fe6b56
|
xpressn.c, formula(), #5/6 whitespace and indentation
|
2015-11-07 19:10:25 +01:00 |
rlar
|
577352e6bb
|
xpressn.c, formula(), #4/6 move around
|
2015-11-07 19:09:44 +01:00 |
rlar
|
b156921ea0
|
xpressn.c, formula(), #3/6 refactor fetchid(), pass substring, include `upcase()'
|
2015-11-07 19:08:40 +01:00 |
rlar
|
1d9592c591
|
xpressn.c, formula(), #2/6 move dstring buildup out of `fetchid()'
|
2015-11-07 19:08:23 +01:00 |
rlar
|
d6ce788539
|
xpressn.c, formula(), #1/6 upside-down an `if..else..'
|
2015-11-07 18:59:07 +01:00 |
rlar
|
76aedfae40
|
numparam/xpressn.c, cleanup `getidtype()'
|
2015-10-11 14:21:04 +02:00 |
rlar
|
813024678d
|
numparam/xpressn.c, cleanup `fetchnumentry()'
|
2015-10-11 14:02:45 +02:00 |
rlar
|
c9e8c7651f
|
numparam/xpressn.c, cleanup `keyword()'
|
2015-10-11 11:56:35 +02:00 |
rlar
|
0390736faa
|
xpressn.c, fetchid(), #15/15 cleanup
|
2015-10-10 20:20:45 +02:00 |
rlar
|
ba9c7f060b
|
xpressn.c, fetchid(), #14/15 rewrite
|
2015-10-10 20:20:45 +02:00 |
rlar
|
ff74222538
|
xpressn.c, fetchid(), #13/15 local scope
|
2015-10-10 20:20:45 +02:00 |
rlar
|
9041bf93ca
|
xpressn.c, fetchid(), #12/15 use fact
|
2015-10-10 20:20:45 +02:00 |
rlar
|
c8020f4811
|
xpressn.c, fetchid(), #11/15 reorder
|
2015-10-10 20:20:44 +02:00 |
rlar
|
880b41bb7f
|
xpressn.c, fetchid(), #10/15 rewrite
|
2015-10-10 20:20:44 +02:00 |
rlar
|
16b53e3784
|
xpressn.c, fetchid(), #9/15 reorder
|
2015-10-10 20:20:44 +02:00 |
rlar
|
3fea077ebe
|
xpressn.c, fetchid(), #8/15 rewrite
|
2015-10-10 20:20:44 +02:00 |
rlar
|
aa87d90ba9
|
xpressn.c, fetchid(), #7/15 use fact
|
2015-10-10 20:20:44 +02:00 |
rlar
|
9a69f79feb
|
xpressn.c, fetchid(), #6/15 use fact
|
2015-10-10 20:20:44 +02:00 |
rlar
|
16496f8ff7
|
xpressn.c, fetchid(), #5/15 express some facts
|
2015-10-10 20:20:44 +02:00 |
rlar
|
cc68d8fadb
|
xpressn.c, fetchid(), #4/15 use fact
|
2015-10-10 20:20:44 +02:00 |
rlar
|
e8fa81e382
|
xpressn.c, fetchid(), #3/15 express some facts
|
2015-10-10 20:20:44 +02:00 |
rlar
|
7142e0e1fc
|
xpressn.c, fetchid(), #2/15 rename `iptr' --> `s'
|
2015-10-10 20:20:44 +02:00 |
rlar
|
af0ba9bed5
|
xpressn.c, fetchid(), #1/15 swap arguments
|
2015-10-10 20:20:44 +02:00 |
rlar
|
88bc7874f0
|
numparm, introduce `log10'
|
2014-09-12 19:09:56 +02:00 |
rlar
|
e1f0dc5893
|
numparam, nupa_define(), drop unused argument `pval'
|
2014-08-10 20:21:48 +02:00 |
rlar
|
c2028203a8
|
numparam, unify `entry' variable
|
2014-08-10 20:21:43 +02:00 |
rlar
|
a67b74ab9f
|
numparam, unify `dico' variable
|
2014-08-10 20:21:39 +02:00 |
rlar
|
e952500be3
|
numparam, rename `tdico' --> `dico_t'
|
2014-08-10 20:21:34 +02:00 |
rlar
|
f3ce5bde2c
|
numparam, rename `entry' --> `entry_t'
|
2014-08-10 20:21:29 +02:00 |
rlar
|
612777d79d
|
numparam, drop unused code
|
2014-08-10 20:21:19 +02:00 |
rlar
|
e0a74261ae
|
numparam, cleanup `symbols' reallocation
|
2014-08-09 20:51:02 +02:00 |
rlar
|
699ea93d1e
|
numparam, combine `symbols[0]' with `symbols[>0]' processing
|
2014-08-09 20:49:46 +02:00 |
rlar
|
8ee943e0c8
|
numparam, rename `local_symbols' --> `symbols'
|
2014-08-09 20:49:25 +02:00 |