]> git.saurik.com Git - bison.git/blobdiff - src/muscle_tab.c
(Torturing the Scanner): Add tests that @oline@,
[bison.git] / src / muscle_tab.c
index abac4a1211ba856dd09d1768d5965bbfee354e6f..92af0df7ba2c4e47f49d6cc247eb0f95602b7e6d 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "system.h"
 #include "hash.h"
+#include "quotearg.h"
 #include "files.h"
 #include "muscle_tab.h"
 #include "getargs.h"
@@ -38,7 +39,7 @@ hash_compare_muscles (void const *x, void const *y)
 {
   const muscle_entry_t *m1 = x;
   const muscle_entry_t *m2 = y;
-  return strcmp (m1->key, m2->key) ? FALSE : TRUE;
+  return strcmp (m1->key, m2->key) == 0;
 }
 
 static unsigned int
@@ -64,13 +65,7 @@ muscle_init (void)
 
   /* Version and input file.  */
   MUSCLE_INSERT_STRING ("version", VERSION);
-  MUSCLE_INSERT_STRING ("filename", infile);
-
-  /* FIXME: there should probably be no default here, only in the
-     skeletons.  */
-
-  /* Default #line formatting.  */
-  MUSCLE_INSERT_STRING ("linef", "#line %d %s\n");
+  MUSCLE_INSERT_C_STRING ("filename", infile);
 }