Holger Vogt
9a2d968577
When transferring boolean data over the ABI, keep them as boolean types, not integer
...
Replace the type of all boolean variables around the ABI by NG_BOOL.
NG_BOOL is typedefed to _Bool, when compiling shared ngspice. When
sharedspice.h is use externally NG_BOOL is typdefed to bool
2021-08-03 15:57:58 +02:00
Holger Vogt
14402ffc96
Update to
...
6034c2bcd ("Internal global variable Infile_Path
is a file search path made available for the code models.
It is set when command 'source' is used.", 2021-04-17)
Correct path to variable.h
2021-07-05 14:17:01 +02:00
Holger Vogt
ba262eaa5f
Internal global variable Infile_Path is a file search path made
...
available for the code models. It is set when command 'source' is used.
This patch makes the first entry in var 'sourcepath' available to
the code models as well by setting Infile_Path, when 'sourcepath'
is set in .spiceinit.
2021-07-05 14:02:51 +02:00
Holger Vogt
99a7bfd8fe
Move version info from sharedspice.c to sharedspice.h
2021-02-21 16:47:19 +01:00
Holger Vogt
65a47d3276
Remove compiler warnings: CIDER debug flags are used as int
...
FIXME: Why arer they defined as BOOLEAN in main.c
without generating a warning?
2021-01-29 10:46:10 +01:00
Holger Vogt
8de513e8e9
ngspice.exe and .dll (.so): seperate the main files:
...
main.c now belongs to exe, sharedspice.c to dll (so)
2021-01-26 18:17:59 +01:00
Holger Vogt
eedb5b9027
Update for ngspice-34
2021-01-03 08:47:47 +01:00
Holger Vogt
89f0fb6d74
sharedspice: make reading .spiceinit as robust as in
...
the standard executable.
2021-01-02 19:11:51 +01:00
Holger Vogt
83fef9306f
re-enable .end with leading spaces
...
a fix to bug #534
2020-12-22 17:56:18 +01:00
Holger Vogt
87751ad073
Make the ngSpice_Circ(char** circa) more robust:
...
Error message when .end card is missing
Reset if .end card is missing, to allow loading
a netlist again.
NULL as last element is no longer required, but .end card
(this has been implicitedly assumed).
Remove a bug that skippoed the last line (the .end card).
2020-12-22 17:56:18 +01:00
Holger Vogt
d14e53b0dd
Prepare ngspice-33
2020-10-11 22:30:57 +02:00
Holger Vogt
f9f8174cb8
enable debug output, taking into account that there may be two threads
...
accessing fcn SetAnalyse()
2020-08-20 15:40:16 +02:00
Holger Vogt
ce69e8d70c
Don't send the empty line to create_circbyline(),
...
it is not used anymore and may cause a crash
2020-08-20 15:29:21 +02:00
holger
061e48253b
definitely exclude command completion in shared ngspice
2020-08-20 15:22:26 +02:00
Holger Vogt
ce72667fcd
shared lib version 32
2020-08-20 15:20:19 +02:00
Holger Vogt
0cd33d3fbb
correct zeroing of allplots array
2020-04-25 10:27:49 +02:00
Holger Vogt
b3fdff7bc0
Spice_Build_Date is never NULL
2020-04-23 13:30:55 +02:00
Holger Vogt
2f31bd5c2a
avoid compiler warning
2020-04-04 14:20:16 +02:00
Holger Vogt
9edc436ef7
remove SIGINT handling which was not functional
...
add SIGSEGV handler which may be excluded by
set nosighandling
2020-04-04 14:19:55 +02:00
Holger Vogt
c86cd740d6
fix a bug: re-enable reading vecs with length 1
...
Bug reported by LM
2020-04-04 14:15:55 +02:00
Holger Vogt
ded0092ad6
If ngSpice_Command(NULL) is sent to shared ngspice,
...
the internal control structure memory is freed.
2020-04-04 14:15:38 +02:00
Holger Vogt
0ad7acadec
remove unreachable code warning, add const
2020-03-15 08:51:03 +01:00
Holger Vogt
eb667118cf
If there are no controls, just skip creating the controls thread.
2019-10-05 13:17:11 +02:00
Holger Vogt
a4402f1da7
prevent potential false reads if 'controlswait' is set.
2019-10-05 13:16:40 +02:00
Holger Vogt
840d00c4ca
no actions if controls thread tid2 is not set
2019-09-28 12:01:09 +02:00
Holger Vogt
9e427a1a1e
Better thread handling
...
Embed thread tid2 into tid1
Avoid spurious thread collisions
2019-09-28 12:00:57 +02:00
Holger Vogt
cf752bf730
Revert "encapsulate fcn calls to cp_evloop into a mutex"
...
This reverts commit 2426a037db .
2019-09-28 12:00:23 +02:00
Holger Vogt
acd0c7156c
return immediately if empty commands are sent
2019-09-20 19:22:47 +02:00
Holger Vogt
2426a037db
encapsulate fcn calls to cp_evloop into a mutex
...
thus preventing thread collisions
2019-09-20 19:21:56 +02:00
Holger Vogt
0b92a15ae8
safeguard against vectors with 0 length
2019-08-13 23:33:28 +02:00
Holger Vogt
c35879d3cf
prepare ngspice-30
2018-12-23 13:55:45 +01:00
Holger Vogt
2c7860361d
Prevent segfault if SendStat is NULL and HAVE_FTIME is undefined.
...
Patch no. 28 offered by Liang Chang
2018-12-17 23:07:41 +01:00
Holger Vogt
3f816d7f1b
add comment
2018-12-17 23:07:19 +01:00
Holger Vogt
a98f6ac69b
proper initialization of OldAn, callback only
...
if output has changed
2018-12-17 23:07:00 +01:00
Holger Vogt
0f552fc4f8
sharedspice.c, prevent crash, if controlswait is set
...
and a next bg_run before controls are ready.
2018-12-17 23:06:49 +01:00
Holger Vogt
98a5106015
simplify and re-enble MINGW
2018-12-17 23:05:55 +01:00
Holger Vogt
2a2a7c2d36
sharedspice.c, NS Windows, use only POSIX compliant snprintf
...
make OldAn a zero terminated string
2018-12-17 23:05:41 +01:00
Holger Vogt
0828a8e706
new command bg_ctrl initializing the .control executing thread
...
pthreads: using detached threads only
keep controls during 'reset', delete only upon 'quit'
2018-12-17 23:05:25 +01:00
Holger Vogt
f6b995b80e
remove unused fcn declaration
2018-12-17 23:05:05 +01:00
Holger Vogt
6f79db19d1
pthreads: suspend thread 3 (controls) with a condition variable
2018-12-17 23:04:57 +01:00
Holger Vogt
e4aabc82c7
shared ngspice: add a third thread to execute the .control commands
...
only after the background thread has been finished
2018-12-17 23:04:31 +01:00
dwarning
079b3bb7fd
add some missing prototypes
2018-10-27 11:08:17 +02:00
dwarning
67b38d7885
remove empty statement
2018-10-15 16:06:57 +02:00
Holger Vogt
92b69cbc55
prepare ngspice-29
2018-09-26 18:45:35 +02:00
Holger Vogt
7ca61b3c98
New command 'setseed' with function com_sseed
...
to set the random number generator
2018-07-22 15:06:19 +02:00
Holger Vogt
8fbcb16a57
add fourth parameter to cp_getvar(), in functions missing so far
2018-07-22 14:58:25 +02:00
Holger Vogt
09c876550f
prevent string overflow by adding the string length
...
to the cp_getvar parameters. Used only with CP_STRING
2018-07-22 14:57:49 +02:00
Holger Vogt
824ac4fbc9
make functions static or add function prototypes
2018-07-21 23:56:14 +02:00
Holger Vogt
d9d47bd823
fix a bug: missing
...
#ifdef XSPICE
prevents compiling of ngshared
without --enable-xspice in ./configure
2018-06-30 21:19:51 +02:00
Holger Vogt
8324b0f646
prepare ngspice-28
2018-05-19 22:15:41 +02:00