summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-08 08:20:11 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-08 08:20:11 +0000
commit37767d33b8311b9d65ac540810c363368d13e722 (patch)
treef972a9d499ff995048b55c3d391e958877330886 /include
parent7570bccb348029ed2c126ff613297ff4c7d8b6b9 (diff)
downloadgcc-37767d33b8311b9d65ac540810c363368d13e722.tar.gz
* libiberty.h (xmemdup): Add prototype for new function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29200 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/libiberty.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 41af292ebbf..0f317e9b0a8 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+1999-09-07 Jeff Garzik <jgarzik@pobox.com>
+
+ * libiberty.h (xmemdup): Add prototype for new function.
+
1999-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* obstack.h (obstack_grow, obstack_grow0): Move (char*) casts
diff --git a/include/libiberty.h b/include/libiberty.h
index db3b6d9cf57..0bcce6710ba 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -149,6 +149,10 @@ extern PTR xcalloc PARAMS ((size_t, size_t));
extern char *xstrdup PARAMS ((const char *));
+/* Copy an existing memory buffer to a new memory buffer without fail. */
+
+extern PTR xmemdup PARAMS ((const PTR, size_t, size_t));
+
/* hex character manipulation routines */
#define _hex_array_size 256