Holger Vogt
b62bb20e6f
Increase the allowable node name length from 24 to 256.
Enable safe copying, no user induced buffer overflow.
2 years ago
Holger Vogt
d6aeb6cd94
Set up the matrix according to branch KLU-6+11-rebase-master-28_10_2020
All cpl example files from ngspice\examples\TransmissionLines are o.k.
4 years ago
Francesco Lannutti
02e7c1c5b0
KLU branch rebased upon master @ 3 Feb 2022
Some merge conflicts have not been solved yet
Please look for >>>> HEAD if you want to solve them
4 years ago
Francesco Lannutti
88074a23c9
Fixed 2 files due to rebasing KLU branch on the master branch - 8/7/2020
6 years ago
rlar
e73dae237e
Added CPL Model to KLU
10 years ago
Holger Vogt
a420f58ef5
Plug a (potential) memory leak
Add missing memsaved
4 years ago
Holger Vogt
69e2903bf6
Update to Garbage Collector for cpl
Update some comments
Insert the deleting functions
Reset pool_vi and ndn_btree
Add an example with 20 call to cpl in sequence
5 years ago
Holger Vogt
041264df03
No more meory leaks with existing cpl examples:
Add cpldelete.c and cplmdel.c
Delete the model parameters.
Add 2 missing memsaved().
5 years ago
Holger Vogt
d2dd1950cb
Add memsaved() to TMALLOC, calloc and replace CPLTFREE for tfree
5 years ago
Holger Vogt
de00317e49
Add memsaved or memdelete to macros
5 years ago
Holger Vogt
8c5277a5e8
Re-format cplsetup.c
5 years ago
Holger Vogt
b142f2eb9d
Add mem_init() and mem_delete() to setup and unsetup functions
5 years ago
Holger Vogt
3be7370fa8
Add header with extern function prototypes
5 years ago
Jim Monte
6d3ab5945e
variable redefinition removed
6 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
rlar
bcf00ade06
cpl/cplsetup.c, cleanup VECTOR_ALLOC and MATRIX_ALLOC
swap first two arguments for readability
8 years ago
rlar
2dcb79d09c
GENmodel, GENinstance, change layout, #1/4, coccinelle semantic patch
8 years ago
rlar
0c86adf9af
src/spicelib/devices/*/*set.c, XXXunsetup(), sort CKTdltNNum() invocations
Invoke CKTdltNNum() in reverse order of local node creation in XXXsetup()
This fixes a bug at least in mesa and hfet1,
where already destroyed node variables have still been accessed
in the guarding 'if' of a later CKTdltNNum() stanza.
Invoking them in revers order easily prevents such bugs,
and improves readability.
9 years ago
rlar
07d89b5fcd
devices/**, unify structure member variables, ptr -> Ptr
10 years ago
rlar
a6cb9d0d88
cplsetup.c, polish VECTOR_ALLOC and MATRIX_ALLOC
explicitly express the object type to be allocated
9 years ago
rlar
15f2c67968
use M_PI
10 years ago
rlar
34f8841805
cpl/cplsetup.c, cleanup
10 years ago
rlar
bd0bc3038b
use `SWAP' macro
10 years ago
rlar
d47f073550
txl/txlsetup.c, cpl/cplsetup.c, avoid warning, rename nested local `x1'
10 years ago
rlar
9e237d700e
txl/txlsetup.c, cpl/cplsetup.c, rename static variable `ndn' --> `ndn_btree'
10 years ago
rlar
aa7a7606c7
avoid multiple declarations of controlled_exit(), add 'noreturn' attribute
13 years ago
rlar
ea7372efe7
rewrite, useing IFerrorf()
OUTerror() and IFerror() are no more used,
but kept for compatibility
12 years ago
rlar
14687910d9
rewrite `TSTALLOC()' macro for auto indentation
checked for object code invariance
13 years ago
h_vogt
b216db8ffd
cplsetup.c: indentations etc.
14 years ago
h_vogt
d747f0de50
cplsetup.c: remove memory leaks
14 years ago
rlar
a394d79c56
use utf-8 encoding
14 years ago
rlar
d8105873db
remove error.h, use fteext.h for controlled_exit()
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
15 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
b778c50bd6
code cleanup, some warnings, some casts, ...
15 years ago
rlar
23056573d8
code cleanup, drop NULL pointer casts
15 years ago
rlar
0b6a557334
code cleanup
15 years ago
rlar
abb87a6115
rename `IGNORE()' --> `NG_IGNORE()'
16 years ago
rlar
80286e0032
pour `IGNORE()' all over the source
16 years ago
rlar
01566f2b49
add casts to make `int' versus `size_t' conversions explicit
16 years ago
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
16 years ago
rlar
5e8e44cc0a
cast the tmalloc, MALLOC, return value
16 years ago
rlar
3369d860b4
cast the return values of malloc() function calls
16 years ago
rlar
a14e59866e
ansi function declarations (prototypes)
16 years ago
h_vogt
8ddd172cc9
tmalloc patch R Larice
16 years ago
dwarning
abe7a63311
omit icc complains
16 years ago
dwarning
ba54c4d9b8
big kspice model update
16 years ago
dwarning
8585a00243
controlled_exit implementation
16 years ago
dwarning
b0b8624bfc
using a controlled_exit
16 years ago
dwarning
0b3c133233
few polishments
16 years ago