]> git.saurik.com Git - bison.git/blame - lib/quote.c
Regen.
[bison.git] / lib / quote.c
CommitLineData
ff4a34be
AD
1/* Written by Paul Eggert <eggert@twinsun.com> */
2
3#if HAVE_CONFIG_H
4# include <config.h>
5#endif
6
7#include <sys/types.h>
8#include <quotearg.h>
9#include <quote.h>
10
11/* Return an unambiguous printable representated, allocated in slot N,
12 for NAME, suitable for diagnostics. */
13char const *
14quote_n (int n, char const *name)
15{
16 return quotearg_n_style (n, locale_quoting_style, name);
17}
18
19/* Return an unambiguous printable representation of NAME, suitable
20 for diagnostics. */
21char const *
22quote (char const *name)
23{
24 return quote_n (0, name);
25}