Commit Graph

39 Commits

Author SHA1 Message Date
h_vogt 3814201d13 Add function read_initialisation_file().
extend search path for .spiceinit, search sequence now is:
current directory, user HOME directory, user USERPROFILE directory
2017-08-12 18:03:54 +02:00
h_vogt 69b235531e sharedspice.c, introduce csh variable "sharedmode"
to reflect whether running as shared library
2017-04-12 21:22:22 +02:00
h_vogt 9f62057973 introduce include file "ngspice/randnumb.h" 2016-08-15 11:30:26 +02:00
rlar d298d5cc2f use memset() instead of deprecated bzero() 2016-07-30 20:58:33 +02:00
h_vogt b14e7cb040 sharedspice.c, remove meory leaks 2016-05-28 16:52:50 +02:00
rlar be3c60badd sharedspice.c, add prototype for `getisrcval()' 2015-12-27 12:03:34 +01:00
h_vogt 8ae0b53b9f sharedspice.c, fix `retval' parameter for `pthread_exit()' 2015-12-27 12:03:29 +01:00
rlar c94d7153fd fix commit, "src/sharedspice.c, add vfprintf to interface for transferring ..." 2015-12-16 21:14:11 +01:00
h_vogt 0b92d8cfe1 src/sharedspice.c, add vfprintf to interface for transferring messages 2015-12-15 22:16:47 +01:00
rlar 33487b7d68 src/sharedspice.c, add ATTRIBUTE_NORETURN to function `shared_exit()' declaration 2015-12-15 22:05:14 +01:00
rlar 917ae030c9 src/sharedspice.c, fix #include style 2015-11-15 15:09:26 +01:00
rlar 8d44da4741 sharedspice.c, disable unused code 2015-01-22 17:50:16 +01:00
rlar ae62187d06 sharedspice.c, bug fix, #298 Wrong define in sharedspice.c
thanks to "Sergii" who reported this here:
http://sourceforge.net/p/ngspice/bugs/298

This bug did not have any effect
2015-01-22 17:49:47 +01:00
Thomas Uhle 2851e650d3 sharedspice.c, use GetCurrentThreadId() instead of GetTreadID()
Thanks to Thomas Uhle for this patch, see
  http://sourceforge.net/p/ngspice/patches/26/
  #26 GetThreadId() missing in older Win32 API, proposing to use GetCurrentThreadId() instead
2014-12-20 20:17:29 +01:00
rlar 22b2349893 fix #285 .spiceinit cannot be read in from home directory
reported by Craggan in bug report #285
http://sourceforge.net/p/ngspice/bugs/285/
2014-06-26 19:50:13 +02:00
rlar cc56c90b9d drop asprintf() 2014-04-12 21:02:31 +02:00
rlar 03f0ef778f bug fix, need va_copy() when reusing a va_list 2014-04-12 20:37:36 +02:00
rlar 7aa454e5b4 rewrite, using tprintf() 2014-04-05 19:10:12 +02:00
rlar 08ca40fe73 sharedspice.c, bug fix, don't write beyond size of array `p' 2014-04-01 21:30:02 +02: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
h_vogt 962c73e14e dctran.c, sharedspice.c: function sharedsync has modified parameter list 2013-12-31 16:21:36 +01:00
h_vogt b33f374d22 sharedspice.c: improve progress analysis 2013-12-31 16:19:07 +01:00
dwarning 20c375bcc2 fix a bug on spurious output to console during fprintf reported by Evan Lavelle 2013-12-31 16:13:16 +01:00
h_vogt d2dbe6145f sharedspice.c: modified callback interface
enhanced function ngSpice_Init_Sync()
three new callback functions for synchronization
2013-12-31 16:13:12 +01:00
rlar 6050e2e0ea cleanup some extra parentheses 2013-12-31 16:12:44 +01:00
h_vogt e929275cdf sharedspice.c, .h: fcn to initialize Sync, fcn to set breakpoint, callback fcn to read vsrc external inputs 2013-12-31 16:11:43 +01:00
h_vogt c19d7e6a51 sharedspice.c: preliminary fixes: ftime() usage, prevent crash if controlled_exit from worker thread 2013-12-31 16:10:56 +01:00
h_vogt e91063d096 sharedspice.c, .h, .vcproj: comments, update für MS Visual Sudio build 2013-12-31 16:07:21 +01:00
h_vogt a0a2f15a52 sharedspice.c, *.h: interface update, more comments 2013-12-31 16:07:20 +01:00
h_vogt b54605c225 sharedspice.c: improved comments 2013-12-31 16:07:18 +01:00
h_vogt e86c3dd297 sharedspice.c: remove bug causing sigsegv 2013-12-31 16:07:17 +01:00
h_vogt ffc7a0aa1b sharedspice.c: small updates 2013-12-31 16:07:10 +01:00
h_vogt 35550cfd1d sharedspice.c: fix sigsev fault under LINUX 2013-12-31 16:07:08 +01:00
h_vogt 7e85c0b6ba sharedspice.c: update stopping printsend thread 2013-12-31 16:07:01 +01:00
h_vogt bbcadcbd11 sharedspice.c: command bg_pstop to stop printsend thread before unloading ngspice library 2013-12-31 16:06:56 +01:00
h_vogt f95f7c661d sharedspice.c: thread handling updated 2013-12-31 16:06:55 +01:00
h_vogt 295c808b01 alloc.c sharedspice.c: improve thread safety
still much more to be done!
2013-12-31 16:06:53 +01:00
h_vogt 3f4f0e392c sharedspice.c: correction for LINUX 2013-12-31 16:06:52 +01:00
h_vogt a6976f9857 main file and header for ngspice as shared module 2013-12-31 12:57:55 +01:00