]> git.saurik.com Git - bison.git/blobdiff - src/location.h
* src/location.h (LOCATION_PRINT): Use quotearg slot 3 to avoid
[bison.git] / src / location.h
index 7e8fe61eec75bb4470167f3783e3c7c2e665299a..d259334d4044d555274835a43518b53dcb99c67f 100644 (file)
@@ -49,11 +49,12 @@ do {                                                \
 } while (0)
 
 
 } while (0)
 
 
-/* Output LOC on the stream OUT. */
+/* Output LOC on the stream OUT.
+   Warning: it uses quotearg's slot 3.  */
 # define LOCATION_PRINT(Out, Loc)                                      \
 do {                                                                   \
 # define LOCATION_PRINT(Out, Loc)                                      \
 do {                                                                   \
-  fprintf (stderr, "%s:", quotearg_style (escape_quoting_style,        \
-                                         (Loc).file));                 \
+  fprintf (stderr, "%s:", quotearg_n_style (3, escape_quoting_style,   \
+                                           (Loc).file));               \
   if ((Loc).first_line != (Loc).last_line)                             \
     fprintf (Out, "%d.%d-%d.%d",                                       \
              (Loc).first_line, (Loc).first_column,                     \
   if ((Loc).first_line != (Loc).last_line)                             \
     fprintf (Out, "%d.%d-%d.%d",                                       \
              (Loc).first_line, (Loc).first_column,                     \