17 |
|
|
18 |
/* Written by Paul Eggert <eggert@twinsun.com> */ |
/* Written by Paul Eggert <eggert@twinsun.com> */ |
19 |
|
|
20 |
|
#ifndef QUOTEARG_H_ |
21 |
|
# define QUOTEARG_H_ 1 |
22 |
|
|
23 |
/* Basic quoting styles. */ |
/* Basic quoting styles. */ |
24 |
enum quoting_style |
enum quoting_style |
25 |
{ |
{ |
33 |
}; |
}; |
34 |
|
|
35 |
/* For now, --quoting-style=literal is the default, but this may change. */ |
/* For now, --quoting-style=literal is the default, but this may change. */ |
36 |
#ifndef DEFAULT_QUOTING_STYLE |
# ifndef DEFAULT_QUOTING_STYLE |
37 |
# define DEFAULT_QUOTING_STYLE literal_quoting_style |
# define DEFAULT_QUOTING_STYLE literal_quoting_style |
38 |
#endif |
# endif |
39 |
|
|
40 |
/* Names of quoting styles and their corresponding values. */ |
/* Names of quoting styles and their corresponding values. */ |
41 |
extern char const *const quoting_style_args[]; |
extern char const *const quoting_style_args[]; |
43 |
|
|
44 |
struct quoting_options; |
struct quoting_options; |
45 |
|
|
46 |
#ifndef PARAMS |
# ifndef PARAMS |
47 |
# if defined PROTOTYPES || defined __STDC__ |
# if defined PROTOTYPES || defined __STDC__ |
48 |
# define PARAMS(Args) Args |
# define PARAMS(Args) Args |
49 |
# else |
# else |
50 |
# define PARAMS(Args) () |
# define PARAMS(Args) () |
51 |
|
# endif |
52 |
# endif |
# endif |
|
#endif |
|
53 |
|
|
54 |
/* The functions listed below set and use a hidden variable |
/* The functions listed below set and use a hidden variable |
55 |
that contains the default quoting style options. */ |
that contains the default quoting style options. */ |
110 |
|
|
111 |
/* Equivalent to quotearg_char (ARG, ':'). */ |
/* Equivalent to quotearg_char (ARG, ':'). */ |
112 |
char *quotearg_colon PARAMS ((char const *arg)); |
char *quotearg_colon PARAMS ((char const *arg)); |
113 |
|
|
114 |
|
#endif /* !QUOTEARG_H_ */ |