Oops, I forgot to commit the ChangeLog
[fw/sdcc] / support / cpp2 / cppmain.c
index d01b4c25b2585355b5547322b76a32b6970c4499..95fd2955ea1ba8439b25de04d60877880a9a3aec 100644 (file)
@@ -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)