X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fcpp2%2Fcpplib.c;h=93621adb25554671a36eba1f6909bbe0f6ff7437;hb=0085df3b97e24b41738b93441d0aa012c618cba9;hp=2b3512b8cc87b6abf84afc7d96fe53aff6452c93;hpb=10ad364006038b2154eba9402fc70aabd90ce708;p=fw%2Fsdcc diff --git a/support/cpp2/cpplib.c b/support/cpp2/cpplib.c index 2b3512b8..93621adb 100644 --- a/support/cpp2/cpplib.c +++ b/support/cpp2/cpplib.c @@ -111,6 +111,8 @@ static struct answer ** find_answer PARAMS ((cpp_hashnode *, const struct answer *)); static void handle_assertion PARAMS ((cpp_reader *, const char *, int)); +extern cpp_output_string (const char *s); + /* This is the table of directive handlers. It is ordered by frequency of occurrence; the numbers at the end are directive counts from all the source code I have lying around (egcs and libc @@ -1285,7 +1287,9 @@ _cpp_do__Pragma (pfile) } buffer = destringize (&string.val.str, &len); - run_directive (pfile, T_PRAGMA, BUF_PRAGMA, (char *) buffer, len); + buffer[len] = 0; + cpp_output_string ("\n#pragma "); cpp_output_string (buffer); cpp_output_string ("\n"); + //run_directive (pfile, T_PRAGMA, BUF_PRAGMA, (char *) buffer, len); free ((PTR) buffer); }