aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-05-11 16:49:29 -0600
committerJeff Law <law@gcc.gnu.org>1998-05-11 16:49:29 -0600
commit5a4917e58688dc134f76ae34d8dc08d461c86616 (patch)
tree85cb20d93cf5580bd8b63fc0e5a0efbad62e64a0 /include/libiberty.h
parent0aadd65786d24e00be1c63b742fecfed10c82591 (diff)
downloadgcc-5a4917e58688dc134f76ae34d8dc08d461c86616.zip
gcc-5a4917e58688dc134f76ae34d8dc08d461c86616.tar.gz
gcc-5a4917e58688dc134f76ae34d8dc08d461c86616.tar.bz2
[multiple changes]
Thu Feb 12 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com> * getopt.h: Update to latest FSF version. Fri Nov 7 10:34:09 1997 Rob Savoye <rob@darkstar.cygnus.com> * libiberty.h: Add extern "C" { so it can be used with C++ programs. Thu Aug 28 19:41:42 1997 Andrew Cagney <cagney@b1.cygnus.com> * libiberty.h (dupargv): Add prototype. Bring over from devo. From-SVN: r19687
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 893d2a9..951e156 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -10,6 +10,10 @@
#ifndef LIBIBERTY_H
#define LIBIBERTY_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "ansidecl.h"
/* Build an argument vector from a string. Allocates memory using
@@ -21,6 +25,12 @@ extern char **buildargv PARAMS ((char *));
extern void freeargv PARAMS ((char **));
+/* Duplicate an argument vector. Allocates memory using malloc. Use
+ freeargv to free the vector. */
+
+extern char **dupargv PARAMS ((char **));
+
+
/* Return the last component of a path name. Note that we can't use a
prototype here because the parameter is declared inconsistently
across different systems, sometimes as "char *" and sometimes as
@@ -158,4 +168,9 @@ extern int pexecute PARAMS ((const char *, char * const *, const char *,
extern int pwait PARAMS ((int, int *, int));
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* ! defined (LIBIBERTY_H) */