mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
c: stop defining YY_LOCATION_PRINT when locations are not enabled
* data/skeletons/c.m4 (b4_yy_location_print_define): here.
This commit is contained in:
@@ -1076,7 +1076,7 @@ yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
|
|||||||
res += YYFPRINTF (yyo, "-%d", end_col);
|
res += YYFPRINTF (yyo, "-%d", end_col);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
# define YY_LOCATION_PRINT(File, Loc) \
|
# define YY_LOCATION_PRINT(File, Loc) \
|
||||||
yy_location_print_ (File, &(Loc))
|
yy_location_print_ (File, &(Loc))
|
||||||
@@ -1084,11 +1084,7 @@ yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
|
|||||||
# else
|
# else
|
||||||
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
||||||
# endif
|
# endif
|
||||||
# endif /* !defined YY_LOCATION_PRINT */]],
|
# endif /* !defined YY_LOCATION_PRINT */]])
|
||||||
[[/* This macro is provided for backward compatibility. */
|
|
||||||
# ifndef YY_LOCATION_PRINT
|
|
||||||
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
|
||||||
# endif]])
|
|
||||||
])
|
])
|
||||||
|
|
||||||
# b4_yyloc_default
|
# b4_yyloc_default
|
||||||
|
|||||||
Reference in New Issue
Block a user