X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fcpp2%2Fcppmain.c;h=95fd2955ea1ba8439b25de04d60877880a9a3aec;hb=9da25543b00ca13d1a3a8497f5293755ada61a38;hp=d01b4c25b2585355b5547322b76a32b6970c4499;hpb=47b13a79e8ca414ac878c566dad991d2ff247be6;p=fw%2Fsdcc diff --git a/support/cpp2/cppmain.c b/support/cpp2/cppmain.c index d01b4c25..95fd2955 100644 --- a/support/cpp2/cppmain.c +++ b/support/cpp2/cppmain.c @@ -344,14 +344,8 @@ print_line (special_flags) putc ('\n', print.outf); print.printed = 0; - /* SDCC likes #line, not # number. Should be fixed... */ -#if 0 fprintf (print.outf, "# %u \"%s\"%s%s\n", print.lineno, print.last_fname, special_flags, print.syshdr_flags); -#else - fprintf (print.outf, "#line %u \"%s\"%s%s\n", - print.lineno, print.last_fname, special_flags, print.syshdr_flags); -#endif } /* Callbacks. */ @@ -447,6 +441,11 @@ cb_def_pragma (pfile) print.lineno++; } +void +cpp_output_string (const char *s) { + fputs (s, print.outf); +} + /* Dump out the hash table. */ static int dump_macro (pfile, node, v)