better TRACEing
This commit is contained in:
parent
9844e8851b
commit
da6d5ea3d7
|
|
@ -32,7 +32,7 @@ IFeval(IFparseTree * tree, double gmin, double *result, double *vals,
|
|||
INPparseTree *myTree = (INPparseTree *) tree;;
|
||||
|
||||
#ifdef TRACE
|
||||
INPptPrint("calling PTeval, tree = ", myTree);
|
||||
INPptPrint("calling PTeval, tree = ", tree);
|
||||
printf("values:");
|
||||
for (i = 0; i < myTree->p.numVars; i++)
|
||||
printf("\tvar%d = %lg\n", i, vals[i]);
|
||||
|
|
|
|||
|
|
@ -1027,11 +1027,10 @@ static PTelement *PTlexer(char **line)
|
|||
return (&el);
|
||||
}
|
||||
|
||||
#ifdef notdef
|
||||
#ifdef TRACE
|
||||
|
||||
/* Debugging stuff. */
|
||||
|
||||
|
||||
void printTree(INPparseNode *);
|
||||
|
||||
void INPptPrint(char *str, IFparseTree * ptree)
|
||||
|
|
|
|||
|
|
@ -27,12 +27,15 @@ int INPtypelook(char *type)
|
|||
for (i = 0; i < ft_sim->numDevices; i++) {
|
||||
|
||||
#ifdef TRACE
|
||||
/* SDB debug statement */
|
||||
printf("In INPtypelook, checking model type = %s against existing model = %s, . . .\n", type, (*(ft_sim->devices)[i]).name );
|
||||
/* SDB debug statement */
|
||||
if ((ft_sim->devices[i]) == NULL)
|
||||
printf("In INPtypelook, checking model type = %s against existing model = %s, . . .\n", type, "NULL");
|
||||
else
|
||||
printf("In INPtypelook, checking model type = %s against existing model = %s, . . .\n", type, (*(ft_sim->devices)[i]).name );
|
||||
#endif
|
||||
|
||||
if ((ft_sim->devices)[i] && strcmp(type, (*(ft_sim->devices)[i]).name) == 0) {
|
||||
/*found the device - return it */
|
||||
/* found the device - return it */
|
||||
|
||||
#ifdef TRACE
|
||||
/* SDB debug statement */
|
||||
|
|
@ -47,6 +50,6 @@ int INPtypelook(char *type)
|
|||
/* SDB debug statement */
|
||||
printf("In INPtypelook, device not found!\n");
|
||||
#endif
|
||||
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
#define SE 0 // String termination
|
||||
#define BorderSize 8 // Umrandung des Stringfeldes
|
||||
#define SBufSize 100 // Groesze des Stringbuffers
|
||||
#define IOBufSize 1024 // Groesze des printf-Buffers
|
||||
#define IOBufSize 4096 // Groesze des printf-Buffers
|
||||
#define HistSize 20 // Zeilen History-Buffer
|
||||
#define StatusHeight 25 // Hoehe des Status Bars
|
||||
#define StatusFrame 2 // Abstand Statusbar / StatusElement
|
||||
|
|
|
|||
Loading…
Reference in New Issue