Commit Graph

28 Commits

Author SHA1 Message Date
Jim Monte 2035442a9f fixed path created by ngdirname in Windows. Also added const to parameters whose arguments do not change and fixed some potential buffer overruns. 2020-02-12 22:40:46 +01: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 d7e291c53a HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
rlar adc9ee09ce api change for ngdirname() to fix a memory leak
ngdirname did `own' the returned string.
now the invoker is responsible for the returned string.

note, this is contrary to the POSIX dirname() implementation,
   which *might* return pointers to statical allocated memory.
2012-09-13 20:07:33 +02: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
rlar 9fd458f0ed rewrite ngdirname() 2011-08-07 19:26:53 +00:00
rlar 2d50db4b91 use size_t 2011-07-24 20:16:21 +00:00
h_vogt cc36fb8071 dirname() -> ngdirname() 2011-06-25 23:07:13 +00:00
h_vogt 53ba204cbb char* identifiers 2010-12-13 22:15:19 +00:00
rlar d0dba768f8 change the type of a bunch of variables from `int' to `size_t' 2010-11-06 20:11:24 +00:00
rlar 411c6fc8c3 minor rewrites 2010-11-04 19:28:00 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
rlar 5e8e44cc0a cast the tmalloc, MALLOC, return value 2010-10-24 12:59:20 +00:00
rlar 241783d0b5 use for(;;) instead of while(1) to muffle some visual-C warnings 2010-09-07 20:07:57 +00:00
rlar 4cdd842cd8 muffle compiler warnings 2010-07-24 18:51:06 +00:00
rlar 3369d860b4 cast the return values of malloc() function calls 2010-07-01 19:52:23 +00:00
dwarning 27461a41eb controlled_exit removed 2010-01-30 13:29:16 +00:00
dwarning 9f97f8701c provide a controlled_exit function 2010-01-19 21:48:42 +00:00
dwarning a755164f06 relay on ngspice.h 2009-04-26 09:04:43 +00:00
saintel 6fe0cebe58 *** empty log message *** 2008-11-22 10:31:46 +00:00
dwarning 530cb059fe polish to prevent warning 2008-10-14 19:59:23 +00:00
h_vogt 3dc3d42553 Small changes, e.g. _MS_VER macro, added to allow compilation of tclspice with MS VC++ 2008 2008-10-04 22:44:52 +00:00
h_vogt cdcf63aa46 add *.cir file path as search path (MS Windows) 2008-09-23 22:13:46 +00:00
dwarning e099459179 no message 2007-12-02 21:56:44 +00:00
dwarning 7476998764 better macro request to HAVE_DIRNAME 2007-11-28 17:42:55 +00:00
dwarning 41325622fd some clean-up's to come through MSC 2007-10-18 19:34:30 +00:00
pnenzi b03a70760b Applied Stuart's 12-03-2003 patch. Support for readline (disabled) and for node names in the form (x,y). 2004-01-10 21:39:36 +00:00