h_vogt
4bed98936c
inp.c: nullify `dbs' for use with 'source' command
2013-12-31 12:56:37 +01:00
rlar
d1764cc7fa
inp_readall() change function signature for readability
2013-12-31 12:56:35 +01:00
h_vogt
baad0b1bb8
inp.c: some comments added
2013-12-31 12:54:34 +01:00
h_vogt
3c078cde57
inp.c: remove buf if .control section contains only 'save...' lines
2013-01-01 12:32:04 +01:00
dwarning
12b2287aa6
remove of modtab after the job is done to issue additional source commands
2012-12-19 18:49:32 +01:00
h_vogt
a419712eca
inp.c: pre_<command> to allow command execution from the .control section before parsing the circuit
2012-11-17 16:30:17 +01:00
h_vogt
5c4f8946f6
inp.c: avoid crash if setparse() returns NULL
2012-11-04 14:12:03 +01:00
rlar
f52ae6eccd
bug fix, invalid read when the title line is the empty
2012-09-30 18:38:36 +02:00
h_vogt
68c4de76b7
new option noopac, don't do op simulation before ac if circuit is linear
...
May simplify ac simulation of passive RLC networks
(No need to add series resistors in Ls, allows to C inseries)
2012-09-26 16:59:59 +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
f3b5336d3a
cleanup some macros, try to be more careful
2012-09-19 20:16:27 +02: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
h_vogt
4e45f4cba0
inp.c: unify syntax of .save and save commands: allow node1 and v(node1), v2#branch and i(v2), @dev[param]
2012-08-30 11:03:48 +02:00
rlar
80bc975e33
plug a memory leak in inp_spsource/inp_nutsource (deck title string)
2012-08-23 21:13:44 +02:00
rlar
789edee376
rewrite inp_list() avoid duplicate code
2012-08-19 14:04:37 +02:00
rlar
d4ced47e8e
drop out_pbuf, which was an ancient workaround
...
obviously an old implementation of out_printf()
has been unreliable.
2012-08-18 18:27:13 +02:00
rlar
be183407cd
cleanup (checked for code invariance)
2012-08-15 19:18:15 +02:00
rlar
191ae9ea90
cleanup, char 0
2012-08-03 20:43:10 +02:00
rlar
5a69b9efc4
cleanup, void return
2012-08-03 20:43:06 +02:00
h_vogt
4d0d0fafb9
repair broken ternary function in B-Source
...
failed if parameters were included in function.
fixed by finding nested parens in gettok_char()
2012-07-21 22:23:49 +02:00
rlar
a890a55937
fix wl_reverse() for empty lists
2012-07-14 12:39:13 +02:00
rlar
9655b9885a
cleanup, use wl_cons(), wl_append_word() and wl_chop_rest()
2012-07-14 10:23:51 +02:00
rlar
d8105873db
remove error.h, use fteext.h for controlled_exit()
2012-06-12 21:26:29 +02:00
h_vogt
171e8896b1
.csparam
2011-12-30 09:32:17 +00:00
h_vogt
bcc23c1f78
exit on all circuit parsing errors if var strict_errorhandling is set
2011-12-17 11:33:30 +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
h_vogt
9dbb7654eb
beautify code: indentations etc.
2011-11-13 11:11:09 +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
pnenzi
5ba0b8b86c
Statistics patch: added netlist loading and parsing time in acct command.
...
Added devhelp command to obtain information about available devices and device parameters
Added inventory command to print the number of instances per device.
2011-08-09 18:41:36 +00:00
h_vogt
6afe4230f6
allow comments inside of command files
2011-07-17 10:42:54 +00:00
rlar
e7849c20d7
cleanup fseek() usage
2011-07-09 16:22:51 +00:00
h_vogt
cc36fb8071
dirname() -> ngdirname()
2011-06-25 23:07:13 +00:00
h_vogt
747c606e30
remove bug in command meas, allow / and \ in Windows file paths
2011-06-18 17:45:43 +00:00
rlar
55638c8023
various cleanups
2011-04-30 12:29:19 +00:00
rlar
23056573d8
code cleanup, drop NULL pointer casts
2011-04-28 15:59:36 +00:00
rlar
05441d5823
Nr 5/5 (x = ...) == NULL , swallow warnings
2010-11-19 18:54:40 +00:00
rlar
f30f96a4c7
use `size_t' variables for fread/fwrite operations
2010-11-04 19:15:41 +00:00
rlar
196262dd1b
move the com_*() prototypes around.
2010-10-16 17:09:46 +00:00
rlar
f49a0e765b
collect inp_deckcopy() inp_subcktexpand() in "subckt.h"
2010-10-16 15:56:07 +00:00
rlar
894dcead35
collect if_inpdeck() if_run() if_cktfree() if_dump() if_option() in "spiceif.h"
2010-10-16 15:50:32 +00:00
rlar
8209c0aef3
collect smktemp() in "mktemp.h"
2010-10-15 18:11:11 +00:00
h_vogt
355384e459
libiberty.h inclusion modified
2010-09-10 15:06:04 +00:00
h_vogt
fc2df06f9b
bug no. 3047884
2010-08-19 19:48:00 +00:00
dwarning
586acbe45c
fallback for not handled enumeration values in switch
2010-08-06 07:50:20 +00:00
rlar
62afa50a1c
fix dangerous things, potential bugs, at least for big endian machines
2010-07-24 14:27:47 +00:00
rlar
73cf2a8ea5
use a void * for the third argument (&value) of the cp_vset() function
2010-07-20 19:19:51 +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
d44f818cad
allow cp_getvar(,CP_BOOL,NULL) to avoid insane usage
2010-07-20 18:41:25 +00:00
rlar
2990821053
use type void* to pass anonymous data to function if_option()
...
indicate its actual type with an enum cp_types argument
2010-07-17 22:11:51 +00:00
rlar
a76cd1e104
textual replacement VT_* to CP_*, to avoid conflict in the windows world
2010-07-17 20:48:20 +00:00
h_vogt
79831ac331
'option' command
2010-07-14 20:59:23 +00:00
rlar
72fc1a0186
use CKTcircuit instead of void*, #1/4
2010-07-07 17:26:05 +00:00
h_vogt
947e19bde7
no command file handling in numparam
2010-06-29 21:18:34 +00:00
h_vogt
e66ef33c57
ngspice compatibility mode
2010-04-23 22:00:40 +00:00
dwarning
944f756d2f
cut the ouput message
2010-03-09 19:30:38 +00:00
h_vogt
76feebbbfa
various bug fixes
2010-02-25 21:43:03 +00:00
h_vogt
68b06c7a73
comments
2009-12-19 16:04:22 +00:00
dwarning
07e06cf701
initialize local variables
2009-10-04 11:48:37 +00:00
h_vogt
7ec7495457
tran setup info, cleanup
2009-09-19 14:16:04 +00:00
h_vogt
5f9f71b5a4
variable ngdebug for additional debug info
2009-09-19 12:38:03 +00:00
h_vogt
c25d028cbf
SetAnalyse output extended
2009-09-13 19:42:19 +00:00
h_vogt
9282e4e434
comments added
2009-08-17 20:13:51 +00:00
h_vogt
ea8c5bc5d4
allow .meas, add .meas .. when to example
2009-06-11 20:58:56 +00:00
h_vogt
1de4a31321
bipolar handling fixed
2009-05-16 10:11:24 +00:00
h_vogt
05c0d50e55
SetAnalys, maxord
2009-04-28 21:53:29 +00:00
h_vogt
2e323531fb
patch by Bill Swartz
2009-04-14 06:28:27 +00:00
h_vogt
faada68e9d
*** empty log message ***
2009-04-05 12:26:19 +00:00
h_vogt
e9d957d2d6
memory leaks removed
2009-03-29 16:58:44 +00:00
h_vogt
3ecc23e290
flag OUTDECK yields printout of deck after param substitution
2009-02-28 14:03:08 +00:00
dwarning
bce499a9e1
global nodes and numparams now as default
2008-05-12 15:52:59 +00:00
pnenzi
d1828b6d0b
Fix from Holger Vogt for two cinditions that caused segfault.
2008-01-02 12:55:53 +00:00
dwarning
e099459179
no message
2007-12-02 21:56:44 +00:00
dwarning
a5e71aa980
prototypes for dirname and asprintf
2007-11-28 17:36:32 +00:00
dwarning
ca4c80433f
dirname prototype from libgen.h if available
2007-11-25 20:03:23 +00:00
dwarning
84c5e8739e
one only "one" times
2007-11-14 20:24:35 +00:00
dwarning
f286055405
No title message to stderr - stdout is enough
2007-11-14 08:34:52 +00:00
dwarning
02c6ff93f4
no define twice for print_listing
2007-11-13 08:05:33 +00:00
pnenzi
b2b61c0e74
Updated scale "option" processing.
2007-11-12 21:52:45 +00:00
dwarning
41325622fd
some clean-up's to come through MSC
2007-10-18 19:34:30 +00:00
pnenzi
10997c0fa5
brief option reimplementation.
2007-10-12 21:59:18 +00:00
pnenzi
936cd7a4fc
Improvements in frontend by Phil Barker
2007-10-08 21:10:34 +00:00
pnenzi
7e4700ea2d
Fix for the wrong line mumber in listing command of .end lines.
2007-09-14 14:42:57 +00:00
sjborley
d835edc527
Fixed '*# ' command operation.
...
Added 'hack' to allow the 'numparams' variable to be set (or unset)
before the netlist part of a file is parsed. This is based on code supplied by
Dietmar Warning, with changes to allow it to work with the *# syntax, the
unset keyword and variable amounts of white space.
line_free(line,flag) is now a macro so that line is set to NULL when it is
freed. (src/frontend/inp.c) This is a safty mechnism.
2005-06-09 01:38:47 +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
b3e47fbbd3
New logis in initialization files for ngspice.
2005-04-26 19:42:41 +00:00
pnenzi
985d977197
Applied Steven Borley patch for numparam and frontend. See Changelog.
2005-04-24 21:17:31 +00:00
pnenzi
8362dec274
Integrated code from tclspice, brorson xspice and Vera memleak.
2003-07-23 19:36:39 +00:00
pnenzi
5cc15682eb
Removed some garbage introduced by CVS.
2001-11-23 08:13:58 +00:00
pnenzi
29f5d62f0a
Added patches to fix inital segfault.
2001-11-22 20:25:09 +00:00
pnenzi
609f57ba00
Applied first patch from Steven Borley that fixes memory leaks and errors while reading input decks.
2001-06-05 18:00:28 +00:00
pnenzi
c68f3470e4
Code cleanup.
2001-02-09 19:46:36 +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
arno
4e605553de
* src/sconvert.c src/frontend/circuits.c src/frontend/circuits.h
...
src/frontend/inp.c src/frontend/inpcom.c src/include/fteext.h
src/parser/front.c: ANSIfication, removed some empty functions.
2000-05-05 11:07:10 +00:00
arno
0fb8f339b8
* man/man1/nutmeg.1 man/man1/spice.1 src/multidec.c
...
src/analysis/cktinit.c src/analysis/cktpzld.c
src/analysis/cktpzstr.c src/analysis/cktsens.c
src/analysis/sensaskq.c src/analysis/senssetp.c
src/analysis/tfanal.c src/circuit/inpgtok.c
src/circuit/inpptree.c src/circuit/sperror.c src/devices/dev.c
src/devices/asrc/asrcacld.c src/devices/devsup/devsup.c
src/devices/jfet/jfetload.c src/devices/ltra/ltra.c
src/devices/ltra/ltraset.c src/devices/mos6/mos6ext.h
src/frontend/aspice.c src/frontend/device.c
src/frontend/display.c src/frontend/doplot.c
src/frontend/dotcards.c src/frontend/fourier.c
src/frontend/gens.c src/frontend/graf.c src/frontend/grid.c
src/frontend/inp.c src/frontend/interp.c
src/frontend/nutctab.c src/frontend/plotcurv.c
src/frontend/postcoms.c src/frontend/postsc.c
src/frontend/resource.c src/frontend/runcoms.c
src/frontend/spiceif.c src/frontend/typesdef.c
src/frontend/x11.c src/hlp/readhelp.c src/hlp/x11disp.c
src/include/complex.h src/include/devdefs.h
src/include/fteconst.h src/maths/ni/nipzmeth.c
src/maths/sparse/spalloc.c src/maths/sparse/spbuild.c
src/maths/sparse/spcombin.c src/maths/sparse/spextra.c
src/maths/sparse/spfactor.c src/maths/sparse/spoutput.c
src/maths/sparse/spsmp.c src/maths/sparse/spsolve.c
src/maths/sparse/sputils.c src/parser/lexical.c
src/parser/unixcom.c: removed most `#ifdef notdef', converted
some function calls from K&R to ANSI.
2000-05-03 20:01:30 +00:00
pnenzi
978f1c32a2
Initial revision
2000-04-27 20:03:57 +00:00