Commit Graph

63 Commits

Author SHA1 Message Date
arno f1953e2885 * src/devices/dev.c, src/devices/dev.h: Added first_device()
and next_device() to abstract manipulations to the devices
	list.  Now change all the code that uses direct access to
	these functions...
2000-07-05 13:10:16 +00:00
arno fe8d08d0a9 * ChangeLog: Summarize recents changes.
* src/devices/Makefile.am: Updates to EXTRA_DIST.

	* src/misc/misc_time.c, src/misc/printnum.c, src/misc/tilde.c:
	Code formatting updates.

	* tests/fourbitadder.out: Updates.
2000-07-03 15:32:29 +00:00
arno 478ee433ae * src/analysis/cktsens.c: Matrixes cannot be created non-complex.
Also added a check to detect an error condition on delta_Y =
	spCreate(...).

	* src/analysis/cktpzld.c: Formatting updates.
2000-07-03 15:30:05 +00:00
arno 7ac9278389 * src/include/spconfig.h: Removed spCOMPLEX,
spSEPARATED_COMPLEX_VECTORS and spCOMPATIBILITY defines.  This
	made including this file from src/include/spmatrix.h unnecessary.
	Moved this file to src/maths/sparse/spconfig.h.

	* src/include/spmatrix.h: Removed include of
	src/include/spconfig.h.

	* src/maths/sparse/spalloc.c, src/maths/sparse/spbuild.c,
	src/maths/sparse/spcombin.c, src/maths/sparse/spdefs.h,
	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: The other files affected by the
	removal of spCOMPLEX, spSEPARATED_COMPLEX_VECTORS and
	spCOMPATIBILITY defines.  Also: assertions are enabled by
	default.

	* src/include/smpdefs.h, src/maths/sparse/spsmp.c: SMPmatrix is
	now a typedef for void, instead of char.  Updated all function
	declarations to match this.  Also added function prototypes not
	previously mentioned in src/include/smpdefs.h.

	* src/include/complex.h: Updates of cast from char * to void *
2000-07-03 15:28:50 +00:00
arno 8aa1ceead5 * src/parser/alias.c, src/parser/alias.h: contain frontend alias
command.  Moved them to src/frontend/com_alias.c and
	src/frontend/com_alias.h.  Updated Makefile.am's as appropreate.

	* src/parser/front.c, src/parser/front.h, src/parser/history.c,
	src/parser/history.h, src/parser/modify.c, src/parser/modify.h,
	src/parser/variable.c, src/parser/variable.h: Empty files.
2000-07-03 15:27:34 +00:00
arno 839ade8236 * src/frontend/com_ahelp.c src/frontend/com_ahelp.h
src/frontend/com_cdump.c src/frontend/com_cdump.h
	src/frontend/com_ghelp.c src/frontend/com_ghelp.h
	src/frontend/com_help.c src/frontend/com_help.h
	src/frontend/com_history.c src/frontend/com_history.h
	src/frontend/com_set.c src/frontend/com_shift.c
	src/frontend/com_strcmp.c src/frontend/com_strcmp.h
	src/frontend/com_unset.c src/frontend/control.c
	src/frontend/control.h src/frontend/ftehelp.h
	src/frontend/hcomp.c src/frontend/hcomp.h src/frontend/init.c
	src/frontend/init.h src/frontend/terminal.c
	src/frontend/terminal.h src/frontend/variable.c
	src/frontend/variable.h: New additions from the refactoring of
	the parser directory.
2000-06-27 16:15:43 +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
pnenzi 96da984f7a Removed line for cktbindn.c which is no more in this directory 2000-06-20 19:18:05 +00:00
arno 6f81cb9446 * src/analysis/cktask.c: moved to src/devices.
* src/analysis/cktbindn.c: moved, renamed to
	src/devices/cktbindnode.c.

	* src/analysis/cktfdev.c: moved, renamed to
	src/devices/cktfinddev.c.

	* TODO: Updates

	* src/analysis/Makefile.am src/devices/Makefile.am: Updates.
