Commit Graph

123 Commits

Author SHA1 Message Date
pnenzi ccfdf80c2e Applied patches for BSD OSes 2000-11-13 19:30:00 +00:00
arno 9dd92c7315 * com_history, com_alias, parser/cshpar.c, parser/complete.c:
Applied patch by Michael Widlok.  It fixes command completion and
	history list.  In the process, Michael also fixed a memory leak.
2000-11-07 17:49:18 +00:00
pnenzi 8669c613b2 Corrected path for gc include file. 2000-11-05 16:02:46 +00:00
pnenzi a718fb27f5 Fixed an error in variable.c that caused a segmentation fault and updated files for rework-13 2000-11-01 21:21:21 +00:00
pnenzi b2c1e70401 variable.c : a variable was not declared; fixed
NEWS: updating (in progress)
2000-10-26 20:33:11 +00:00
pnenzi 19129762ad Added Glao Dezai's patches (some memory leaks fixes) 2000-10-26 17:02:12 +00:00
arno 86f326d11e * NEWS TODO acconfig.h configure.in src/ngspice.idx
src/frontend/inpcom.c src/include/complex.h
	src/include/macros.h src/include/memory.h
	src/include/ngspice.h src/maths/cmaths/Makefile.am
	src/maths/cmaths/cmath1.c src/maths/cmaths/cmath2.c
	src/maths/cmaths/cmath3.c src/maths/cmaths/cmath4.c
	src/maths/cmaths/test_cx_j.c src/maths/cmaths/test_cx_mag.c
	src/maths/cmaths/test_cx_ph.c src/misc/alloc.c
	src/misc/alloc.h: Added support for the Boehm-Weiser
	conservative garbage collector.

	* NOTES src/maths/cmaths/cmath.h: Added.

	* notes/Linux.changes notes/dbx notes/internal notes/mac_port
	notes/porting notes/spice2: Removed or incorporated into
	NOTES.
2000-10-14 21:49:25 +00:00
arno cc51f0e8db * src/main.c, src/multidec.c, src/proc2mod.c,
src/frontend/display.c, src/frontend/outitf.c,
	src/frontend/help/readhelp.c, src/frontend/help/x11disp.c,
	src/frontend/parser/complete.c, src/frontend/parser/glob.c,
	src/frontend/plotting/graf.c,
	src/frontend/plotting/graphdb.c,
	src/frontend/plotting/x11.c, src/include/graph.h,
	src/include/iferrmsg.h, src/include/ifsim.h,
	src/include/macros.h, src/maths/poly/polyfit.c,
	src/maths/sparse/spalloc.c, src/maths/sparse/spconfig.h,
	src/misc/alloc.c, src/misc/mktemp.c,
	src/spicelib/analysis/cktpzstr.c,
	src/spicelib/devices/bsim2/b2temp.c,
	src/spicelib/devices/bsim3/b3temp.c,
	src/spicelib/devices/bsim3v1/b3v1temp.c,
	src/spicelib/devices/bsim3v2/b3v2temp.c,
	src/spicelib/devices/bsim4/b4temp.c: replaced malloc
	realloc and free calls to use tmalloc trealloc and txfree.

	* tests/diffpair.out, tests/fourbitadder.out,
	tests/resistance/res_partition.out: Updated.
2000-10-14 13:16:53 +00:00
arno 03cf985d1a *** empty log message *** 2000-10-13 16:25:00 +00:00
arno 70e2bc5b16 * polyfit.c: Input matrix got overwritten too soon, leading to NaN
results for Fourier Analysis.  Fix due to Daniele Gordini.
2000-10-13 16:24:31 +00:00
arno 0aabb5f1d0 *** empty log message *** 2000-10-12 22:20:47 +00:00
arno 526313390b * inpeval.c: Bugfix for subcircuits contributed by Michael
Widlok.
2000-10-12 21:39:18 +00:00
arno f237c66aee * graf.c: Removed need to press return after resizing the plot
window.
2000-10-10 12:20:57 +00:00
pnenzi ac84baab65 Alan fixed some typo introduced in the last commits. 2000-10-03 05:22:07 +00:00
pnenzi 1857890a08 Corrected a bug introdiced when patching the file with Alan's code.
Models in subcircuits are now handled correctly.
2000-09-14 05:51:50 +00:00
pnenzi ae8bcb42cf Restored Alan's patches. Now they works. 2000-09-12 22:00:57 +00:00
pnenzi c8e1e5c939 I have reverted to the old (non AlansFixes) version outif.c and changed
again (as Alan suggested) the if(FLASE) to if(terse). The problems with
vectors are now disappeared.
2000-09-12 19:02:26 +00:00
pnenzi 703b2337f5 Changed if(terse) into a if(FALSE) as in Alan's Code. 2000-09-10 20:00:55 +00:00
arno 67976b05dc * fteext.h: Removed prototype for com_fourier(). Use
src/frontend/fourier.h for the proper prototype.
2000-09-09 13:26:02 +00:00
arno 508fee7d4b * commands.c: Use fourier.h.
* dotcards.c: Update to prevent segfault.

	* fourier.c, fourier.h: com_fourier is now calling fourier(), a
	function with more parameters.

	* dotcards.c: Added assertions to guard a double indirection, now
	ngspice will bomb out on an assertion instead of a segfault.
