]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add extern "C" { ... }.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Aug 2003 17:33:25 +0000 (17:33 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:53 +0000 (12:10 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/backupfile.h
gettext-tools/lib/copy-file.h
gettext-tools/lib/findprog.h
gettext-tools/lib/full-write.h
gettext-tools/lib/pipe.h
gettext-tools/lib/stpncpy.h
gettext-tools/lib/wait-process.h

index f3239d4ea08c5ada2e83fe1d9ba14d33cd13b642..03fc5bbeec283347ad8513b2e993b1a0442f6612 100644 (file)
 
 2003-08-24  Bruno Haible  <bruno@clisp.org>
 
-       * basename.h: Make this file includable in C++ mode: add extern "C".
+       * backupfile.h: Make this file includable in C++ mode: add extern "C".
+       * basename.h: Likewise.
+       * copy-file.h: Likewise.
        * error-progname.h: Likewise.
+       * findprog.h: Likewise.
+       * full-write.h: Likewise.
        * pathname.h: Likewise.
+       * pipe.h: Likewise.
        * progname.h: Likewise.
        * relocatable.h: Likewise.
        * stpcpy.h: Likewise.
+       * stpncpy.h: Likewise,
        * strcase.h: Likewise.
        * strstr.h: Likewise.
+       * wait-process.h: Likewise.
        * xerror.h: Likewise.
        * xmalloc.h: Likewise.
 
index 55ac682714ec60abe273286c02e71a658b1d3a5f..6d12187f19f9343c44faea0533e4e9359b9c7e20 100644 (file)
@@ -1,5 +1,5 @@
 /* backupfile.h -- declarations for making Emacs style backup file names
-   Copyright (C) 1990-1992, 1997-1999, 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 1990-1992, 1997-1999, 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
 #ifndef BACKUPFILE_H_
 # define BACKUPFILE_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* When to make backup files. */
 enum backup_type
 {
@@ -42,7 +47,7 @@ enum backup_type
    || (Type) == numbered_existing      \
    || (Type) == numbered)
 
-extern char const *simple_backup_suffix;
+extern DLL_VARIABLE char const *simple_backup_suffix;
 
 extern char *find_backup_file_name (char const *file,
                                    enum backup_type backup_type);
@@ -50,4 +55,9 @@ extern enum backup_type get_version (char const *context, char const *arg);
 extern enum backup_type xget_version (char const *context, char const *arg);
 extern void addext (char *filename, char const *ext, char e);
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* ! BACKUPFILE_H_ */
index 3efda34b875c63e308199f0c1b10f4ff2b0478ff..bf5e9d8c1c07878662b9a614969da2a1d8d2f381 100644 (file)
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Copy a regular file: from src_filename to dest_filename.
    The destination file is assumed to be a backup file.
    Modification times, owner, group and access permissions are preserved as
    far as possible.
    Exit upon failure.  */
 extern void copy_file_preserving (const char *src_filename, const char *dest_filename);
+
+
+#ifdef __cplusplus
+}
+#endif
index 81a95b6dc49c1b20151ba0c4301d4fe8d2e55dda..5913429f2ea7f52bebc45b8d8953c692398d30c1 100644 (file)
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Look up a program in the PATH.
    Attempt to determine the pathname that would be called by execlp/execvp
    of PROGNAME.  If successful, return a pathname containing a slash
@@ -25,3 +31,8 @@
    execl/execv on the returned pathname.
    The returned string is freshly malloc()ed if it is != PROGNAME.  */
 extern const char *find_in_path (const char *progname);
+
+
+#ifdef __cplusplus
+}
+#endif
index 8cd2e8157a50272630cb9afb7d8aa93e64ecfb5f..2637903ecda4943725aef3af3bb3cefdc61e719a 100644 (file)
@@ -1,6 +1,6 @@
 /* An interface to write() that writes all it is asked to write.
 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002-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
 
 #include <stddef.h>
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Write COUNT bytes at BUF to descriptor FD, retrying if interrupted
    or if partial writes occur.  Return the number of bytes successfully
    written, setting errno if that is less than COUNT.  */
 extern size_t full_write (int fd, const void *buf, size_t count);
+
+
+#ifdef __cplusplus
+}
+#endif
index de8f79047473e5c5bbb34dcbcb86b74bdb5513c8..e9ee75af815269c28881c41317b7b1683b20c92c 100644 (file)
 
 #include <stdbool.h>
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* All these functions create a subprocess and don't wait for its termination.
    They return the process id of the subprocess.  They also return in fd[]
    one or two file descriptors for communication with the subprocess.
@@ -95,4 +101,10 @@ extern pid_t create_pipe_bidi (const char *progname,
 # define DEV_NULL "/dev/null"
 #endif
 
+
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* _PIPE_H */
index ad3586173e74769f225ea284a5fbd91f7c5c80bf..6dc56d8c0736633ad825d4b24f1e328ae7c4ba65 100644 (file)
 
 #include <string.h>
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 #ifndef __GNU_LIBRARY__
 
 /* Copy no more than N characters of SRC to DST, returning the address of
@@ -31,4 +37,10 @@ extern char *gnu_stpncpy (char *dst, const char *src, size_t n);
 
 #endif
 
+
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* _STPNCPY_H */
index 5b31c766af885d410c97e33718a8248d9c103e16..7da470eaf702d3d10f1aba0ef234e700ddbdcc94 100644 (file)
 
 #include <stdbool.h>
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Wait for a subprocess to finish.  Return its exit code.
    If it didn't terminate correctly, exit if exit_on_error is true, otherwise
    return 127.  */
 extern int wait_subprocess (pid_t child, const char *progname,
                            bool null_stderr, bool exit_on_error);
 
+
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* _WAIT_PROCESS_H */