rlar
|
9cb20e97d0
|
xpressn.c, use enums instead of literals
|
2013-12-31 16:41:33 +01:00 |
rlar
|
297778127b
|
xpressn.c, drop "Defd" enum, to be incorporated into a bigger enum
|
2013-12-31 16:41:32 +01:00 |
rlar
|
76c7cd6fbd
|
xpressn.c, fix semantics of `int(x)' and remove dangerous macros
int(x) most probably shall be trunc(x) instead of floor(x)
note trunc(x) was #defined beeing floor(x)
note ln(x) was #defined beeing log(x)
|
2013-12-31 16:41:32 +01:00 |
rlar
|
2854fa71d4
|
fix an endless loop waiting for y/n when the input is at EOF
reported by Calin Andrian
Subject: [Ngspice-devel] Invaild number bug
|
2013-12-31 16:41:31 +01:00 |
rlar
|
467eb58244
|
xpressn.c, fix semantics of '&&' and '||'
these shall interpret a value as a bool according to (value != 0)
and these shall evaluate to either 1.0 or 0.0
|
2013-12-31 16:41:30 +01:00 |
rlar
|
f6d610a1b6
|
xpressn.c, whitespace cleanup
|
2013-12-31 16:41:30 +01:00 |
rlar
|
0a42a19b02
|
xpressn.c, fix `truth' for ternary_fcn()
0.0 is `false', everything else is `true'
|
2013-12-31 16:41:29 +01:00 |
rlar
|
589ded417a
|
update bison generated files
|
2013-12-31 16:41:29 +01:00 |
rlar
|
b32ae9f79b
|
.control and `B' parser, fix precedence of '-' versus '^'
-2^2 shall be -(2^2) instead of (-2)^2
|
2013-12-31 16:41:28 +01:00 |
h_vogt
|
ad5c09a865
|
remove unused code
|
2013-12-31 16:41:27 +01:00 |
rlar
|
a235b46795
|
inpcom.c, add missing condition `!comfile' for .title and .end processing
|
2013-12-31 16:41:25 +01:00 |
h_vogt
|
3c49c4eb8f
|
fix criterion to start `.lib' and `.global gnd' processing
|
2013-12-31 16:41:24 +01:00 |
rlar
|
10f651da35
|
inpcom.c: MSVC compatibility
|
2013-12-31 16:41:23 +01:00 |
rlar
|
dc2cd6fe01
|
inpcom.c, cleanup inp_readall() #7/7, drop misleading comment
|
2013-12-31 16:41:22 +01:00 |
rlar
|
11573327f4
|
inpcom.c, cleanup inp_readall() #6/7, tautology `call_depth == 0'
|
2013-12-31 16:41:22 +01:00 |
rlar
|
893e094faa
|
inpcom.c, cleanup inp_readall() #5/7, use `rv . line_number' itself
|
2013-12-31 16:41:21 +01:00 |
rlar
|
4b1cbd8c8b
|
inpcom.c, cleanup inp_readall() #4/7, move inp_read() epilog to inp_readall()
|
2013-12-31 16:40:38 +01:00 |
rlar
|
f29ef643dc
|
inpcom.c, cleanup inp_readall() #3/7, return `line_number' too
|
2013-12-31 16:26:15 +01:00 |
rlar
|
ab607102e6
|
inpcom.c, cleanup inp_readall() #2/7, move inp_read() prolog to inp_readall()
|
2013-12-31 16:26:14 +01:00 |
rlar
|
d598630b72
|
inpcom.c, cleanup inp_readall() #1/7, introduce inp_read()
|
2013-12-31 16:26:12 +01:00 |
rlar
|
9b7a5ab54d
|
bug fix, .include and .lib files don't have a `title' line
|
2013-12-31 16:26:11 +01:00 |
rlar
|
e2bc7b4d89
|
read_a_lib(), drop call_depth, its always zero
|
2013-12-31 16:26:05 +01:00 |
rlar
|
b19bd3fb3f
|
expand_section_references(), drop call_depth, its always zero
|
2013-12-31 16:26:03 +01:00 |
rlar
|
a009dfdbbe
|
harmonize delete_libs()
|
2013-12-31 16:26:02 +01:00 |
h_vogt
|
02555fbe99
|
bug reported by Yamamaya: revert deleting dicoS structure in inp.c and measure.c:
still to be used by 'listing param'
deletion moved to com_remcirc()
|
2013-12-31 16:26:01 +01:00 |
h_vogt
|
a2522def52
|
inpcom.c: patch provided by Krzysztof Blaszkowski
Allow spaces like { token } during parameter substitution
|
2013-12-31 16:25:59 +01:00 |
rlar
|
d5b1c4faa5
|
inpcom.c, rewrite, collapsing find_lib() into read_a_lib()
|
2013-12-31 16:25:58 +01:00 |
rlar
|
cf2f74c9e0
|
inpcom.c: '$' as end-of-line comment delimiter outside of .control section, '$ ' inside of .control section, # untabify
|
2013-12-31 16:25:57 +01:00 |
h_vogt
|
90a4be3a93
|
inpcom.c: '$' as end-of-line comment delimiter
outside of .control section,
'$ ' inside of .control section
|
2013-12-31 16:25:56 +01:00 |
h_vogt
|
bee18c3b25
|
inpcom.c: allow special characters in function names
|
2013-12-31 16:25:54 +01:00 |
rlar
|
a921b5444e
|
inpcom.c: patch provided by Simon Chang: correct function name substitution #2
|
2013-12-31 16:25:53 +01:00 |
h_vogt
|
2c38a69f92
|
inpcom.c: patch provided by Simon Chang: correct function name substitution
|
2013-12-31 16:25:52 +01:00 |
Krzysztof Blaszkowski
|
23cdd5e53f
|
inpcom.c: avoid segfault when `TABLE' is used without parentheses
|
2013-12-31 16:25:48 +01:00 |
rlar
|
bf9551287e
|
inp_stripcomments_line(), drop support for '--' comment style
seems to be not common in the spice world,
and interferes too much with mathematical expressions like
{3--2}
|
2013-12-31 16:25:46 +01:00 |
Krzysztof Blaszkowski
|
9d223d6778
|
execute ft_sigintr_cleanup() outside of the signal handler
to avoid execution of non-reentrant functions
|
2013-12-31 16:25:45 +01:00 |
Krzysztof Blaszkowski
|
1cf3dc81bb
|
abstraction, introduce ft_sigintr_cleanup()
|
2013-12-31 16:25:44 +01:00 |
Krzysztof Blaszkowski
|
fde7be49b9
|
ft_sigintr(), reorder, side effect: if `ft_setflag' then gr_clean() won't be invoked
and can't be invoked anyway
from inside of the signal handler
|
2013-12-31 16:25:43 +01:00 |
rlar
|
bbdf2a2da0
|
revert, msvc doesn't support `#warning'
|
2013-12-31 16:25:37 +01:00 |
h_vogt
|
8015442a22
|
inpcom.c: improved character check around 'temper'
|
2013-12-31 16:25:36 +01:00 |
rlar
|
feb43795b2
|
numparm, fix pow() implementation
|
2013-12-31 16:25:35 +01:00 |
rlar
|
1dda94fb7a
|
numparm, cleanup formula()
|
2013-12-31 16:25:34 +01:00 |
h_vogt
|
3fae8e0ba9
|
xpressn.c: add domain check for acosh, atanh replacement functions
|
2013-12-31 16:25:32 +01:00 |
rlar
|
2f508696a6
|
numparm, cleanup rewrite formula()
|
2013-12-31 16:25:31 +01:00 |
h_vogt
|
e5e08b6f93
|
xpressn.c: asinh, acosh, atanh replacement functions added
|
2013-12-31 16:25:30 +01:00 |
rlar
|
3e721d871a
|
xpressn.c, cleanup `maximize' operation
|
2013-12-31 16:25:29 +01:00 |
rlar
|
dbb8a76adb
|
xpressn.c, cleanup char index bistromatic
|
2013-12-31 16:25:27 +01:00 |
rlar
|
5db94276d3
|
sprinkle some constness
|
2013-12-31 16:25:26 +01:00 |
rlar
|
d3c0b7f5fa
|
xpressn.c, use symbolic `state' constants
|
2013-12-31 16:25:25 +01:00 |
rlar
|
b232a25fb6
|
xpressn.c, prepare
|
2013-12-31 16:25:24 +01:00 |
rlar
|
37e4ec8f05
|
inpcom.c, emphasize the inp_readall() tail processing
|
2013-12-31 16:25:22 +01:00 |
rlar
|
632add21c5
|
inpcom.c, delete_libs() can use line_free_x() now
|
2013-12-31 16:25:21 +01:00 |
rlar
|
6a466f7490
|
line_free_x(), prevent stack overflow due to non-trivial recursion
|
2013-12-31 16:25:20 +01:00 |
rlar
|
b3cb5cedd5
|
inpcom.c, local scope for `ipc_status'
|
2013-12-31 16:25:18 +01:00 |
rlar
|
cb932803b6
|
inp_fix_ternary_operator_str, pinpoint serious bugs
|
2013-12-31 16:25:17 +01:00 |
rlar
|
dfcbc52ee6
|
inp_fix_ternary_operator_str, use a local variable to improve readability
|
2013-12-31 16:25:16 +01:00 |
rlar
|
7452971177
|
inp_fix_ternary_operator_str, use `copy_substring()'
|
2013-12-31 16:25:14 +01:00 |
rlar
|
92f9d7a309
|
inp_fix_ternary_operator_str, limit backward search
|
2013-12-31 16:25:13 +01:00 |
rlar
|
b51fe0eb8b
|
inp_fix_ternary_operator_str, cleanup
|
2013-12-31 16:25:12 +01:00 |
rlar
|
1883edb12b
|
xpressn.c, tan, asin, acos, atan, asinh, acosh, atanh, pwr, tanh
add tan() asin() acos() atan() asinh() acosh() atanh()
rewrite pwr() and tanh()
|
2013-12-31 16:25:11 +01:00 |
rlar
|
b40f748ccc
|
inp_fix_ternary_operator_str(), rewrite
|
2013-12-31 16:25:09 +01:00 |
rlar
|
3e3cbab668
|
inp_search_opening_paren(), rewrite
|
2013-12-31 16:25:08 +01:00 |
rlar
|
87f53913bd
|
inp_search_opening_paren(), cleanup
|
2013-12-31 16:25:07 +01:00 |
rlar
|
23b4722bc0
|
inp_search_opening_paren(), static scope instead of local C99 scope
|
2013-12-31 16:25:05 +01:00 |
rlar
|
0ab86ddaf0
|
inp_fix_ternary_operator_str(), abstraction, new function inp_search_opening_paren()
|
2013-12-31 16:25:04 +01:00 |
rlar
|
bdd65ddb89
|
inp_fix_ternary_operator_str(), local scope for str_ptr3
|
2013-12-31 16:25:03 +01:00 |
rlar
|
0260a5b61a
|
cleanup
|
2013-12-31 16:25:01 +01:00 |
rlar
|
c32b6934a3
|
cleanup
|
2013-12-31 16:25:00 +01:00 |
h_vogt
|
0d1666da29
|
inpcom.c: repeated call to inp_fix_ternary_operator_str
in inp_fix_ternary_operator, only lines beginning with .
selected, comments updated
|
2013-12-31 16:24:59 +01:00 |
rlar
|
4a20c45db2
|
inp_fix_ternary_operator_str(), rewrite using strchr()
|
2013-12-31 16:24:58 +01:00 |
rlar
|
246dc2e614
|
inp_search_closing_paren(), finally fold them
|
2013-12-31 16:24:56 +01:00 |
rlar
|
a683431d57
|
inp_search_closing_paren(), rewrite, considering the assertion
|
2013-12-31 16:24:55 +01:00 |
rlar
|
3b5c475216
|
inp_search_closing_paren(), increase similarity
|
2013-12-31 16:24:54 +01:00 |
rlar
|
59be847d28
|
inp_search_closing_paren(), rewrite
|
2013-12-31 16:24:52 +01:00 |
rlar
|
ff2e850f1c
|
inp_search_closing_paren(), rewrite
|
2013-12-31 16:24:51 +01:00 |
rlar
|
77478d8286
|
inp_search_closing_paren(), rewrite
|
2013-12-31 16:24:50 +01:00 |
rlar
|
f8a06900c2
|
inp_search_closing_paren(), cleanup
|
2013-12-31 16:24:48 +01:00 |
rlar
|
8c68b0194d
|
inp_search_closing_paren(), drop found_paren, its always true
|
2013-12-31 16:24:47 +01:00 |
rlar
|
c1594627b4
|
inp_search_closing_paren(), cleanup
|
2013-12-31 16:24:46 +01:00 |
rlar
|
1a66841e36
|
inp_fix_ternary_operator_str(), cleanup
|
2013-12-31 16:24:44 +01:00 |
rlar
|
be4ce38eff
|
inp_search_closing_paren(), static scope instead of local C99 scope
|
2013-12-31 16:24:43 +01:00 |
rlar
|
3f52f88244
|
inp_fix_ternary_operator_str(), abstraction, new function inp_search_closing_paren()
|
2013-12-31 16:24:05 +01:00 |
rlar
|
2c74e02d42
|
inp_fix_ternary_operator_str(), prepare for abstraction
|
2013-12-31 16:24:04 +01:00 |
rlar
|
3c71863c05
|
inp_fix_ternary_operator_str(), local scope for `count'
|
2013-12-31 16:24:02 +01:00 |
h_vogt
|
6dc46a56b1
|
inpcom.c: hot fix for ternary function for numparam
|
2013-12-31 16:24:01 +01:00 |
rlar
|
468dcd8f4d
|
avoid `enumerated type mixed with another type' compiler warning
|
2013-12-31 16:23:59 +01:00 |
h_vogt
|
23c8a027f6
|
inpcom.c: some cleanups
|
2013-12-31 16:23:05 +01:00 |
rlar
|
e2c0303865
|
avoid `unreachable code' warnings
|
2013-12-31 16:21:46 +01:00 |
rlar
|
5ec3042c19
|
FastNorm3.c, use int32_t for some 32 bit specific operations
|
2013-12-31 16:21:45 +01:00 |
h_vogt
|
8da34ab7c6
|
inpcom.c: plug a memory leak, add some comments
|
2013-12-31 16:21:42 +01:00 |
dwarning
|
a05f9f3489
|
remove unused variable sign
|
2013-12-31 16:21:41 +01:00 |
h_vogt
|
35b49bc016
|
inpcom.c: plug two memory leaks
|
2013-12-31 16:21:37 +01:00 |
h_vogt
|
1096d60e53
|
inpcom.c: exclude command 'echo' and some others
from lower case letter transformation
|
2013-12-31 16:19:53 +01:00 |
h_vogt
|
b821e7e6cf
|
xpressn.c, numparam.h: fcn del_attrib with void* argument,
required by nghash_free()
|
2013-12-31 16:19:52 +01:00 |
h_vogt
|
61fefe31bb
|
inpcom.c: move delete_libs to a safer place outside of recursions
|
2013-12-31 16:19:51 +01:00 |
h_vogt
|
750b42e767
|
inpcom.c: add fcn delete_libs to free libraries[]
|
2013-12-31 16:19:48 +01:00 |
h_vogt
|
fe7a61c612
|
inpcom.c: plug memory leak
|
2013-12-31 16:19:47 +01:00 |
rlar
|
7528d45740
|
inp_expand_macro_in_str() needs recursive invocation to expand macros
|
2013-12-31 16:19:45 +01:00 |
rlar
|
534694645d
|
counteract the tfree(macro_str) introduced in 'inpcom.c: plug memory leaks'
this one:
commit 810f72f850f8177275f17fc635d97b71b911ec0d
Author: h_vogt <h_vogt>
Date: Sun Sep 8 13:01:26 2013 +0200
inpcom.c: plug memory leaks
|
2013-12-31 16:19:44 +01:00 |
h_vogt
|
a737ab1743
|
inpcom.c: fix a bug in ternary function
|
2013-12-31 16:19:43 +01:00 |
h_vogt
|
1edb51ccb7
|
inpcom.c: cleanup
|
2013-12-31 16:19:42 +01:00 |