mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4: New files, from Fileutils 4.0.27. * src/main.c (printable_version): Remove. * src/lex.c, src/reader.c: Use `quote'. * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
26 lines
550 B
C
26 lines
550 B
C
/* Written by Paul Eggert <eggert@twinsun.com> */
|
|
|
|
#if HAVE_CONFIG_H
|
|
# include <config.h>
|
|
#endif
|
|
|
|
#include <sys/types.h>
|
|
#include <quotearg.h>
|
|
#include <quote.h>
|
|
|
|
/* Return an unambiguous printable representated, allocated in slot N,
|
|
for NAME, suitable for diagnostics. */
|
|
char const *
|
|
quote_n (int n, char const *name)
|
|
{
|
|
return quotearg_n_style (n, locale_quoting_style, name);
|
|
}
|
|
|
|
/* Return an unambiguous printable representation of NAME, suitable
|
|
for diagnostics. */
|
|
char const *
|
|
quote (char const *name)
|
|
{
|
|
return quote_n (0, name);
|
|
}
|