+2005-01-06 Bruno Haible <bruno@clisp.org>
+
+ * configure.ac: Invoke gl_QUOTE.
+
2005-01-06 Bruno Haible <bruno@clisp.org>
* configure.ac: Invoke gl_EXITFAIL.
gl_FUNC_GLIBC_UNLOCKED_IO
gt_FUNC_ERROR_AT_LINE
gl_QUOTEARG
+gl_QUOTE
gl_PATHMAX
gl_FUNC_READLINK
gl_XREADLINK
+2005-01-06 Bruno Haible <bruno@clisp.org>
+
+ * quote.h: New file, from gnulib.
+ * quote.c: New file, from gnulib.
+ * Makefile.am (libgettextlib_la_SOURCES): Add quote.h, quote.c.
+ * Makefile.msvc (OBJECTS): Add quote.obj.
+ (quote.obj): New rule.
+ * Makefile.vms (OBJECTS): Add quote.obj.
+ (quote.obj): New rule.
+
2005-01-06 Bruno Haible <bruno@clisp.org>
* exitfail.h: New file, from gnulib.
pathname.h concatpath.c \
pipe.h pipe.c w32spawn.h \
progname.h progname.c progreloc.c \
+ quote.h quote.c \
quotearg.h quotearg.c \
safe-read.h safe-read.c \
safe-write.h safe-write.c \
concatpath.obj \
pipe.obj \
progname.obj progreloc.obj \
+ quote.obj \
quotearg.obj \
safe-read.obj \
safe-write.obj \
progreloc.obj : progreloc.c
$(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c progreloc.c
+quote.obj : quote.c
+ $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c quote.c
+
quotearg.obj : quotearg.c
$(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c quotearg.c
concatpath.obj, \
pipe.obj, \
progname.obj, progreloc.obj, \
+ quote.obj, \
quotearg.obj, \
safe-read.obj, \
safe-write.obj, \
progreloc.obj : progreloc.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) progreloc.c
+quote.obj : quote.c
+ $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) quote.c
+
quotearg.obj : quotearg.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) quotearg.c
--- /dev/null
+/* quote.c - quote arguments for output
+ Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+/* Written by Paul Eggert <eggert@twinsun.com> */
+
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include "quotearg.h"
+#include "quote.h"
+
+/* Return an unambiguous printable representation of NAME,
+ allocated in slot N, suitable for diagnostics. */
+char const *
+quote_n (int n, char const *name)
+{
+ return quotearg_n_style (n, locale_quoting_style, name);
+}
+
+/* Return an unambiguous printable representation of NAME,
+ suitable for diagnostics. */
+char const *
+quote (char const *name)
+{
+ return quote_n (0, name);
+}
--- /dev/null
+/* quote.h - prototypes for quote.c
+
+ Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software
+ Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+
+char const *quote_n (int n, char const *name);
+char const *quote (char const *name);
+2005-01-06 Bruno Haible <bruno@clisp.org>
+
+ * quote.m4: New file, from gnulib.
+ * Makefile.am (EXTRA_DIST): Add quote.m4.
+
2005-01-06 Bruno Haible <bruno@clisp.org>
* exitfail.m4: New file, from gnulib.
mkdtemp.m4 \
onceonly.m4 \
pathmax.m4 \
+quote.m4 \
quotearg.m4 \
readlink.m4 \
relocatable.m4 \
--- /dev/null
+# quote.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+AC_DEFUN([gl_QUOTE],
+[
+ dnl Prerequisites of lib/quote.c.
+ dnl (none)
+])