Commit Graph

50 Commits

Author SHA1 Message Date
h_vogt 5d82d1b04a misccoms.c, com_quit(), don't free memory, unless shared ngspice
Traversing all linked memory structures to free their memory
  can be a somewhat lengthy business, especially in xspice,
  which is not worth the effort when we simply want to exit()
Long delays have been reported in certain cases.

For developers and for the usage of such tools as valgrind,
  we still free all the memory if 'set ngdebug' is given.
2017-06-24 17:55:26 +02:00
h_vogt fc83bd099a miscoms.c, mscvars.c, spinit.in, variable 'askquit' instead of 'noaskquit' 2016-02-07 17:37:42 +01:00
rlar 7bc6374138 cleanup, use '\0' instead of 0 in char context 2015-05-02 10:24:54 +02:00
h_vogt 28dcedbfa6 misccoms.c: add more deleting function in 'quit' for shared ngspice 2013-12-31 16:19:06 +01:00
h_vogt 62324299e1 misccoms.c: special return value for shared module 2013-12-31 16:06:45 +01:00
h_vogt d7e291c53a HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
rlar dfe8342b91 invoke com_remcirc() in com_quit() 2012-10-06 15:20:17 +02:00
rlar 998c7f2934 disable some more cleanup code in com_quit()
destroy_ivars() is reported to freeze
2012-09-25 21:31:45 +02:00
rlar d1d4eb11a5 invoke cleanup functions in com_quit()
trying to get the valgrind reports down.
2012-09-22 10:53:05 +02:00
rlar 71240d19be free spice_init_devices() allocated memory in com_quit() 2012-09-21 21:19:44 +02:00
rlar 811bf5664a destroy `const' plot in com_quit() 2012-09-21 21:19:44 +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 3d7ab6a297 cleanup keyword databases on proram termination 2012-08-23 21:19:15 +02:00
rlar 84283b43d4 cleanup ivars() related globals on program termination 2012-08-23 21:09:25 +02:00
rlar 6c01089be1 plug memory leak in x11.c
try to obey the Xt toolkit protocol when closing widgets and application
2012-08-19 19:18:34 +02:00
rlar 9390a9a9ec rewrite com_quit()
emphasize user confirmation

and if we are going to remove dangling circuits,
then do so unconditionally
2012-08-15 20:15:15 +02:00
rlar 6ae6223250 misccoms.c, com_quit(), implement exitcode 2012-06-12 21:26:30 +02:00
rlar 5436de5bab misccoms.c, tiny rewrite 2012-06-12 21:26:30 +02:00
rlar 8dcf132199 misccoms.c, shrink scope 2012-06-12 21:26:30 +02:00
rlar cc32eae60b misccoms.c, collect byemessage() 2012-06-12 21:26:30 +02:00
rlar b9c0159cd6 misccoms.c, noask 2012-06-12 21:26:30 +02:00
rlar 41de8d95ff misccoms.c, collapse strings 2012-06-12 21:26:30 +02:00
rlar 11878ee4ad misccoms.c, use strncasecmp() 2012-06-12 21:26:30 +02:00
rlar 5f3b453a30 misccoms.c, indentation and whitespace cleanup 2012-06-12 21:26:30 +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
h_vogt 57c9b44c73 inproved error messages in pipe mode 2011-08-10 16:39:46 +00:00
h_vogt e6c86b4d98 explicit casting double -> int etc. 2011-06-11 17:07:38 +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
dwarning b4d3cc8646 ancient configure options removed 2010-11-06 13:23:25 +00:00
rlar a9ca8d7331 collect gr_clean() gr_end() gr_point() gr_start() gr_fixgrid() in "graf.h" 2010-10-16 15:48:39 +00:00
rlar b22f75c9f4 collect hcomp() in "hcomp.h" 2010-10-16 15:47:16 +00:00
h_vogt 28622b5a75 remove bug no. 3080398 2010-10-04 20:58:00 +00:00
h_vogt 8db3c17bc0 welcome message, version 22 2010-09-25 14:15:26 +00:00
rlar 60ff9aaef2 muffle `nested extern' warnings, and drop a handcrafted malloc prototype 2010-07-24 20:24:26 +00:00
rlar 8851f67efd Change remaining code to use the new usage pattern cp_getvar(,CP_BOOL,NULL) 2010-07-20 18:52:19 +00:00
rlar a76cd1e104 textual replacement VT_* to CP_*, to avoid conflict in the windows world 2010-07-17 20:48:20 +00:00
pnenzi 1ada4d3530 Finish first batch of imports from espice. 2009-01-16 15:35:00 +00:00
saintel 6fe0cebe58 *** empty log message *** 2008-11-22 10:31:46 +00:00
dwarning 1bd68dcab3 no more INT_NOISE 2008-11-19 19:47:58 +00:00
gdiso 60d7ac039a *** empty log message *** 2007-05-01 03:40:17 +00:00
sjborley cb247a15fb Added support for the BSD licensed editline library (libedit). 2005-05-06 23:43:46 +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
pnenzi 7d0f2f2276 Improved the "version" command to show compilation switches. Updated
documentation to reflect changes.
2003-08-24 16:45:15 +00:00
pnenzi 8686a73047 Added readline patch (support for command history). 2003-08-14 19:21:10 +00:00
pnenzi dd49ea7eaa Added changes from tclspice 0.2.13 2003-08-05 17:20:17 +00:00
arno 489fc66afd src/Makefile.am src/help.c src/main.c
src/circuit/Makefile.am src/circuit/ifnewuid.c
	src/frontend/Makefile.am src/frontend/aspice.c
	src/frontend/circuits.h src/frontend/com_display.c
	src/frontend/com_hardcopy.c src/frontend/commands.c
	src/frontend/commands.h src/frontend/cpitf.c
	src/frontend/debugcom.c src/frontend/device.c
	src/frontend/diff.c src/frontend/display.c
	src/frontend/dotcards.c src/frontend/fourier.c
	src/frontend/inp.c src/frontend/inpcom.c src/frontend/linear.c
	src/frontend/misccoms.c src/frontend/mw_coms.c
	src/frontend/nutinp.c src/frontend/options.c
	src/frontend/outitf.c src/frontend/parse.c
	src/frontend/postcoms.c src/frontend/postsc.c
	src/frontend/rawfile.c src/frontend/resource.c
	src/frontend/runcoms.c src/frontend/runcoms2.c
	src/frontend/shyu.c src/frontend/spec.c src/frontend/spiceif.c
	src/frontend/subckt.c src/frontend/vectors.c
	src/frontend/where.c src/frontend/plotting/Makefile.am
	src/frontend/plotting/agraf.c src/frontend/plotting/graf.c
	src/frontend/plotting/plotcurv.c
	src/frontend/plotting/plotit.c src/frontend/plotting/x11.c
	src/frontend/plotting/xgraph.c src/include/Makefile.am
	src/maths/cmaths/cmath4.c src/misc/terminal.c
	src/misc/terminal.h src/parser/cshpar.c src/parser/front.c
	src/parser/front.h src/parser/history.c src/parser/history.h
	src/parser/modify.c src/parser/var2.c src/parser/var2.h
	src/parser/variable.c: Refactoring of frontend code.

	* src/include/ftehelp.h src/include/variable.h: Moved into
	frontend directory.

	* src/include/cpdefs.h src/include/cpextern.h
	src/include/ftedefs.h src/include/plot.h: Updates.
