Commit Graph

29 Commits

Author SHA1 Message Date
Holger Vogt 3230f5c740 Keep saving nodes only once, but make an exception for node 'all'.
Fixes bug-799, at least partially (diffpair.cir is running again.).
2025-07-27 16:40:55 +02:00
Holger Vogt 252ca65f56 Add '.save nosub' to suppress storing the node vectors from inside
of subcircuits.

Saves a lot of memeory if using devices with subcircuit models,
and one is not interested in the inner workings of the device model.
2024-06-22 14:18:25 +02:00
Holger Vogt a8d8600faa plug a memory leak 2021-12-23 14:37:57 +01:00
Holger Vogt 01ed224896 A check to avoid multiple entries for the same node into the .save list
Scan the data base dbs (list of saves) before a new entry is generated.
2021-10-29 16:40:51 +02:00
Holger Vogt 7f085144a9 remove all the remains of quote() and strip() that had been
used to modify the eigths bit of a character or string.
The functions had been switched off some time ago.
We now need all bits of a char for extended ascii or utf8
2020-03-15 08:51:12 +01:00
h_vogt e4e24f74e6 breakp2.c, copynode(), prevent segfault if missing ')'
invoking 'save' with an erronous node, for example
  save v(thing
This can happen unexpectedly for long 'save' lines,
  which will silently be truncated.
2016-11-01 11:56:25 +01:00
rlar 7fc6609821 breakp2.c, settrace(), cleanup #2/2 2016-11-01 11:06:45 +01:00
rlar 004e49aabf breakp2.c, settrace(), cleanup #1/2
"save" command,
  reduce complexity from O(2) to O(1)
2016-11-01 11:05:59 +01:00
h_vogt 77380219d8 breakp2.c, prevent crash in `save' command if no circuit is loaded 2016-07-17 18:12:53 +02:00
rlar 4c1c95e20f everywhere, use `TMALLOC()' instead of `alloc()' 2016-03-21 21:22:07 +01:00
rlar 192eeadb0b remove crufty comments which where used to support broken text editors 2015-09-24 18:23:54 +02:00
rlar 5ac7858a79 rewrite, use tprintf 2015-03-28 20:10:29 +01:00
h_vogt 0c503429e0 breakp2.c: plug some tiny memory leaks 2013-12-31 16:13:24 +01:00
h_vogt 79a9fdbcd7 breakp2.c: allow v(12) and i(vdd) in 'save' command 2013-12-31 12:56:55 +01:00
h_vogt 7bc879726d make database dbs local to each circuit 2013-12-31 12:56:53 +01:00
rlar fe1acd3757 src/frontend/** remove superfluous `return' invocations 2012-09-22 19:33:55 +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 0e1f5a29f7 type fixes 2011-12-17 13:41:04 +00:00
rlar 0b5042e7da remove CVS `Id',`log' etc. keyword incantations 2011-12-13 19:57:45 +00: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 23056573d8 code cleanup, drop NULL pointer casts 2011-04-28 15:59:36 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
h_vogt 68b06c7a73 comments 2009-12-19 16:04:22 +00:00
sjborley 67ff1b3a83 Tidy up of the header files in src/frontend and sub-directories. Motivation is to remove extern declarations within .c files and place them in .h files. Added new header files where necessary (and adjusted makefile.am files where required) 2005-05-30 20:28:29 +00:00
pnenzi 19129762ad Added Glao Dezai's patches (some memory leaks fixes) 2000-10-26 17:02:12 +00:00
arno f85551ea17 * frontend/Makefile.am: Updates for new files.
* frontend/breakp2.c, frontend/newcoms.c, frontend/postcoms.c,
	frontend/resource.c, frontend/terminal.h, frontend/variable.c,
	frontend/variable.h, frontend/com_compose.c,
	frontend/com_display.c, frontend/com_setscale.c,
	frontend/com_strcmp.c: Include files update.

	* parser/var2.c, parser/var2.h: Empty files, removed.

	* parser/Makefile.am: Updates for removed files.

	* parser/lexical.c: Small adjustments

	* parser/input.c, parser/input.h: Input, output and error streams
	handled in the frontend.  Moved to the frontend directory.

	* frontend/streams.c: Its new home.
2000-07-07 14:09:06 +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