debug output, numparam char arrays
This commit is contained in:
parent
2750b076bb
commit
4609081714
|
|
@ -1,5 +1,9 @@
|
||||||
2009-02-25 Holger Vogt
|
2009-02-25 Holger Vogt
|
||||||
* inpdomod.c:436 error message adapted to existing devices
|
* inpdomod.c:436 error message adapted to existing devices
|
||||||
|
* /frontend/numparam/numparam.h, general.h: length of char arrays
|
||||||
|
set to 40000
|
||||||
|
* inpcom.c: preprocessor flag OUTDECK, if set will save complete
|
||||||
|
deck into debug-out.txt
|
||||||
|
|
||||||
2009-02-25 Dietmar Warning
|
2009-02-25 Dietmar Warning
|
||||||
* spicelib/parser/inp2q.c,155: 5-terminal only for adms bipolars
|
* spicelib/parser/inp2q.c,155: 5-terminal only for adms bipolars
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,10 @@ Author: 1985 Wayne A. Christopher
|
||||||
/* SJB - Uncomment this line for debug tracing */
|
/* SJB - Uncomment this line for debug tracing */
|
||||||
/*#define TRACE*/
|
/*#define TRACE*/
|
||||||
|
|
||||||
|
/* uncomment this line for getting deck output after all
|
||||||
|
manipulations into debug-out.txt */
|
||||||
|
/* #define OUTDECK */
|
||||||
|
|
||||||
/* globals -- wanted to avoid complicating inp_readall interface */
|
/* globals -- wanted to avoid complicating inp_readall interface */
|
||||||
static char *library_file[1000];
|
static char *library_file[1000];
|
||||||
static char *library_name[1000][1000];
|
static char *library_name[1000][1000];
|
||||||
|
|
@ -984,7 +988,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name)
|
||||||
char *global_copy = NULL, keep_char;
|
char *global_copy = NULL, keep_char;
|
||||||
int line_number = 1; /* sjb - renamed to avoid confusion with struct line */
|
int line_number = 1; /* sjb - renamed to avoid confusion with struct line */
|
||||||
FILE *newfp;
|
FILE *newfp;
|
||||||
#ifdef TRACE
|
#if defined(TRACE) || defined(OUTDECK)
|
||||||
FILE *fdo;
|
FILE *fdo;
|
||||||
struct line *tmp_ptr1 = NULL;
|
struct line *tmp_ptr1 = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -1506,7 +1510,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name)
|
||||||
inp_add_control_section(working, &line_number);
|
inp_add_control_section(working, &line_number);
|
||||||
}
|
}
|
||||||
*data = cc;
|
*data = cc;
|
||||||
#ifdef TRACE
|
#if defined(TRACE) || defined(OUTDECK)
|
||||||
/*debug: print into file*/
|
/*debug: print into file*/
|
||||||
if (tmp_ptr1) tfree(tmp_ptr1);
|
if (tmp_ptr1) tfree(tmp_ptr1);
|
||||||
fdo = fopen("debug-out.txt", "w");
|
fdo = fopen("debug-out.txt", "w");
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,9 @@
|
||||||
#define Sini(s) sini(s,sizeof(s)-4)
|
#define Sini(s) sini(s,sizeof(s)-4)
|
||||||
|
|
||||||
|
|
||||||
typedef enum {Maxstr=25004} _nMaxstr; /* was 255, string maxlen, may be up to 32000 or so */
|
/* was 255, then 15000, string maxlen, 40000 to catch really big
|
||||||
|
macros in .model lines */
|
||||||
|
typedef enum {Maxstr=40000} _nMaxstr;
|
||||||
typedef enum {Esc=27} _nEsc;
|
typedef enum {Esc=27} _nEsc;
|
||||||
typedef enum {Tab=9} _nTab;
|
typedef enum {Tab=9} _nTab;
|
||||||
typedef enum {Bs=8} _nBs;
|
typedef enum {Bs=8} _nBs;
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,9 @@ typedef enum {Maxdico=40000} _nMaxdico; /* Size of symbol table*/
|
||||||
/* Composite line length
|
/* Composite line length
|
||||||
This used to be 250 characters, but this is too easy to exceed with a
|
This used to be 250 characters, but this is too easy to exceed with a
|
||||||
.model line, especially when spread over several continuation
|
.model line, especially when spread over several continuation
|
||||||
lines with much white space. I hope 1000 will be enough. */
|
lines with much white space. Set to 40000 to catch really big
|
||||||
typedef enum {Llen=15000} _nLlen;
|
macros in .model lines. Will add 100k of memory compared to previous 25004*/
|
||||||
|
typedef enum {Llen=40000} _nLlen;
|
||||||
|
|
||||||
typedef char str50 [54];
|
typedef char str50 [54];
|
||||||
typedef char str80 [84];
|
typedef char str80 [84];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue