Files
ngspice/src/include/iferrmsg.h
T
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

59 lines
2.6 KiB
C

/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1986 Thomas L. Quarles
**********/
/*
*/
#ifndef IFERRMSGS
#define IFERRMSGS
/* common error message descriptions */
#define E_PAUSE -1 /* pausing on demand */
#define OK 0
#define E_PANIC 1 /* vague internal error for "can't get here" cases */
#define E_EXISTS 2 /* warning/error - attempt to create duplicate */
/* instance or model. Old one reused instead */
#define E_NODEV 3 /* attempt to modify a non-existant instance */
#define E_NOMOD 4 /* attempt to modify a non-existant model */
#define E_NOANAL 5 /* attempt to modify a non-existant analysis */
#define E_NOTERM 6 /* attempt to bind to a non-existant terminal */
#define E_BADPARM 7 /* attempt to specify a non-existant parameter */
#define E_NOMEM 8 /* insufficient memory available - VERY FATAL */
#define E_NODECON 9 /* warning/error - node already connected, old */
/* connection replaced */
#define E_UNSUPP 10 /* the specified operation is unsupported by the */
/* simulator */
#define E_PARMVAL 11 /* the parameter value specified is illegal */
#define E_NOTEMPTY 12 /* deleted still referenced item. */
#define E_NOCHANGE 13 /* simulator can't tolerate any more topology changes */
#define E_NOTFOUND 14 /* simulator can't find something it was looking for */
#define E_BAD_DOMAIN 15 /* output interface begin/end domain calls mismatched */
#define E_PRIVATE 100 /* messages above this number are private to */
/* the simulator and MUST be accompanied by */
/* a proper setting of errMsg */
/* this constant should be added to all such messages */
/* to ensure error free operation if it must be */
/* changed in the future */
extern char *errMsg; /* descriptive message about what went wrong */
/* MUST be tmalloc()'d - front end will tfree() */
/* this should be a detailed message,and is assumed */
/* tmalloc()'d so that you will feel free to add */
/* lots of descriptive information with sprintf*/
extern char *errRtn; /* name of the routine declaring error */
/* should not be tmalloc()'d, will not be free()'d */
/* This should be a simple constant in your routine */
/* and thus can be set correctly even if we run out */
/* of memory */
#endif /*IFERRMSGS*/