Commit Graph

50 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 9e86e5ca66 rewrite (double)literal --> floating-point-literal 2011-08-09 08:07:56 +00:00
rlar af420a6a01 remove compiler warnings by explicit casting double -> int etc. 2011-06-30 18:48:05 +00:00
rlar 2d1e44787b fix a segfault, when invoking `destroy' while running in batch mode on unix 2011-06-02 13:28:36 +00:00
h_vogt 7365459f75 move #define NUMCOLORS to x11.c 2011-05-03 21:19:57 +00:00
rlar 23056573d8 code cleanup, drop NULL pointer casts 2011-04-28 15:59:36 +00:00
rlar a987113675 cleanup x11 code 2011-04-28 10:52:26 +00:00
rlar e55f9c7fab bugfix, segfault when closing a plot window 2011-04-09 18:50:14 +00:00
rlar 6268d236f0 bug fix a segfault when closing a second x11-window, then resizing the first 2011-04-02 17:16:29 +00:00
rlar a2303d4d78 bug fix a segfault when closing a second X11 window, then resizing the first 2011-02-11 19:02:49 +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 3afbeb53e2 minor rewrite, fix a minor bug in the x11 zoom-in function 2010-11-04 19:42:09 +00:00
rlar 0eccd17d9a add casts for x11 operations, to silence type conversion warnings 2010-11-04 19:35:57 +00:00
rlar 3affeff848 move device dependent colors[] array from `graph' to the x11 specific struct 2010-11-04 19:32:53 +00:00
rlar b4ffca60c4 (int) casts for some `strlen()' expressions 2010-11-02 17:17:43 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
rlar d6353fb9ee struct member devdep, use void* instead of char* 2010-10-24 13:15:35 +00:00
rlar 196262dd1b move the com_*() prototypes around. 2010-10-16 17:09:46 +00:00
rlar 3c3b31fa60 declare some functions `static' 2010-10-15 18:43:52 +00:00
rlar 1693270d35 function rename, Text() -> DevDrawText() 2010-09-08 18:01:42 +00:00
rlar 241783d0b5 use for(;;) instead of while(1) to muffle some visual-C warnings 2010-09-07 20:07:57 +00:00
rlar 6713cb5e00 fix comment 2010-08-10 18:42:59 +00:00
rlar a8c64094fc fix busy waiting loop, when using editline 2010-08-09 18:36:57 +00:00
rlar 2fcbcc5f48 bug fix, implementation of the X11 draw arc implementation. 2010-08-01 13:47:33 +00:00
rlar fe696310d6 muffle `may be used uninitialized' warnings 2010-07-24 18:16:56 +00:00
rlar d44f818cad allow cp_getvar(,CP_BOOL,NULL) to avoid insane usage 2010-07-20 18:41:25 +00:00
rlar a76cd1e104 textual replacement VT_* to CP_*, to avoid conflict in the windows world 2010-07-17 20:48:20 +00:00
rlar 3369d860b4 cast the return values of malloc() function calls 2010-07-01 19:52:23 +00:00
h_vogt dc7d2d01a2 hardcopy button error removed 2010-01-06 22:48:21 +00:00
h_vogt 7dc6417e6d add xfont, wfont, wfont_size variables 2010-01-02 18:05:07 +00:00
h_vogt ed1c4cb09c allow x-button to close plot windows 2009-02-12 23:08:36 +00:00
h_vogt 9b5c583f30 command 'destroy' removes graphics window before deleting data 2009-02-10 19:00:24 +00:00
pnenzi 5bcb23d795 Removed casting for strictier syntax of recent gcc compilers. 2005-08-22 19:29:20 +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
sjborley c87326ebc8 Replaced extern references in .c file with #include of suitable headers. 2005-05-29 01:05:33 +00:00
sjborley cb247a15fb Added support for the BSD licensed editline library (libedit). 2005-05-06 23:43:46 +00:00
pnenzi 985d977197 Applied Steven Borley patch for numparam and frontend. See Changelog. 2005-04-24 21:17:31 +00:00
pnenzi 1260ae08db Update autoconf scripts and applied Niessner patch to remove compiler warnings. 2004-07-09 18:37:25 +00:00
pnenzi b03a70760b Applied Stuart's 12-03-2003 patch. Support for readline (disabled) and for node names in the form (x,y). 2004-01-10 21:39:36 +00:00
pnenzi 8686a73047 Added readline patch (support for command history). 2003-08-14 19:21:10 +00:00
pnenzi 22acf4b96a Simple changes from patches to spice 3f4 (G. Roehrich) that restored the drawing of lines and boxes in plot windows in truecolor displays. 2001-04-15 19:32:25 +00:00
pnenzi d735c9a871 Some code cleanup 2001-02-09 08:18:35 +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 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 d6cfb4b626 Corrected errors I made during last commit. Paolo
Arno, sorry for the notdef.
2000-05-26 08:35:05 +00:00
pnenzi f9144f90b3 Applied Widlok patch 2000-05-23 20:04:32 +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 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