diff --git a/src/libs/tgf/formula.cpp b/src/libs/tgf/formula.cpp index 9210f512..90b30e2c 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;