2000-06-19 19:03:54 +00:00
arno d7ad0ee10c * AUTHORS TODO: Small updates.
* src/devices/dev.c src/devices/dev.h: Small updates.

	* src/devices/README: Short description of the purpose of the
	devices directory.

	* src/analysis/cktaccpt.c src/analysis/cktcrte.c
	src/analysis/cktinit.c: Moved these files into src/devices.

	* src/analysis/dctran.c: Updates to ease the move.

	* src/analysis/Makefile.am src/devices/Makefile.am: Updates

	* src/Makefile.am: Library loading reordered.

	* src/main.c: Small updates.

	* src/devices/devsup/devsup.c: Moved this file into src/devices.

	* src/devices/devsup/.cvsignore
	src/devices/devsup/Makefile.am: Superfluous files, removed

	* configure.in: Removed src/devices/devsup/Makefile.
2000-06-17 22:54:26 +00:00
arno b15a1f0d93 * cktpzstr.c: Enabling PZDEBUG lead to a segfault, added
checks to prevent this.
2000-06-17 15:20:46 +00:00
arno 4df9e9a410 * src/analysis/*.c: Removed register keywords, as they are
useless with the current compilers.
2000-06-17 14:42:03 +00:00
arno a17990bddf * src/Makefile.am: Removed some duplicate entries.
* TODO: Updated.
2000-06-16 21:31:57 +00:00
arno 1f82eccd29 * src/devices/disto/*: Moved all files to src/maths/deriv/
* configure.in src/Makefile.am src/devices/Makefile.am
	src/include/ngspice.h src/maths/Makefile.am: Necessary updates
	to get it to compile again.
2000-06-16 21:11:59 +00:00
arno 130ced1ffb * src/frontend/Makefile.am: Minor update. 2000-06-16 19:09:04 +00:00
arno d1cbcf5052 src/frontend/doplot.c: refactored into the following files:
src/frontend/com_asciiplot.c src/frontend/com_asciiplot.h
	src/frontend/com_hardcopy.c src/frontend/com_hardcopy.h
	src/frontend/com_plot.c src/frontend/com_plot.h
	src/frontend/com_xgraph.c src/frontend/com_xgraph.h
	src/frontend/plotting/plotit.c src/frontend/plotting/plotit.h

	src/frontend/doplot.h: Removed.

	src/frontend/Makefile.am src/frontend/plotting/Makefile.am:
	Updated for the new files.
2000-06-16 19:04:15 +00:00
arno bf66221efc * src/frontend/Makefile.am src/frontend/plotting/Makefile.am
src/frontend/plotting/plotcurv.c
	src/frontend/plotting/plotcurv.h
	src/frontend/plotcurv.c src/frontend/plotcurv.h: Moved
	plotting related files into plotting subdirectory.
2000-06-15 21:42:01 +00:00
arno 0951379198 * src/frontend/Makefile.am
src/frontend/plotting/Makefile.am
	src/frontend/plotting/graphdb.c
	src/frontend/plotting/graphdb.h
	src/frontend/graphdb.c src/frontend/graphdb.h: Moved plotting
	related files into plotting directory.
2000-06-15 21:37:33 +00:00
arno 9d2cbb06b7 * src/ngspice.c src/devices/dev.c: Moved AN_* defines to
dev.c.

	* src/analysis/cktpzset.c: Removed unused code.

	* tests/polezero/.cvsignore tests/polezero/Makefile.am
	tests/polezero/filt_multistage.cir
	tests/polezero/filt_multistage.out tests/polezero/filt_rc.cir
	tests/polezero/filt_rc.out: New files to test pole zero
	operations.

	* configure.in tests/Makefile.am: Updated for new files.
2000-06-11 10:32:50 +00:00
arno e563776de8 * TODO src/circuit/inp2dot.c: Refactoring of the function
completed.
2000-06-11 10:10:45 +00:00
pnenzi 4ca742ec74 Added RES_SCALE "question". This fix the sensitivity analysis error 2000-06-05 19:03:44 +00:00
pnenzi 9136267560 Added scale parameter to resistor model. Updated documentation and tests 2000-06-04 11:37:29 +00:00
pnenzi 090c6b6d6f Added multiplicity parameter m to resistors and updated tests 2000-06-04 09:02:39 +00:00
arno 1025e978bc * src/include/complex.h, src/include/macros.h,
src/include/memory.h, src/maths/sparse/spdefs.h: Moved definitions
        of complex into complex.h.  There are three different ways to
        declare a complex number in Spice.  We need further work to reduce
        this to only one.

        * src/maths/cmaths/Makefile.am, src/maths/cmaths/.cvsignore,
        src/maths/cmaths/test_cx_ph.c:  Added a new test and updated the
        corresponding support files.
2000-06-03 12:08:35 +00:00
arno 7e88315320 * src/circuit/inp2dot.c: Refactoring introduced a bug in the
line parsing.  Adding line as an extra variable to the
	refactored functions, fixed it.
2000-06-02 18:49:38 +00:00
arno b426eaf349 * src/circuit/inp2dot.c: Integrated patch from Manfred
Metzger.  Circuit cards got parsed wrongly.
2000-06-01 11:08:12 +00:00
arno 5b7863e305 * src/maths/cmaths/Makefile.am, src/maths/cmaths/test_cx_mag.c,
src/maths/cmaths/test_cx_j.c: Added first testcases for complex
	math library.
2000-05-30 19:36:33 +00:00
arno ded99cd9e9 * inperror.c: Dynamic allocation through asprintf. 2000-05-29 19:42:43 +00:00
pnenzi d6cfb4b626 Corrected errors I made during last commit. Paolo
Arno, sorry for the notdef.
2000-05-26 08:35:05 +00:00
arno 2395c7bc99 * src/circuit/inp2dot.c: First refactoring of INP2dot into smaller
functions.  Still needs work.
2000-05-25 22:01:44 +00:00
arno c4e2e82d42 * ifeval.c ifnewuid.c inp.h inp2b.c inp2c.c inp2d.c
inp2e.c inp2f.c inp2g.c inp2h.c inp2i.c inp2j.c
	inp2k.c inp2l.c inp2m.c inp2o.c inp2q.c inp2r.c inp2s.c
	inp2t.c inp2u.c inp2v.c inp2w.c inp2z.c inpaname.c inpapnam.c
	inpcfix.c inpdomod.c inpdpar.c inperrc.c inperror.c inpeval.c
	inpfindl.c inpgmod.c inpgstr.c inpgtitl.c inpgtok.c inpgval.c
	inpkmods.c inplist.c inplkmod.c inpmkmod.c inpmktmp.c
	inppas1.c inppas2.c inppname.c inpptree.c inpsymt.c inptyplk.c
	ptfuncs.c: Cosmetic updates.

	* sperror.c: Removed clutter and MALLOC() call.

	* Makefile.am inp2dot.c inpdoopt.c: Paolo commented out all of
	inpdoopt.c, I removed it from the repository.  Updated
	inp2dot.c and Makefile.am as well.
2000-05-25 20:25:40 +00:00
arno 1dcc3ea6ff * inpdefs.h sperror.h: Removed/updated SPerror() function
declaration.

	* cktdefs.h spmatrix.h: Removed non ANSI function declarations.
2000-05-25 19:46:56 +00:00
pnenzi 491883fe33 Small bug fix in the code 2000-05-23 20:19:19 +00:00
pnenzi f9144f90b3 Applied Widlok patch 2000-05-23 20:04:32 +00:00
pnenzi 808021fef2 Applied Widlok patch (inp2dot.c and inpdoopt.c) and support for u2 function 2000-05-23 20:02:29 +00:00
pnenzi fbfd009182 Introduced Widlok u2 function 2000-05-23 19:59:13 +00:00
pnenzi 26d5bdd223 Modified the parsing of ac parameter. Now it reflects the spice parsing
standard
2000-05-22 05:18:58 +00:00
pnenzi 270ac06e6b Removed reference to fteconst.h in Makefile.am 2000-05-22 05:17:17 +00:00
arno 3d4cf4d86c * src/include/Makefile.am src/include/cpstd.h
src/include/dvec.h src/include/fteinput.h
	src/include/ifsim.h src/include/wordlist.h
	src/frontend/arg.c src/frontend/display.c
	src/frontend/doplot.c src/frontend/graphdb.c
	src/frontend/plotcurv.c src/frontend/points.c
	src/frontend/postcoms.c src/frontend/postsc.c
	src/frontend/plotting/graf.c src/frontend/plotting/grid.c
	src/frontend/plotting/plot5.c src/frontend/plotting/x11.c
	src/include/graph.h: Reduced dependency on header files
	(avoid unneccessary recompilation on changes)

	* src/include/fteconst.h src/include/ftedata.h
	src/include/ftegraph.h: Removed unneeded header files.
2000-05-13 17:28:16 +00:00
arno 353282b3ef * src/frontend/diff.c src/frontend/diff.h
src/frontend/evaluate.c src/frontend/evaluate.h
	src/frontend/parse.c src/frontend/parse.h: Trimmed down the
	amount of included files.

	* src/include/macros.h: Removed complex functionality
	duplicated from src/include/complex.h

	src/include/Makefile.am src/include/ftecmath.h: Removed header
	file and adjusted Makefile.am
2000-05-13 16:22:16 +00:00
arno b4b54b3aa5 * src/circuit/inptyplk.c: Trimmed unneeded header files and
improved formatting a bit.

	* src/circuit/Makefile.am src/circuit/inppas1.h
	src/circuit/inppas1.c src/circuit/inppas2.h
	src/circuit/inppas2.c: Added header files and cut down
	unneeded include files.
2000-05-13 15:56:47 +00:00
arno 6886b8793b * configure.in src/main.c src/frontend/com_let.c: Updates. 2000-05-13 11:02:40 +00:00
arno 1662ce6e11 * src/hlp/readhelp.c src/parser/var2.c: reordered comparison
functions and adjusted their prototypes to remove a compiler
	warning about qsort.
2000-05-13 11:02:04 +00:00
arno 60a224ee0e * src/frontend/com_compose.c src/frontend/com_display.c
src/frontend/com_setscale.c src/frontend/cpitf.c
	src/frontend/doplot.c: Update for header files.
2000-05-13 11:00:43 +00:00
arno 5492f4cb89 * src/frontend/interp.c: Broken up into individual files and
moved into their own subdirectory: src/maths/poly.

	* src/maths/poly/.cvsignore src/maths/poly/Makefile.am
	src/maths/poly/interpolate.c src/maths/poly/interpolate.h
	src/maths/poly/poly.h src/maths/poly/polyderiv.c
	src/maths/poly/polyderiv.h src/maths/poly/polyeval.c
	src/maths/poly/polyeval.h src/maths/poly/polyfit.c
	src/maths/poly/polyfit.h: The resulting files.

	* src/Makefile.am src/maths/Makefile.am: Updates for the new
	library.
2000-05-13 10:56:58 +00:00
arno be76b6dd44 * src/include/bool.h src/include/cpextern.h
src/include/fteext.h: Added proper prototypes to avoid compile
	errors.
2000-05-13 10:43:15 +00:00
arno 1840e80330 * src/include/Makefile.am: Update for removed header files. 2000-05-13 10:42:04 +00:00
arno b6879a3bcb * src/include/arch.h src/include/ftegraf.h
src/include/struct.h: These include files never got used;
	removed.
2000-05-13 10:41:13 +00:00
arno f476a1ea98 * 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: Removed some unused includes.
2000-05-13 10:36:41 +00:00
arno 2507d4c7bf * src/frontend/graf.c src/frontend/graf.h: Moved these
files...

	* src/frontend/plotting/graf.c src/frontend/plotting/graf.h:
	... here.
2000-05-13 10:31:55 +00:00