]> git.saurik.com Git - bison.git/blob - lib/quote.c
Update.
[bison.git] / lib / quote.c
1 /* Written by Paul Eggert <eggert@twinsun.com> */
2
3 #if HAVE_CONFIG_H
4 # include <config.h>
5 #endif
6
7 #if HAVE_STDDEF_H
8 # include <stddef.h> /* For the definition of size_t on windows w/MSVC. */
9 #endif
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. */
16 char const *
17 quote_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. */
24 char const *
25 quote (char const *name)
26 {
27 return quote_n (0, name);
28 }