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