]> git.saurik.com Git - bison.git/blame - lib/quote.c
* src/bison.simple: Define type yystype instead of YYSTYPE, and
[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
4a0d8936
PE
7#if HAVE_STDDEF_H
8# include <stddef.h> /* For the definition of size_t on windows w/MSVC. */
9#endif
ff4a34be
AD
10#include <sys/types.h>
11#include <quotearg.h>
12#include <quote.h>
13
14/* Return an unambiguous printable representated, allocated in slot N,
15 for NAME, suitable for diagnostics. */
16char const *
17quote_n (int n, char const *name)
18{
19 return quotearg_n_style (n, locale_quoting_style, name);
20}
21
22/* Return an unambiguous printable representation of NAME, suitable
23 for diagnostics. */
24char const *
25quote (char const *name)
26{
27 return quote_n (0, name);
28}