2000-09-09 13:24:30 +00:00
arno 7a3a17a5b9 * dotcards.c: Added assertions to guard a double indirection, now
ngspice will bomb out on an assertion instead of a segfault.
2000-09-09 12:12:32 +00:00
arno 187600fe61 * inp2dot.c: Removed unused static functions dot_ic and
dot_nodeset.

	* inppas2.c: Added back parsing for dotlines.
2000-09-09 12:04:51 +00:00
arno 2680129539 * analysis.c: New file. 2000-09-07 18:14:25 +00:00
arno 5c77d40766 * analysis.h: New file. 2000-09-07 18:13:32 +00:00
arno 8dc5eac0ee * TODO, doc/ngspice.texi: Small updates
* configure.in: New --enable-smoketest.

	* src/main.c
	src/ngspice.c src/frontend/outitf.c src/frontend/runcoms.c
	src/frontend/spiceif.c src/frontend/parser/numparse.c
	src/include/cktdefs.h src/include/fteext.h
	src/include/inpdefs.h src/include/jobdefs.h
	src/include/ngspice.h src/include/tskdefs.h
	src/spicelib/analysis/Makefile.am
	src/spicelib/analysis/acsetp.c
	src/spicelib/analysis/cktaskaq.c
	src/spicelib/analysis/cktdojob.c
	src/spicelib/analysis/cktnewan.c
	src/spicelib/analysis/cktsetap.c
	src/spicelib/analysis/cktsopt.c
	src/spicelib/analysis/ckttroub.c
	src/spicelib/analysis/dcosetp.c
	src/spicelib/analysis/dctsetp.c
	src/spicelib/analysis/dsetparm.c
	src/spicelib/analysis/nsetparm.c
	src/spicelib/analysis/pzsetp.c
	src/spicelib/analysis/senssetp.c
	src/spicelib/analysis/tfsetp.c
	src/spicelib/analysis/transetp.c
	src/spicelib/devices/bjt/bjtdset.h
	src/spicelib/devices/bjt/bjtext.h
	src/spicelib/devices/bjt/bjtsetup.c
	src/spicelib/devices/bsim2/b2set.c
	src/spicelib/devices/bsim3/b3acld.c
	src/spicelib/devices/bsim3/b3set.c
	src/spicelib/devices/bsim3/bsim3def.h
	src/spicelib/devices/csw/cswtrunc.c
	src/spicelib/devices/dio/diodset.c
	src/spicelib/devices/dio/dioinit.c
	src/spicelib/devices/jfet/jfetset.c
	src/spicelib/devices/mes/messetup.c
	src/spicelib/devices/mos1/mos1ask.c
	src/spicelib/devices/mos1/mos1set.c
	src/spicelib/devices/mos1/mos1temp.c
	src/spicelib/devices/mos3/mos3load.c
	src/spicelib/devices/mos6/mos6set.c
	src/spicelib/devices/sw/swtrunc.c
	src/spicelib/parser/inppas2.c src/spicelib/parser/inppas3.c
	src/spicelib/parser/inppas3.h: Paolo and I have integrated patches from Alan Gillespie
        <Alan.Gillespie@analog.com>.
