projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b10647f
)
* libiberty.h (xmemdup): Add prototype for new function.
author
Jeff Garzik
<jgarzik@pobox.com>
Wed, 8 Sep 1999 08:20:11 +0000
(08:20 +0000)
committer
Jeff Law
<law@gcc.gnu.org>
Wed, 8 Sep 1999 08:20:11 +0000
(
02:20
-0600)
From-SVN: r29200
include/ChangeLog
patch
|
blob
|
history
include/libiberty.h
patch
|
blob
|
history
diff --git
a/include/ChangeLog
b/include/ChangeLog
index 41af292ebbf388a5982f2b6a23b944d28079a4ac..0f317e9b0a8d01bd415ae706e750fddbf722a306 100644
(file)
--- 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 db3b6d9cf57b6e0077365dd85dde99a998406377..0bcce6710bac79b8702cecc531bfc04649f43052 100644
(file)
--- 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