mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 15:17:13 +08:00
* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
Wed Feb 9 13:08:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||
|
||||
* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
|
||||
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
|
||||
|
||||
* app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
|
||||
don't treat backslash specially inside strings.
|
||||
* read.c (next_char_of_string): Likewise.
|
||||
|
@ -45,11 +45,11 @@
|
||||
|
||||
#define error as_fatal
|
||||
|
||||
char *
|
||||
PTR
|
||||
xmalloc (n)
|
||||
unsigned long n;
|
||||
{
|
||||
char *retval;
|
||||
PTR retval;
|
||||
|
||||
retval = malloc (n);
|
||||
if (retval == NULL)
|
||||
@ -57,9 +57,9 @@ xmalloc (n)
|
||||
return (retval);
|
||||
}
|
||||
|
||||
char *
|
||||
PTR
|
||||
xrealloc (ptr, n)
|
||||
register char *ptr;
|
||||
register PTR ptr;
|
||||
unsigned long n;
|
||||
{
|
||||
ptr = realloc (ptr, n);
|
||||
|
Reference in New Issue
Block a user