From 94c4c94436ffd8a6f302617ec930ece7b3cb0bd7 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 27 Feb 2008 00:16:01 +0000 Subject: [PATCH] Fixed compilation with debugging enabled --- src/cpp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cpp.c b/src/cpp.c index e2c115c..52a920b 100644 --- a/src/cpp.c +++ b/src/cpp.c @@ -234,13 +234,14 @@ static int _cpp_filter_trigraphs(int * c, void * data) if(_trigraphs_get(cp->trigraphs_last, c) != 0) { #ifdef DEBUG - fprintf(stderr, "DEBUG: last=%c\n", last); + fprintf(stderr, "DEBUG: last=%c\n", cp->trigraphs_last); #endif cp->trigraphs_last_cnt = 2; return 2; } #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 return 0; } @@ -385,7 +386,7 @@ static int _cpp_callback_operator(Parser * parser, Token * token, int c, if(i == cp->operators_cnt) /* nothing found */ return 1; #ifdef DEBUG - fprintf(stderr, "DEBUG: cpp_callback_operator('%c')\n", c); + fprintf(stderr, "%s%c%s", "DEBUG: cpp_callback_operator('", c, "')\n"); #endif for(pos = 0; i < j;) {