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
rlar
30fc375e2c
numparam, use `local_symbols[0]' instead of `global_symbols'
2014-08-09 20:48:56 +02:00
rlar
cdf4623b6f
xpressn.c, whitespace
2014-08-09 19:38:29 +02:00
rlar
4592c1af97
xpressn.c, reorder `dicostack_pop()'
2014-08-09 19:38:25 +02:00
rlar
f4480c1cb9
xpressn.c, split `dicostack()' into `dicostack_push()' and `dicostack_pop()'
2014-08-09 19:38:18 +02:00
rlar
9973b3d1f8
xpressn.c, rename `define()' --> `nupa_define()'
2014-08-09 19:38:14 +02:00
rlar
da6790e68d
numparam, change np_trunc() and np_round() return type to double
2014-06-26 19:50:05 +02:00
rlar
4abb068405
xpressn.c, use fabs()
2014-06-26 19:50:03 +02:00
rlar
bf3888c490
numparam, drop "//" comment processing (already done in inpcom.c)
2014-06-24 18:20:18 +02:00
rlar
80b0ac22a4
xpressn.c, rewrite message() usage
2014-06-24 18:20:12 +02:00
rlar
f2093b17e8
parseunit(), support 'T' for "Tera"
...
in response to a bug report by Andy Fierman
"#273 T = Tera = 1e12 suffix is ignored when used in a parameter in a subcircuit."
http://sourceforge.net/p/ngspice/bugs/273/
2014-01-11 16:24:21 +01:00
rlar
d225c4f958
xpressn.c, introduce fortran style nint() rounding function
2014-01-02 09:33:21 +01:00
h_vogt
8ad6bd209d
replacements for functions missing in the msvc world
2014-01-02 09:31:10 +01:00
rlar
492f1f006c
numparam, almost full precision for stringified double float numbers
2014-01-02 09:25:48 +01:00
rlar
6a2060e472
xpressn.c, drop initkeys()
2013-12-31 16:42:06 +01:00
rlar
7463410a5e
xpressn.c, drop "AND OR NOT DIV MOD DEFINED" keywords
2013-12-31 16:42:05 +01:00
rlar
6b1363dcf7
xpressn.c, use C strings for the arguments of `keywords()'
2013-12-31 16:42:04 +01:00
rlar
a855a19d2c
xpressn.c, drop '&' and '|' operators, (we have '&&' and '||')
2013-12-31 16:42:04 +01:00
rlar
ef3580d590
xpressn.c, whitespace cleanup
2013-12-31 16:41:35 +01:00
rlar
1ac45bfd57
xpressn.c, implement a?b:c in the "formula" parser
2013-12-31 16:41:34 +01:00
rlar
1b959e6a50
xpressn.c, drop XFU_V
...
probably accidentally introduced in commit
> Author: h_vogt <h_vogt>
> Date: Sun Feb 7 11:27:59 2010 +0000
>
> improved numparam error message
2013-12-31 16:41:34 +01:00
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
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
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
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
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
94595c06df
spicenum.c, xpressn.c: plug setup memory leak
...
by adding user defined delete function for hash table entries
2013-12-31 16:18:56 +01:00
h_vogt
49c1385ba6
bug fix, `#248 Subcircuit call cannot have a node with same name as the subcircuit'
...
reported by Henrik Forstén
http://sourceforge.net/p/ngspice/bugs/248/
2013-12-31 16:12:48 +01:00
h_vogt
d4d3910e5a
xpressn.c: reduce number of (forbidden) keywords
...
to what is actually used
2013-12-31 16:09:38 +01:00
Francesco Lannutti
1dc70189a7
remove compilation warnings (type casts)
2012-10-26 18:04:44 +02:00
dwarning
2506fe3858
changed the #include order - ngspice.h must be first
...
because icc complains about declaration visibility of mmsghdr struct
2012-09-29 20:44:12 +02:00
rlar
c0e2d4abef
src/frontend/**, whitespace,
...
object files will change, due to __LINE__ usage
2012-09-20 20:32:02 +02:00
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
2012-09-20 20:30:53 +02:00
rlar
d8105873db
remove error.h, use fteext.h for controlled_exit()
2012-06-12 21:26:29 +02:00
rlar
f17b14102c
bug fix, incorrect '%le' printf format specifier
2012-01-08 10:26:36 +00:00
h_vogt
75767fcc3d
floor(), ceil() added
2011-12-26 11:34:21 +00:00
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
2011-12-13 19:57:45 +00:00
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
2011-12-11 18:05:00 +00:00
rlar
8f09de4e4a
bug fix, parameter assignment was broken for expressions containing one of '<=' '>=' or '!='
2011-12-03 09:10:07 +00:00
rlar
e42fa8ba06
swallow warnings
2011-10-31 10:53:51 +00:00
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
2011-08-20 17:27:09 +00:00
h_vogt
1cbe685d4c
include path for error.h
2011-08-11 16:39:37 +00:00
h_vogt
57c9b44c73
inproved error messages in pipe mode
2011-08-10 16:39:46 +00:00
rlar
0892d04c8a
explicit `int' casts for some ptrdiff_t expressions, where an `int' seems to be big enough
2011-07-09 19:45:22 +00:00
rlar
1876ad1094
remove unused global artifact `dynLlen'
2011-07-09 18:45:54 +00:00
rlar
451f88c5e1
swallow type conversion warnings
2011-06-24 15:26:52 +00:00
h_vogt
f94cc3a8a0
comp issues
2011-05-29 10:07:10 +00:00
rlar
701027b1ff
numparm, remove unused artifacts
2011-02-19 15:11:53 +00:00
rlar
70c97e12bb
numparm, un-pascal-ify, ws() wln()
2011-02-19 15:08:20 +00:00
rlar
18352e827d
numparm, cleanup, (())
2011-02-19 15:06:13 +00:00
rlar
49b7e340d5
numparm, cleanup, {}
2011-02-19 15:04:09 +00:00
rlar
b48b6a3474
numparm, rewrite some conditional expressions
2011-02-19 15:01:49 +00:00
rlar
7ad47870ef
numparm, un-pascal-ify, use '\0'
2011-02-19 14:56:40 +00:00
rlar
999d69731a
numparm, 17 digit placeholders --> numparm__XXXXXXXX dummy symbols
2011-02-19 14:49:07 +00:00
rlar
1ab4158abd
numparm, upgrade message() to accept format strings
2011-02-19 14:45:42 +00:00
rlar
76a7f5b5f7
numparm, shrink scope for dstrings, mostly message() related
2011-02-19 14:43:35 +00:00
rlar
90f4a2137b
numparm, cleanup parseunit() and fetchnumber()
2011-02-19 14:37:40 +00:00
rlar
24cdf89344
reinstate a missing if(numerical), which got lost
2011-02-13 20:24:10 +00:00
rlar
f6ed60844f
part 2, the actual change
2011-02-13 19:20:34 +00:00
rlar
35c36b1590
part 1, whitespace and indentation, nothing else
2011-02-13 19:19:02 +00:00
rlar
5a3f5ac03d
undo the last commit, with the sole purpose to seperate it into two commits
2011-02-13 19:17:23 +00:00
h_vogt
bb5ea06be4
start cleanup numparam
2011-02-13 15:16:48 +00:00
h_vogt
1ea76af678
add statistical functions to numparam and nutmeg parsers
2010-12-28 19:01:30 +00:00
rlar
e6c30efe46
Nr 4/5 (x = ...) != NULL , swallow warnings
2010-11-19 18:52:44 +00:00
rlar
abb87a6115
rename `IGNORE()' --> `NG_IGNORE()'
2010-11-16 20:38:24 +00:00
rlar
80286e0032
pour `IGNORE()' all over the source
2010-11-16 19:11:32 +00:00
rlar
96992f770a
use the type `bool' instead of `unsigned char' in the numparam world
2010-11-02 17:55:32 +00:00
rlar
b4ffca60c4
(int) casts for some `strlen()' expressions
2010-11-02 17:17:43 +00:00
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
2010-10-28 19:32:34 +00:00
rlar
b5f1a18f7c
ngspice_compat_mode() prototype --> include files
2010-10-08 18:15:04 +00:00
rlar
4d31d2a12f
some .c file local prototypes
2010-10-08 18:05:00 +00:00
h_vogt
fc2df06f9b
bug no. 3047884
2010-08-19 19:48:00 +00:00
rlar
4cdd842cd8
muffle compiler warnings
2010-07-24 18:51:06 +00:00
rlar
62c6626254
add casts for void* returning functions
2010-07-11 19:34:15 +00:00
rlar
3369d860b4
cast the return values of malloc() function calls
2010-07-01 19:52:23 +00:00
rlar
a14e59866e
ansi function declarations (prototypes)
2010-06-23 19:33:54 +00:00
h_vogt
e66ef33c57
ngspice compatibility mode
2010-04-23 22:00:40 +00:00
dwarning
112261297d
Bill Swartz patch
2010-03-25 22:44:37 +00:00
h_vogt
85788591ff
remove 291,292
2010-03-16 23:10:18 +00:00
h_vogt
9bdf85c43c
fcn sgn()
2010-03-07 15:59:08 +00:00
dwarning
f210758bdb
applied patch to prevent sun cc warnings
2010-03-01 10:28:22 +00:00
h_vogt
75d891e4c0
new parser for B source
2010-02-28 16:00:40 +00:00
h_vogt
76feebbbfa
various bug fixes
2010-02-25 21:43:03 +00:00
dwarning
25ebb25269
correct the 15 digit placeholder
2010-02-22 21:00:16 +00:00
h_vogt
f1a4f27d21
improved numparam error message
2010-02-07 11:27:59 +00:00
h_vogt
005dae2462
more characts for real number params
2010-01-29 22:33:59 +00:00
dwarning
b995267b29
prevent int to unsigned compare
2009-12-18 16:59:54 +00:00
h_vogt
13819432bd
flag for compatibility mode
2009-11-15 21:22:04 +00:00
dwarning
15883a251d
allow numbers < 1e-30 in fmttype, now everything < 1e-39 is 0
2009-11-08 09:25:31 +00:00
h_vogt
6053c50723
mempool.c, hash.c compatmode.c removed (Preliminary)
2009-08-23 14:45:23 +00:00
h_vogt
9f1ee290a4
new code for .measurement
2009-08-23 10:02:28 +00:00
h_vogt
b399caf9bc
.meas patches by Bill Swartz added
2009-08-08 20:12:46 +00:00
h_vogt
4f05c8da9d
suppression of message "cannot redefine"
2009-04-26 06:39:34 +00:00
h_vogt
12bf33431c
keep dico structure
2009-04-12 18:04:47 +00:00
h_vogt
624a8a0be0
Dynamic memory allocation for numparam
2009-03-22 21:03:02 +00:00
h_vogt
3a319212f3
numparam dynamic memory allocation, part 1
2009-03-15 15:08:04 +00:00
h_vogt
0e61b7ccc0
collect info for dyn. mem arrays in numparam
2009-03-07 15:49:51 +00:00
h_vogt
67bf8c93cc
incomptibility to MAC OSX removed
2009-01-31 14:32:12 +00:00
h_vogt
e7fe33ece8
random number generation organized
2008-11-29 20:21:56 +00:00
h_vogt
277009c926
agauss sinh cosh tanh added
2008-11-26 20:31:50 +00:00
saintel
6fe0cebe58
*** empty log message ***
2008-11-22 10:31:46 +00:00
dwarning
2bd4f90b47
use well defined macros for min/max instead of fct's
2008-11-19 19:47:04 +00:00
h_vogt
4b055a4ca8
Small changes to allow compilation with MS Visual C++ 2008
2008-09-21 22:18:06 +00:00
dwarning
70e9121bbb
more precise recognition of subckt names
2008-01-19 21:35:44 +00:00
dwarning
e4091fd55c
fixing memory problems in nupa_substitute and other
2007-12-27 16:57:04 +00:00
pnenzi
a9b85b3405
Downgraded to standard C syntax.
2007-12-26 16:55:27 +00:00
dwarning
a13e93f5b7
placeholder for agauss (y=nominal_value)
2007-12-09 21:07:14 +00:00
dwarning
cce47bb50d
fix the arg order for pow
2007-11-28 17:20:39 +00:00
dwarning
140b5d5e28
pow function included
2007-11-25 20:00:30 +00:00
dwarning
3ac53eef55
prevent warning by cast
2007-11-17 22:27:07 +00:00
pnenzi
3097c4e04b
Improvements in numparam from Phil Barker
2007-10-08 14:52:25 +00:00
pnenzi
985d977197
Applied Steven Borley patch for numparam and frontend. See Changelog.
2005-04-24 21:17:31 +00:00
pnenzi
1aa04ca10b
Fixed numparam library (Steven Borley) and corrected bug in node translation (Hitoshi Tanaka).
2005-04-16 22:45:32 +00:00
pnenzi
feedbaf092
Added numparam library (contributed by Georg Post) to add .param to spice
...
netlists.
2003-09-25 17:19:44 +00:00