ngspice/src/frontend
h_vogt 35fabfc845 misccoms.c, enable freeing more memory allocations upon 'quit'
reduces valgrind 'still reachable' allocations
will finally allow using 'virtual leak detector' on Windows
2016-11-05 20:32:40 +01:00
..
help cleanup `skip_ws()' usage 2016-03-22 15:26:11 +01:00
numparam add dicoS->linecount to safely delete dynrefptr[i], 2016-11-05 20:30:06 +01:00
parser input.c: bug in MS VS 2015: if in text mode, _read returns 0 instead of 1 after reading '\n' (end of line) 2016-11-05 20:27:42 +01:00
plotting graf.c, drop an excess cast 2016-10-15 15:06:18 +02:00
trannoise introduce include file "ngspice/randnumb.h" 2016-08-15 11:30:26 +02:00
wdisp cleanup, use '\0' instead of 0 in char context 2015-05-02 10:24:54 +02:00
ChangeLog Integrated code from tclspice, brorson xspice and Vera memleak. 2003-07-23 19:36:39 +00:00
Makefile.am dvec abstraction, #2/11, introduce `dvec_alloc()' 2015-12-28 20:34:42 +01:00
README * src/Makefile.am src/main.c src/sconvert.c 2000-05-06 14:12:51 +00:00
arg.c src/frontend/** whitespace, indentation, ... 2012-09-22 19:33:50 +02:00
arg.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
aspice.c everywhere, use `TMALLOC()' instead of `alloc()' 2016-03-21 21:22:07 +01:00
aspice.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
breakp.c everywhere, use `TMALLOC()' instead of `alloc()' 2016-03-21 21:22:07 +01:00
breakp.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
breakp2.c breakp2.c, copynode(), prevent segfault if missing ')' 2016-11-01 11:56:25 +01:00
breakp2.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
circuits.c harmonise `struct circ' variables, `ckt' --> `ci' 2015-12-15 18:36:59 +01:00
circuits.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_ahelp.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_ahelp.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_alias.c everywhere, use `TMALLOC()' instead of `alloc()' 2016-03-21 21:22:07 +01:00
com_alias.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_asciiplot.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_asciiplot.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_cdump.c src/frontend/** remove superfluous `return' invocations 2012-09-22 19:33:55 +02:00
com_cdump.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_chdir.c src/frontend/** remove superfluous `return' invocations 2012-09-22 19:33:55 +02:00
com_chdir.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_commands.h new command 'alterparam', to be used in conjunction with 'mc_source' 2016-11-05 20:27:23 +01:00
com_compose.c use `SWAP' macro 2016-03-22 13:04:13 +01:00
com_compose.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_display.c com_display.c: remove memory leak 2012-12-15 22:44:21 +01:00
com_display.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_dl.c com_dl.c: exit upon codemodel load error 2012-12-30 15:32:44 +01:00
com_dl.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_dump.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_dump.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_echo.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_echo.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_fft.c dvec abstraction, #8/11, upgrade `dvec_alloc()' 2015-12-28 20:34:42 +01:00
com_fft.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_ghelp.c frontend/com_ghelp.c, avoid unused variables 2015-12-15 20:08:31 +01:00
com_ghelp.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_gnuplot.c src/frontend/** remove superfluous `return' invocations 2012-09-22 19:33:55 +02:00
com_gnuplot.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_hardcopy.c HAS_WINDOWS --> HAS_WINGUI 2013-12-31 12:56:57 +01:00
com_hardcopy.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_help.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_help.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_history.c com_history.c, static declaration for 'cp_hprint()' 2016-08-15 11:27:15 +02:00
com_history.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_let.c bug no. 291: allow let xyz = [] let xyz = [3 -5.6 9] let xyz = [5 $rr -7.9] 2016-11-05 20:27:42 +01:00
com_let.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_measure2.c swap some `SWAP' arguments for readability 2016-03-22 15:23:05 +01:00
com_measure2.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_option.c com_option.c, com_option(), cleanup, rename variables 2016-07-20 20:02:14 +02:00
com_option.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_plot.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_plot.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_rehash.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_rehash.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_set.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_set.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_setscale.c src/frontend/**, whitespace, indentation, ... 2012-09-20 20:30:53 +02:00
com_setscale.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_shell.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_shell.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_shift.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_shift.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_state.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_state.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_strcmp.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_strcmp.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
com_sysinfo.c use char variants of the <ctype.h> isxxxx() family 2016-03-09 20:24:36 +01:00
com_unset.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
com_unset.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
com_xgraph.c src/frontend/** remove superfluous `return' invocations 2012-09-22 19:33:55 +02:00
com_xgraph.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
commands.c new command 'alterparam', to be used in conjunction with 'mc_source' 2016-11-05 20:27:23 +01:00
commands.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
completion.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
control.c control.c, remove memory leaks 2016-07-28 21:25:05 +02:00
control.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
cpitf.c frontend/cpitf.c, cp_istrue(), cleanup comments 2016-03-26 22:48:49 +01:00
cpitf.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
define.c use memcpy() instead of deprecated bcopy() 2016-07-30 20:58:19 +02:00
define.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
device.c fix garbage collection of vectors returned by ft_evaluate() 2016-03-26 18:48:50 +01:00
device.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
diff.c use char variants of the <ctype.h> toxxxx() family 2016-03-09 20:24:36 +01:00
diff.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
dimens.c cleanup `skip_ws()' usage 2016-03-22 15:26:11 +01:00
dimens.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
display.c display.c: exclude SHARED_MODULE if console 2013-12-31 16:06:43 +01:00
display.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
dotcards.c gettok_nc(&line): like gettok(), move pointer beyond next token in line, but without returning a string, without TMALLOC. Replaces constructs like tfree(gettok(&line)). 2016-10-15 15:06:20 +02:00
dotcards.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
dvec.c src/frontend/outif.c, plotAddRealValue() etc, rallocate more coarsely 2016-01-07 09:05:00 +01:00
error.c error.c, ft_sperror(), memory leak, free memory returned by `if_errstring()' 2016-04-03 18:50:28 +02:00
evaluate.c use `SWAP' macro 2016-03-22 13:04:13 +01:00
evaluate.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
fourier.c dvec abstraction, #8/11, upgrade `dvec_alloc()' 2015-12-28 20:34:42 +01:00
fourier.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
ftehelp.h * src/frontend/com_ahelp.c src/frontend/com_ahelp.h 2000-06-27 16:15:43 +00:00
ftesopt.c struct variable, #17/18, clean 2016-04-01 17:39:22 +02:00
gens.c use memcpy() instead of deprecated bcopy() 2016-07-30 20:58:19 +02:00
gens.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
hcomp.c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
hcomp.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
hpgl.c src/frontend/**, whitespace, indentation, ... 2012-09-20 20:30:53 +02:00
hpgl.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
init.c use memset() instead of deprecated bzero() 2016-07-30 20:58:33 +02:00
init.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
inp.c inp.c, correction for shared ngspice 2016-11-05 20:31:55 +01:00
inp.h new command 'mc_source' to internally reload circuit 2016-11-05 20:26:54 +01:00
inpcom.c inpcom.c, enable current measurement in B-line like 2016-11-05 20:32:31 +01:00
inpcom.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
interp.c dvec abstraction, #8/11, upgrade `dvec_alloc()' 2015-12-28 20:34:42 +01:00
interp.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
inventory.c src/frontend/** remove superfluous `return' invocations 2012-09-22 19:33:55 +02:00
linear.c com_linarize(), support load'ed vectors 2016-08-15 11:32:01 +02:00
linear.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
measure.c gettok_nc(&line): like gettok(), move pointer beyond next token in line, but without returning a string, without TMALLOC. Replaces constructs like tfree(gettok(&line)). 2016-10-15 15:06:20 +02:00
misccoms.c misccoms.c, enable freeing more memory allocations upon 'quit' 2016-11-05 20:32:40 +01:00
misccoms.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
miscvars.c remove the ancient nobjthack option to fake 3-terminal bjt's 2016-11-01 11:56:48 +01:00
miscvars.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
mw_coms.c rewrite, use tprintf 2015-03-28 20:10:29 +01:00
mw_coms.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
newcoms.c skip-ws, #6/6, rename to match inpcom.c 2016-03-22 15:26:10 +01:00
newcoms.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
nutinp.c cleanup `skip_ws()' usage 2016-03-22 15:26:11 +01:00
nutinp.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
nutmegif.c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
nutmegif.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
options.c broken commit: "memory leak in variable.c: fcn vareval(), free variable v created by cp_enqvar and used locally" 2016-11-05 20:27:43 +01:00
options.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
outitf.c use memset() instead of deprecated bzero() 2016-07-30 20:58:33 +02:00
outitf.h fix commit: introduce OUTerrorf() and IFerrorf() 2014-05-07 20:06:00 +02:00
parse-bison-y.h drop yyparse() prototypes, require bison >= 2.7 which emits them 2015-10-18 00:46:13 +02:00
parse-bison.y declare free() / realloc() arguments `const void *' 2016-07-17 11:19:34 +02:00
parse.c cmath2.c, new function stddev to calculate the standard deviation of all elements of a vector 2016-10-15 15:06:17 +02:00
parse.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
points.c src/frontend/**, whitespace, indentation, ... 2012-09-20 20:30:53 +02:00
points.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
postcoms.c postcoms.c, remove leak by deleting hash table of variables if 'destroy' is executed. Add deleting pl->pl_env. 2016-11-05 20:30:05 +01:00
postcoms.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
postsc.c src/frontend/postsc.c, avoid warning, rename local variable `scale' 2015-12-17 19:50:49 +01:00
postsc.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
quote.c cleanup, use NULL instead of 0 in pointer context 2015-05-02 10:24:49 +02:00
quote.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
rawfile.c gettok_nc(&line): like gettok(), move pointer beyond next token in line, but without returning a string, without TMALLOC. Replaces constructs like tfree(gettok(&line)). 2016-10-15 15:06:20 +02:00
rawfile.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
resource.c frontend/resource.c, fix bizarre time mathematics 2016-03-22 15:24:25 +01:00
resource.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
runcoms.c Store the numparam dicoS structure for each circuit in a list. 2016-11-05 20:30:05 +01:00
runcoms.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
runcoms2.c Store the numparam dicoS structure for each circuit in a list. 2016-11-05 20:30:05 +01:00
runcoms2.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
shyu.c whitespace 2013-12-31 16:12:56 +01:00
shyu.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
signal_handler.c signal_handler.c, ft_sigintr(), exit after three SIGINT requests 2016-11-01 20:33:13 +01:00
signal_handler.h abstraction, introduce ft_sigintr_cleanup() 2013-12-31 16:25:44 +01:00
spec.c dvec abstraction, #8/11, upgrade `dvec_alloc()' 2015-12-28 20:34:42 +01:00
spec.h fix `SetAnalyse()' re-declaration 2013-12-31 12:56:58 +01:00
spiceif.c spiceif.c, remove memory leak ** to be tested thouroughly ** 2016-11-05 20:32:31 +01:00
spiceif.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
streams.c cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
streams.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
subckt.c subckt.c, do not put model names into numparam hash table xpressn.c, re-enable error message to alert name redefinition 2016-11-05 20:27:43 +01:00
subckt.h subckt.c, introduce new function inp_deckcopy_oc() 2016-11-05 20:26:32 +01:00
terminal.c terminal.c, miscvars.c, variable 'moremode' instead of 'nomoremode', new default 2016-02-07 17:37:34 +01:00
terminal.h avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
testcommands.c src/frontend/**, whitespace, indentation, ... 2012-09-20 20:30:53 +02:00
typesdef.c noisean, introduce a .control variable "sqrnoise" to deliver noise data in squared representation 2015-03-23 19:32:33 +01:00
typesdef.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
variable.c variable.c, introduce cp_remvar_all() to free all variables 2016-11-05 20:32:40 +01:00
variable.h variable.h, reduce visibility of auxiliary struct xxx to variable.c 2016-10-15 15:06:16 +02:00
vectors.c use memcpy() instead of deprecated bcopy() 2016-07-30 20:58:19 +02:00
vectors.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
where.c cleanup, use NULL instead of 0 in pointer context 2015-05-02 10:24:49 +02:00
where.h unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00

README

This directory contains the code that is behind the commands of the
interactive frontend.  Note that every command has a source file
associated with it.  The source file is prefixed with `com_' to
distinguish command source files from other supporting code.