2000-09-05 19:48:22 +00:00
pnenzi 34f9e54174 Corrected a bug 2000-09-05 16:51:55 +00:00
pnenzi b3c950634f Added some file I forgot to add in the previous commit (was rather big) 2000-09-04 05:53:10 +00:00
pnenzi 0875108157 Added patches extracted from Alan Gillespie's code. Documentation and
author's file not updated.
2000-09-03 09:00:08 +00:00
arno 37fe87bb96 * bjtdset.c: reformatted. 2000-09-01 23:17:27 +00:00
arno 2462eb7b01 * asrc/asrcset.c, bjt/bjtsetup.c, bsim1/b1set.c, bsim2/b2set.c,
bsim3/b3set.c, bsim3v2/b3v2set.c, bsim4/b4set.c, ccvs/ccvsset.c,
        dio/diosetup.c, ind/indsetup.c, jfet/jfetset.c, jfet2/jfet2set.c,
        ltra/ltraset.c, mes/messetup.c, mos1/mos1set.c, mos2/mos2set.c,
        mos3/mos3set.c, mos6/mos6set.c, tra/trasetup.c, urc/urcsetup.c,
        vcvs/vcvsset.c, vsrc/vsrcset.c: Removed HAS_BATCHSIM preprocessor
        checks.
