Blame lib/quote.h

Packit Service c3aa71
/* quote.h - prototypes for quote.c
Packit Service c3aa71
Packit Service c3aa71
   Copyright (C) 1998-2001, 2003, 2009-2015 Free Software Foundation, Inc.
Packit Service c3aa71
Packit Service c3aa71
   This program is free software: you can redistribute it and/or modify
Packit Service c3aa71
   it under the terms of the GNU General Public License as published by
Packit Service c3aa71
   the Free Software Foundation; either version 3 of the License, or
Packit Service c3aa71
   (at your option) any later version.
Packit Service c3aa71
Packit Service c3aa71
   This program is distributed in the hope that it will be useful,
Packit Service c3aa71
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service c3aa71
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service c3aa71
   GNU General Public License for more details.
Packit Service c3aa71
Packit Service c3aa71
   You should have received a copy of the GNU General Public License
Packit Service c3aa71
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit Service c3aa71
Packit Service c3aa71
#ifndef QUOTE_H_
Packit Service c3aa71
# define QUOTE_H_ 1
Packit Service c3aa71
Packit Service c3aa71
# include <stddef.h>
Packit Service c3aa71
Packit Service c3aa71
/* The quoting options used by quote_n and quote.  Its type is incomplete,
Packit Service c3aa71
   so it's useful only in expressions like '&quote_quoting_options'.  */
Packit Service c3aa71
extern struct quoting_options quote_quoting_options;
Packit Service c3aa71
Packit Service c3aa71
/* Return an unambiguous printable representation of ARG (of size
Packit Service c3aa71
   ARGSIZE), allocated in slot N, suitable for diagnostics.  If
Packit Service c3aa71
   ARGSIZE is SIZE_MAX, use the string length of the argument for
Packit Service c3aa71
   ARGSIZE.  */
Packit Service c3aa71
char const *quote_n_mem (int n, char const *arg, size_t argsize);
Packit Service c3aa71
Packit Service c3aa71
/* Return an unambiguous printable representation of ARG (of size
Packit Service c3aa71
   ARGSIZE), suitable for diagnostics.  If ARGSIZE is SIZE_MAX, use
Packit Service c3aa71
   the string length of the argument for ARGSIZE.  */
Packit Service c3aa71
char const *quote_mem (char const *arg, size_t argsize);
Packit Service c3aa71
Packit Service c3aa71
/* Return an unambiguous printable representation of ARG, allocated in
Packit Service c3aa71
   slot N, suitable for diagnostics.  */
Packit Service c3aa71
char const *quote_n (int n, char const *arg);
Packit Service c3aa71
Packit Service c3aa71
/* Return an unambiguous printable representation of ARG, suitable for
Packit Service c3aa71
   diagnostics.  */
Packit Service c3aa71
char const *quote (char const *arg);
Packit Service c3aa71
Packit Service c3aa71
#endif /* !QUOTE_H_ */