]> git.saurik.com Git - bison.git/blob - lib/quote.c
Add tests/regression.at and tests/suite.at.
[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 #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. */
13 char const *
14 quote_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. */
21 char const *
22 quote (char const *name)
23 {
24 return quote_n (0, name);
25 }