Blame lib/quote.h

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