* libiberty.h: Prototype xcalloc.

From-SVN: r23641
This commit is contained in:
Kaveh R. Ghazi 1998-11-13 16:33:50 +00:00 committed by Kaveh Ghazi
parent df66b5660c
commit 67d0f6ab5e
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Fri Nov 13 19:19:11 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* libiberty.h: Prototype xcalloc.
Sun Nov 8 17:42:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> Sun Nov 8 17:42:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* ansidecl.h: Wrap problematic macros with !IN_GCC. * ansidecl.h: Wrap problematic macros with !IN_GCC.

View File

@ -135,6 +135,11 @@ extern PTR xmalloc PARAMS ((size_t));
extern PTR xrealloc PARAMS ((PTR, size_t)); extern PTR xrealloc PARAMS ((PTR, size_t));
/* Allocate memory without fail and set it to zero. This works like
xmalloc. */
extern PTR xcalloc PARAMS ((size_t, size_t));
/* Copy a string into a memory buffer without fail. */ /* Copy a string into a memory buffer without fail. */
extern char *xstrdup PARAMS ((const char *)); extern char *xstrdup PARAMS ((const char *));