From 766122a4a0e138086639a8555b2a0c6cb75247b8 Mon Sep 17 00:00:00 2001 From: pouillot Date: Tue, 27 Dec 2011 14:55:00 +0000 Subject: [PATCH] Commented-out debug traces about formulas in params files git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4309 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 4dfd22f69f79f766b84bc35918621120ab157bec Former-commit-id: 18ff579ccdbc391c13de3f27c2de5c473ed28bb0 --- src/libs/tgf/formula.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/libs/tgf/formula.cpp b/src/libs/tgf/formula.cpp index 9210f512f..90b30e2ca 100644 --- a/src/libs/tgf/formula.cpp +++ b/src/libs/tgf/formula.cpp @@ -244,7 +244,7 @@ static char pushBool( tPSStackItem **topStack, char boolean ) { tPSStackItem *item = (tPSStackItem*)malloc( sizeof(tPSStackItem) ); - GfLogDebug( "pushBool( ...., %s )\n", boolean ? "true" : "false" ); + //GfLogDebug( "pushBool( ...., %s )\n", boolean ? "true" : "false" ); item->type = PSTYPE_BOOL; item->d.boolean = boolean; @@ -258,7 +258,7 @@ static char pushBool( tPSStackItem **topStack, char boolean ) static char pushDouble( tPSStackItem **topStack, double value ) { - GfLogDebug( "pushDouble( ..., %f )\n", value ); + //GfLogDebug( "pushDouble( ..., %f )\n", value ); tPSStackItem *item = (tPSStackItem*)malloc( sizeof(tPSStackItem) ); item->type = PSTYPE_DOUBLE; item->d.doublefloat = value; @@ -272,7 +272,7 @@ static char pushDouble( tPSStackItem **topStack, double value ) static char pushCommand( tPSStackItem **topStack, void *v_commands ) { - GfLogDebug( "pushCommand\n" ); + //GfLogDebug( "pushCommand\n" ); tPSCommand *commands = (tPSCommand*)v_commands; tPSStackItem *item = (tPSStackItem*)malloc( sizeof(tPSStackItem) ); @@ -1269,10 +1269,10 @@ static tFormAnswer eval( tFormNode *node, void *parmHandle, char const *path ) break; } - if( result.string ) - GfLogDebug( "Result after eval: %s\n", result.string ); - else - GfLogDebug( "No string result after eval (%x)\n", node->type ); + // if( result.string ) + // GfLogDebug( "Result after eval: %s\n", result.string ); + // else + // GfLogDebug( "No string result after eval (%x)\n", node->type ); return result; } @@ -1283,7 +1283,7 @@ char GfFormCalcFuncNew(void *cmd, void *parmHandle, char const *path, char *bool tFormAnswer answer; answer = eval( formula->node, parmHandle, path ); - GfLogDebug( "answer = %x\n", answer.validFields ); + //GfLogDebug( "answer = %x\n", answer.validFields ); if( boolean && ( answer.validFields & FORMANSWER_TYPE_BOOLEAN ) ) *boolean = answer.boolean; if( integer && ( answer.validFields & FORMANSWER_TYPE_INTEGER ) ) @@ -1812,7 +1812,7 @@ static tFormAnswer func_toAlpha( tFormNode *node, void *parmHandle, char const * result.string = (char*)malloc( sizeof( char ) * ( length + 1 ) ); result.string[ length ] = '\0'; - GfLogDebug( "result.string[ %d ] = \'\\0\'\n;", length ); + //GfLogDebug( "result.string[ %d ] = \'\\0\'\n", length ); for( xx = length - 1; xx >= 0; --xx ) { result.string[ xx ] = 'A' + ( number % 26 ); number -= number % 26;