Jim Monte
76cf00853c
Added conjugate function conj().
2020-01-04 15:29:13 +01:00
Jim Monte
b4bbcb1497
Made ft_numparse() thread-safe (no internal static variables) and prepared to support ngspice variable type CP_NUM.
2020-01-04 11:17:54 +01:00
Holger Vogt
b9901a2569
[PATCH 47] Refactored ft_getnames() and used the new function in
...
com_let().
2019-08-13 23:27:49 +02:00
Jim Monte
6bce493d25
Remove memory leak: If the check of the data fails, the data itself is leaked.
...
Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
2019-08-13 23:16:02 +02:00
Holger Vogt
f33c3f0751
remove memory leak, when ft_getnames ... free_pnode couple
...
parses a vector like v(1,2)
2018-10-13 18:18:23 +02:00
Holger Vogt
2dd293707b
initialize pn in ft_getpnames() parse.c
...
initialize dwLen in tesCreateSystemInfo() in com_sysinfo.c
Both were reported by MSVC Code Analysis
Crash of ngspice.dll in Eeschema is thus removed
(hopefully in general)
2018-07-21 23:55:00 +02:00
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
...
free->tfree, malloc->tmalloc, realloc->trealloc
2018-07-21 23:54:43 +02:00
h_vogt
ae80067fef
cmath2.c, new function stddev to calculate the standard deviation of all elements of a vector
2016-10-15 15:06:17 +02:00
Francesco Lannutti
ef0dcfe5f2
avoid bison dependency `version >= 2.7'
2016-07-09 20:58:17 +02:00
rlar
4c1c95e20f
everywhere, use `TMALLOC()' instead of `alloc()'
2016-03-21 21:22:07 +01:00
rlar
71a7c3459b
use char variants of the <ctype.h> isxxxx() family
2016-03-09 20:24:36 +01:00
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
2015-12-28 20:34:42 +01:00
rlar
1304001739
dvec abstraction, #6/11, emphasise `v_plot = NULL' initialisation
2015-12-28 20:34:42 +01:00
rlar
8a4a37b5bb
dvec abstraction, #4/11, emphasise `ZERO(dvec)' initialisation
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
08ad3f6ab5
dvec abstraction, #1/11, reorder
2015-12-28 20:34:42 +01:00
rlar
d632e3314d
frontend/parse.c, PP_mknnode(), reorder
2015-12-22 20:45:08 +01:00
rlar
876086f768
fix commit "frontend/parse.c, bug fix, PPlex(.."dc1.@m1[vth][1]"..)"
...
which broke
let something = foo[var]
notably used in
examples/Monte_Carlo/MC_ring.sp
2015-12-16 19:17:41 +01:00
rlar
29dde7206a
frontend/parse.c, introduce `alloc_pnode()'
2015-11-12 18:32:39 +01:00
rlar
45117c94fd
drop yyparse() prototypes, require bison >= 2.7 which emits them
2015-10-18 00:46:13 +02:00
rlar
a5f933b3ec
frontend/parse.c, bug fix, PPlex(.."dc1.@m1[vth][1]"..)
...
The whole string was lexed into only one TOK_STR
instead of the actual (quasi) identifier "dc1.@m1[vth]"
2015-09-24 18:25:25 +02:00
rlar
1c6efd9481
polish bison/flex makefile rules
2015-07-05 20:25:23 +02:00
rlar
5ac7858a79
rewrite, use tprintf
2015-03-28 20:10:29 +01:00
rlar
c6a8429258
src/maths/cmaths, implement `nint()' (.control language)
2014-09-20 17:15:10 +02:00
rlar
2602a492b2
fix `log' in `B' and in `.control', to base e instead of 10
...
In the B language this can be considered a bug fix.
In the .control language this is a severe change
and breaks backwards compatibility.
In all three languages 'numparam' 'B' and '.control' we now have
ln to the base e
log to the base e
log10 to the base 10
Thus log and log10 is now consistent
with the vast majority of programming languages.
ln is merely for convenience.
very few other languages have it.
I'd like to discourage its usage.
2014-09-12 19:18:11 +02:00
rlar
99eade8ec9
cleanup, rename cx_ln --> cx_log (.control language)
2014-09-12 19:09:52 +02:00
rlar
c926f46986
cleanup, rename rename cx_log --> cx_log10 (.control language)
2014-09-12 19:09:42 +02:00
Y.Niitsu
6e3f60c6bd
frontend/parse.c, allow nested `indexing', for example foo[bar[n]]
...
.control
compose ex1 values 111 222 333
compose ex2 values 1 2 3
print ex1 ex2 ex1[ex2[1]]
.endc
2014-04-02 21:14:10 +02:00
dwarning
075b620a86
introduce `cx_sortorder()' function
2013-12-31 16:18:52 +01:00
dwarning
4635a19ba9
introduce unwrap, minimum and maximum function
2013-12-31 16:13:17 +01:00
dwarning
6a3da0105b
fft and ifft as vector functions
2013-12-31 16:13:08 +01:00
rlar
f038d59fbe
mkfnode(), fix a memory leak
2012-10-17 19:39:02 +02:00
rlar
01ed0ac5d9
com_fft(), com_psd(), com_spec(), cleanup storage more thoroughly
...
use free_pnode() instead of free_pnode_o()
drop free_pnode_o()
2012-10-06 21:07:27 +02:00
rlar
ae5de92c69
cleanup db_print_pnode_tree()
2012-09-27 19:49:42 +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
15bda2b9e0
fix memory leak in PPparse()
2012-04-05 21:30:05 +02:00
rlar
f285dd0aa8
use strchr() instead of index()
2012-02-06 17:46:33 +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
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
2011-08-20 17:27:09 +00:00
h_vogt
2651fe4801
fuction cph(vector)
2011-08-06 15:15:56 +00:00
h_vogt
4679fdf046
sinh, cosh, tanh
2011-07-16 23:03:27 +00:00
h_vogt
1ea76af678
add statistical functions to numparam and nutmeg parsers
2010-12-28 19:01:30 +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
21a31ab2c2
tiny rewrite, make use of strtolower() and strtoupper()
2010-11-06 17:39:18 +00:00
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
2010-10-28 19:32:34 +00:00
rlar
882b3b4155
add `PT_OP_' prefix to avoid name collision (END, PLUS, MINUS, ...)
2010-10-09 14:26:41 +00:00
rlar
e945ab68bc
collect some cx_*() prototypes in "cmath2.h"
2010-10-08 18:59:41 +00:00