2000-06-27 16:09:02 +00:00
arno 8696a52e89 * src/Makefile.am src/main.c src/sconvert.c
src/analysis/cktdisto.c src/analysis/cktnoise.c
	src/analysis/noisean.c: Updates for the
	new header files.

	* src/maths/cmaths/cmath1.c src/maths/cmaths/cmath2.c
	src/maths/cmaths/cmath3.c src/maths/cmaths/cmath4.c: Updates
	for the new header files.

	* src/frontend/.cvsignore src/frontend/Makefile.am: Updates
	for the new files.

	* src/frontend/agraf.c src/frontend/aspice.c
	src/frontend/breakp.c src/frontend/breakp2.c
	src/frontend/circuits.c src/frontend/cpitf.c
	src/frontend/debugcom.c src/frontend/define.c
	src/frontend/diff.c src/frontend/dimens.c
	src/frontend/display.c src/frontend/doplot.c
	src/frontend/dotcards.c src/frontend/evaluate.c
	src/frontend/fourier.c src/frontend/graf.c
	src/frontend/grid.c src/frontend/inp.c src/frontend/inpcom.c
	src/frontend/interp.c src/frontend/linear.c
	src/frontend/misccoms.c src/frontend/misccoms.h
	src/frontend/miscvars.c src/frontend/mw_coms.c
	src/frontend/newcoms.c src/frontend/nutinp.c
	src/frontend/options.c src/frontend/outitf.c
	src/frontend/parse.c src/frontend/plotcurv.c
	src/frontend/points.c src/frontend/postcoms.c
	src/frontend/rawfile.c src/frontend/runcoms.c
	src/frontend/runcoms2.c src/frontend/shyu.c
	src/frontend/spec.c src/frontend/spiceif.c
	src/frontend/typesdef.c src/frontend/vectors.c
	src/frontend/where.c src/frontend/postcoms.c: Updates for the
	new header files.  Some commands have moved into the new files
	below.

	* src/frontend/README src/frontend/com_compose.c
	src/frontend/com_compose.h src/frontend/com_display.c
	src/frontend/com_display.h src/frontend/com_let.c
	src/frontend/com_let.h src/frontend/com_setscale.c
	src/frontend/com_setscale.h src/frontend/commands.c
	src/frontend/commands.h src/frontend/completion.h
	src/frontend/streams.h src/frontend/testcommands.c:
	Separation into different com_* commands.  This is a start.
	The rest of the subdirectory needs doing.

	* src/include/complex.h src/include/cpdefs.h
	src/include/cpextern.h src/include/cpstd.h
	src/include/fteconst.h src/include/ftedata.h
	src/include/ftedev.h src/include/fteext.h
	src/include/ftegraph.h src/include/fteparse.h
	src/include/dvec.h src/include/grid.h src/include/plot.h
	src/include/pnode.h src/include/sim.h src/include/variable.h
	src/include/wordlist.h src/include/bool.h: Separation of
	header files into smaller pieces.  This limits recompilation
	to only the affected source files.  The original header
	files have a warning message embedded to flag obsoleted use.

	* src/frontend/compose.c src/frontend/compose.h
	src/frontend/nutctab.c src/frontend/nutctab.h
	src/frontend/plot5.c src/frontend/plot5.h
	src/frontend/spcmdtab.c src/frontend/x11.c
	src/frontend/x11.h src/frontend/xgraph.c
	src/frontend/xgraph.h: Moved these files into
	src/frontend/plotting subdirectory.

	* src/frontend/plotting/.cvsignore
	src/frontend/plotting/Makefile.am
	src/frontend/plotting/plot5.c src/frontend/plotting/plot5.h
	src/frontend/plotting/plotting.c
	src/frontend/plotting/plotting.h
	src/frontend/plotting/pvec.c src/frontend/plotting/pvec.h
	src/frontend/plotting/x11.c src/frontend/plotting/x11.h
	src/frontend/plotting/xgraph.c
	src/frontend/plotting/xgraph.h: The new libplotting library
	with automake and CVS infrastructure.
2000-05-06 14:12:51 +00:00
pnenzi 978f1c32a2 Initial revision 2000-04-27 20:03:57 +00:00