]> git.saurik.com Git - bison.git/blobdiff - src/location.h
* src/getargs.c (long_options): Remove duplicates.
[bison.git] / src / location.h
index 94afc24426740a375a087fae8451945dadac89fd..d259334d4044d555274835a43518b53dcb99c67f 100644 (file)
@@ -40,20 +40,6 @@ do {                                         \
   (Loc).last_column =  (Loc).last_line = 1;    \
 } while (0)
 
-/* Advance of NUM columns. */
-# define LOCATION_COLUMNS(Loc, Num)            \
-do {                                           \
-  (Loc).last_column += Num;                    \
-} while (0)
-
-
-/* Advance of NUM lines. */
-# define LOCATION_LINES(Loc, Num)              \
-do {                                           \
-  (Loc).last_column = 1;                       \
-  (Loc).last_line += Num;                      \
-} while (0)
-
 
 /* Restart: move the first cursor to the last position. */
 # define LOCATION_STEP(Loc)                    \
@@ -63,11 +49,12 @@ do {                                                \
 } 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 {                                                                   \
-  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,                     \