From: Fred Fish Date: Tue, 1 Oct 1996 03:01:33 +0000 (+0000) Subject: * libiberty.h: Remove #ifndef PRIVATE_XMALLOC. X-Git-Tag: gdb-4_18~7580 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77f7bfd835cfe6517f35eb7801bf750ca67d0137;p=external%2Fbinutils.git * libiberty.h: Remove #ifndef PRIVATE_XMALLOC. --- diff --git a/include/ChangeLog b/include/ChangeLog index e61547a..d4d6cb1 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,18 @@ +Mon Sep 30 13:56:11 1996 Fred Fish + + * libiberty.h: Remove #ifndef PRIVATE_XMALLOC. + +start-sanitize-v850 +Sat Aug 31 13:27:06 1996 Jeffrey A Law (law@cygnus.com) + + * dis-asm.h (print_insn_v850): Declare. + +end-sanitize-v850 +Tue Aug 13 16:10:30 1996 Stu Grossman (grossman@critters.cygnus.com) + + * obstack.h: Change bcopy to memcpy. Works better on Posix + systems, which generally lack bcopy. + Mon Aug 12 17:03:18 1996 Stu Grossman (grossman@critters.cygnus.com) * ansidecl.h: Change WIN32 to _WIN32. diff --git a/include/libiberty.h b/include/libiberty.h index 7e4fdaa..498a7f0 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -21,9 +21,12 @@ extern char **buildargv PARAMS ((char *)); extern void freeargv PARAMS ((char **)); -/* Return the last component of a path name. */ +/* 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 + "const char *" */ -extern char *basename PARAMS ((const char *)); +extern char *basename (); /* Concatenate an arbitrary number of strings, up to (char *) NULL. Allocates memory using xmalloc. */ @@ -38,6 +41,10 @@ extern int fdmatch PARAMS ((int fd1, int fd2)); extern long get_run_time PARAMS ((void)); +/* Choose a temporary directory to use for scratch files. */ + +extern char *choose_temp_base PARAMS ((void)); + /* Allocate memory filled with spaces. Allocates using malloc. */ extern const char *spaces PARAMS ((int count)); @@ -56,6 +63,10 @@ extern const char *strerrno PARAMS ((int)); extern int strtoerrno PARAMS ((const char *)); +/* ANSI's strerror(), but more robust. */ + +extern char *xstrerror PARAMS ((int)); + /* Return the maximum signal number for which strsignal will return a string. */ @@ -111,6 +122,10 @@ extern PTR xmalloc (); extern PTR xrealloc (); +/* Copy a string into a memory buffer without fail. */ + +extern char *xstrdup PARAMS ((const char *)); + /* hex character manipulation routines */ #define _hex_array_size 256