2000-08-28 20:07:03 +00:00
pnenzi ae5950eea8 I have added some code from macspice3f4 (from A. Wilson). To enable it, compile with --enable-experimental. 2000-08-22 13:28:56 +00:00
arno 9b7d4b3187 * src/spicelib/analysis/cktpzstr.c: Reversed a patch that went
in between ng-spice-0.2 and ng-spice-0.3 that eliminated the
        following warnings: 'suggest parentheses around && within
        ||'.  The parenthesis were not placed correctly, leading to
        incorrect behaviour of the pole-zero analysis.

        * tests/polezero/*.out: Changed the content of these files because
        the bug that caused the incorrect pole-zero results have been
        traced to src/spicelib/analysis/cktpzstr.c.
2000-07-27 22:57:36 +00:00
arno d902e99d6d * src/spicelib/devices/README: Moved to src/spicelib/README.
* src/spicelib/Makefile.am, src/spicelib/devices/Makefile.am:
	Files affected by the move.
2000-07-25 06:07:11 +00:00
arno b3a9a784f6 * src/spicelib/devices/parser/*: Moved all files to
src/spicelib/parser.

        * configure.in, src/Makefile.am, src/spicelib/Makefile.am,
        src/spicelib/devices/Makefile.am: Files affected by the move.
2000-07-25 06:03:06 +00:00
arno a4acd552c4 * .cvsignore: Added. 2000-07-24 21:09:24 +00:00
arno e3c077ea1c * src/spicelib/devices/analysis/*: Moved all files to
src/spicelib/analysis.

        * configure.in, src/Makefile.am, src/spicelib/Makefile.am,
        src/spicelib/devices/Makefile.am: Files affected by the move.
2000-07-24 21:06:46 +00:00
pnenzi 4bdc626574 Another correction to the makefile (hlp->help) 2000-07-23 18:46:48 +00:00
pnenzi 6b26ddc539 File changed to relect the new layout (spicelib/...). Something reamins to be done. Wait for the next commit. 2000-07-23 18:35:45 +00:00
pnenzi 4c2458eae3 Makefile fo the directory 2000-07-23 09:21:07 +00:00
arno 5455e51390 * src/analysis/*: Moved these files into src/devices/analysis.
The files in this directory implement the analysis and simulation
        for electrical circuits.

        This is the final step to separating the Spice sources into a
        library part and a frontend part.  Now, the devices subdirectory
        has to be renamed to spicelib and the devices that are now
        scattered in that directory should be moved into a new devices
        directory.

        * configure.in, src/Makefile.am, src/devices/Makefile.am: Files
        affected by the move.
2000-07-21 21:27:56 +00:00
arno b04989d760 * src/hlp/*: moved these files into src/frontend/help. The files
in this directory implement the help system for the frontend.

        * configure.in, src/Makefile.am, src/frontend/Makefile.am: Files
        affected by the move.
2000-07-21 18:25:47 +00:00
arno 63b283f982 * src/hlp/*: moved these files into src/frontend/help. The files
in this directory implement the help system for the frontend.

	* configure.in, src/Makefile.am, src/frontend/Makefile.am: Files
	affected by the move.
2000-07-20 20:33:26 +00:00
arno df3cc8983d * src/circuit/*: moved these files into src/devices/parser. The
files in this directory take a model line from the input file and
	add the corresponding element to the representation of
	the circuit in memory.

	* configure.in, src/Makefile.am, src/devices/Makefile.am: Files
	affected by the move.
2000-07-20 16:26:14 +00:00
arno 57dfb0f945 * main.c frontend/com_ahelp.c frontend/com_asciiplot.c
frontend/com_help.c frontend/com_plot.c frontend/com_set.c
	frontend/com_unset.c frontend/quote.c include/cpdefs.h
	include/defines.h include/wordlist.h maths/ni/niconv.c
	misc/Makefile.am parser/Makefile.am parser/numparse.c
	misc/wlist.c parser/wlist.c parser/wlist.h: Sorry for the big
	commit, I screwed up the last one.  See the ChangeLogs for an
	account of what changed.
2000-07-18 18:07:16 +00:00
arno 88adbcab30 * asrc/asrcinit.h bjt/bjtinit.h cap/capinit.h cccs/cccsinit.h
ccvs/ccvsinit.h csw/cswinit.h dio/dioinit.h ind/indinit.h
	isrc/isrcinit.h jfet/jfetinit.h jfet2/jfet2init.h
	ltra/ltrainit.h mes/mesinit.h mos1/mos1init.h mos2/mos2init.h
	mos3/mos3init.h mos6/mos6init.h res/resinit.h sw/swinit.h
	tra/trainit.h urc/urcinit.h vccs/vccsinit.h vcvs/vcvsinit.h
	vsrc/vsrcinit.h: These files contain the external defines for
	the *init.c files.
2000-07-18 17:43:25 +00:00
arno 01df1be0cc * Makefile.am: Added com_dump.[ch] to sources list. 2000-07-16 13:30:55 +00:00
arno 64dea8e888 * Makefile.am: Removed debugcom.[ch] from the sources list. 2000-07-16 13:26:01 +00:00
arno 53260d50f9 * com_set.h: New header file.
* com_state.c, com_state.h: Separated from debugcom.c.

        * com_dump.c, com_dump.h: Separated from debugcom.c.

        * debugcom.c, debugcom.h: Removed.

        * Makefile.am: Updates for added/removed files.
2000-07-16 13:24:58 +00:00
arno 66b72bbf4b * trainit.c: Added missing #include. 2000-07-11 15:17:57 +00:00
arno 931ffc9795 * asrc/asrcinit.c asrc/asrcitf.h bjt/bjtinit.c bjt/bjtitf.h
bsim1/bsim1init.c bsim1/bsim1init.h bsim1/bsim1itf.h
	bsim2/bsim2init.c bsim2/bsim2init.h bsim2/bsim2itf.h
	bsim3/bsim3init.c bsim3/bsim3init.h bsim3/bsim3itf.h
	bsim3v1/bsim3v1init.c bsim3v1/bsim3v1init.h
	bsim3v1/bsim3v1itf.h bsim3v2/bsim3v2init.c
	bsim3v2/bsim3v2init.h bsim3v2/bsim3v2itf.h bsim4/bsim4init.c
	bsim4/bsim4init.h bsim4/bsim4itf.h cap/capinit.c
	cap/capitf.h cccs/cccsinit.c cccs/cccsitf.h ccvs/ccvsinit.c
	ccvs/ccvsitf.h csw/cswinit.c csw/cswitf.h dio/dioinit.c
	dio/dioitf.h ind/indext.h ind/indinit.c ind/inditf.h
	isrc/isrcinit.c isrc/isrcitf.h jfet/jfetinit.c
	jfet/jfetitf.h jfet2/jfet2init.c jfet2/jfet2itf.h
	ltra/ltrainit.c ltra/ltraitf.h mes/mesinit.c mes/mesitf.h
	mos1/mos1init.c mos1/mos1itf.h mos2/mos2init.c
	mos2/mos2itf.h mos3/mos3init.c mos3/mos3itf.h
	mos6/mos6init.c mos6/mos6itf.h res/resinit.c res/resitf.h
	sw/swinit.c sw/switf.h tra/trainit.c tra/traitf.h
	urc/urcext.h urc/urcinit.c urc/urcitf.h vccs/vccsinit.c
	vccs/vccsitf.h vcvs/vcvsinit.c vcvs/vcvsitf.h
	vsrc/vsrcinit.c vsrc/vsrcitf.h dev.c dev.h: Moved the device
	info structure from every devices' *itf.h file into a new
	*init.c file.  Moved external declaration of addresses into
	*init.h file.  Removed conditional compilation based on the
	AN_* defines as they were by default defined.  The calling
	code will only get a pointer to a SPICEdev structure.  This
	takes us another step closer to loadable devices.
2000-07-11 14:19:27 +00:00