Commit Graph

43 Commits

Author SHA1 Message Date
rlar d26015586c #1/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:27:09 +00:00
rlar 0892d04c8a explicit `int' casts for some ptrdiff_t expressions, where an `int' seems to be big enough 2011-07-09 19:45:22 +00:00
h_vogt e6c86b4d98 explicit casting double -> int etc. 2011-06-11 17:07:38 +00:00
rlar 23056573d8 code cleanup, drop NULL pointer casts 2011-04-28 15:59:36 +00:00
rlar 0b6a557334 code cleanup 2011-04-27 18:30:15 +00:00
h_vogt 6d7ee3632e remoce compiler warnings 2010-12-30 14:49:35 +00:00
dwarning 3ab9e6d060 cvs ignore .libs 2010-12-12 09:42:47 +00:00
dwarning b964cf949c cvs ignore *.lo and *.la 2010-12-12 09:34:10 +00:00
rlar e6c30efe46 Nr 4/5 (x = ...) != NULL , swallow warnings 2010-11-19 18:52:44 +00:00
rlar abb87a6115 rename `IGNORE()' --> `NG_IGNORE()' 2010-11-16 20:38:24 +00:00
rlar 80286e0032 pour `IGNORE()' all over the source 2010-11-16 19:11:32 +00:00
rlar c3f20f8321 cleanup TMALLOC etc macros 2010-10-31 19:36:57 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
rlar 3cc50320e3 rename ALLOC, REALLOC, CALLOC, FREE, in the "src/maths/sparse" domain 2010-10-24 12:51:43 +00:00
rlar cf3514b9ae remove ancient #defines for AND OR NOT substitute with && || ! 2010-10-09 11:40:00 +00:00
rlar bfc6636b61 fix txfree() prototype 2010-08-15 17:13:17 +00:00
rlar f4d0163885 use the types MatrixPtr and SMPmatrix instead of void and char *
both are the same thing,
     MatrixPtr is used inside the sparse/* domain,
     SMPmatrix is used in the rest of spice
  remove casts, which are no longer necessary
2010-07-23 17:33:10 +00:00
rlar 1ee29c3e96 use a void* instead of a char* for anonymous `InitInfo' in src/sparse/*.c 2010-07-23 17:23:13 +00:00
rlar 3e95037b0e convert K&R function definitions to ansi style 2010-07-23 17:16:27 +00:00
rlar a0b0f550ab ansi style function args for a function pointer arg of spInitialize() 2010-07-10 14:06:14 +00:00
rlar 2744462d01 void *AllocatedPtr 2010-07-04 17:41:17 +00:00
rlar b58722b18b remove redundant nested function declarations 2010-06-25 19:49:13 +00:00
h_vogt 71c371485c K&R->ANSI patches by R. Larice 2010-02-13 16:01:56 +00:00
h_vogt 257d218893 option noinit, ref. to _logb 2009-08-22 16:54:03 +00:00
dwarning 780eab118b only a DOS/UNIX file problem 2008-12-07 10:08:11 +00:00
dwarning b32feaa18d hopefull better scalb handling 2008-11-19 19:57:27 +00:00
pnenzi fa549df82a TCLSPICE IMPORT + libtool + measure2 command 2008-08-27 13:39:05 +00:00
pnenzi 7f6ad5c706 Updated to new automake standard. Replaced all INCLUDES with AM_CPPFLAGS 2008-08-24 17:12:50 +00:00
pnenzi 5296cd51b8 Partially applied Paul Reich patch (missing include and c++ style comments) 2005-12-04 08:52:10 +00:00
pnenzi 1260ae08db Update autoconf scripts and applied Niessner patch to remove compiler warnings. 2004-07-09 18:37:25 +00:00
pnenzi 858f0442eb Bug fixing. Added externs for memory allocation functions and fixed SMPcDProd code. 2003-08-23 19:49:03 +00:00
pnenzi b8cece5fba Modified code for CIDER simulator. 2003-08-14 11:46:55 +00:00
pnenzi 63c93eca79 Modified sparse include files to obtain better separation from rest of the code.
(added spFindElement in spbuild.c needed by cider).
2003-08-13 23:27:17 +00:00
pnenzi 9ee4064c46 Added more separation between sparse and the rest of the package. 2003-08-13 13:00:12 +00:00
pnenzi 8aa1dc20a8 Bug fix: incorrect definition of CALLOC ifndef HAVE_LIBGC 2001-02-09 23:17:27 +00:00
pnenzi d735c9a871 Some code cleanup 2001-02-09 08:18:35 +00:00
pnenzi 8b7f406003 Modified CALLOC macro. Now uses calloc if LIBGC is not installed and malloc otherwise.
LIBGC provides a malloc that clean the allocated memory.
2001-02-06 18:29:13 +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 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 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 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
arno e92356e43c * DEVICES: Adjusted spacing.
* doc/.cvsignore man/.cvsignore man/man1/.cvsignore
	src/.cvsignore src/analysis/.cvsignore src/circuit/.cvsignore
	src/devices/.cvsignore src/devices/asrc/.cvsignore
	src/devices/bjt/.cvsignore src/devices/bsim1/.cvsignore
	src/devices/bsim2/.cvsignore src/devices/bsim3/.cvsignore
	src/devices/bsim3soi_dd/.cvsignore
	src/devices/bsim3soi_fd/.cvsignore
	src/devices/bsim3soi_pd/.cvsignore
	src/devices/bsim3v1/.cvsignore src/devices/bsim3v2/.cvsignore
	src/devices/bsim4/.cvsignore src/devices/cap/.cvsignore
	src/devices/cccs/.cvsignore src/devices/ccvs/.cvsignore
	src/devices/csw/.cvsignore src/devices/devsup/.cvsignore
	src/devices/dio/.cvsignore src/devices/disto/.cvsignore
	src/devices/ind/.cvsignore src/devices/isrc/.cvsignore
	src/devices/jfet/.cvsignore src/devices/jfet2/.cvsignore
	src/devices/ltra/.cvsignore src/devices/mes/.cvsignore
	src/devices/mos1/.cvsignore src/devices/mos2/.cvsignore
	src/devices/mos3/.cvsignore src/devices/mos6/.cvsignore
	src/devices/res/.cvsignore src/devices/sw/.cvsignore
	src/devices/tra/.cvsignore src/devices/urc/.cvsignore
	src/devices/vccs/.cvsignore src/devices/vcvs/.cvsignore
	src/devices/vsrc/.cvsignore src/frontend/.cvsignore
	src/hlp/.cvsignore src/include/.cvsignore src/maths/.cvsignore
	src/maths/cmaths/.cvsignore src/maths/ni/.cvsignore
	src/maths/sparse/.cvsignore src/misc/.cvsignore
	src/parser/.cvsignore tests/.cvsignore: Help CVS ignore
	automatically regenerated files.
2000-05-01 18:23:50 +00:00
pnenzi 978f1c32a2 Initial revision 2000-04-27 20:03:57 +00:00