Fixed compilation with debugging enabled

This commit is contained in:
Pierre Pronchery 2008-02-27 00:16:01 +00:00
parent e03c887ee1
commit 94c4c94436

View File

@ -234,13 +234,14 @@ static int _cpp_filter_trigraphs(int * c, void * data)
if(_trigraphs_get(cp->trigraphs_last, c) != 0) if(_trigraphs_get(cp->trigraphs_last, c) != 0)
{ {
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "DEBUG: last=%c\n", last); fprintf(stderr, "DEBUG: last=%c\n", cp->trigraphs_last);
#endif #endif
cp->trigraphs_last_cnt = 2; cp->trigraphs_last_cnt = 2;
return 2; return 2;
} }
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "DEBUG: filtered \"??%c\" into \"%c\"\n", last, *c); fprintf(stderr, "DEBUG: filtered \"??%c\" into \"%c\"\n",
cp->trigraphs_last, *c);
#endif #endif
return 0; return 0;
} }
@ -385,7 +386,7 @@ static int _cpp_callback_operator(Parser * parser, Token * token, int c,
if(i == cp->operators_cnt) /* nothing found */ if(i == cp->operators_cnt) /* nothing found */
return 1; return 1;
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "DEBUG: cpp_callback_operator('%c')\n", c); fprintf(stderr, "%s%c%s", "DEBUG: cpp_callback_operator('", c, "')\n");
#endif #endif
for(pos = 0; i < j;) for(pos = 0; i < j;)
{ {