| 1 | /* quotearg.h - quote arguments for output
|
|---|
| 2 |
|
|---|
| 3 | Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software
|
|---|
| 4 | Foundation, Inc.
|
|---|
| 5 |
|
|---|
| 6 | This program is free software; you can redistribute it and/or modify
|
|---|
| 7 | it under the terms of the GNU General Public License as published by
|
|---|
| 8 | the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 9 | any later version.
|
|---|
| 10 |
|
|---|
| 11 | This program is distributed in the hope that it will be useful,
|
|---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 14 | GNU General Public License for more details.
|
|---|
| 15 |
|
|---|
| 16 | You should have received a copy of the GNU General Public License
|
|---|
| 17 | along with this program; if not, write to the Free Software Foundation,
|
|---|
| 18 | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|---|
| 19 |
|
|---|
| 20 | /* Written by Paul Eggert <[email protected]> */
|
|---|
| 21 |
|
|---|
| 22 | #ifndef QUOTEARG_H_
|
|---|
| 23 | # define QUOTEARG_H_ 1
|
|---|
| 24 |
|
|---|
| 25 | # include <stddef.h>
|
|---|
| 26 |
|
|---|
| 27 | /* Basic quoting styles. */
|
|---|
| 28 | enum quoting_style
|
|---|
| 29 | {
|
|---|
| 30 | literal_quoting_style, /* --quoting-style=literal */
|
|---|
| 31 | shell_quoting_style, /* --quoting-style=shell */
|
|---|
| 32 | shell_always_quoting_style, /* --quoting-style=shell-always */
|
|---|
| 33 | c_quoting_style, /* --quoting-style=c */
|
|---|
| 34 | escape_quoting_style, /* --quoting-style=escape */
|
|---|
| 35 | locale_quoting_style, /* --quoting-style=locale */
|
|---|
| 36 | clocale_quoting_style /* --quoting-style=clocale */
|
|---|
| 37 | };
|
|---|
| 38 |
|
|---|
| 39 | /* For now, --quoting-style=literal is the default, but this may change. */
|
|---|
| 40 | # ifndef DEFAULT_QUOTING_STYLE
|
|---|
| 41 | # define DEFAULT_QUOTING_STYLE literal_quoting_style
|
|---|
| 42 | # endif
|
|---|
| 43 |
|
|---|
| 44 | /* Names of quoting styles and their corresponding values. */
|
|---|
| 45 | extern char const *const quoting_style_args[];
|
|---|
| 46 | extern enum quoting_style const quoting_style_vals[];
|
|---|
|
|---|