From d87c080eaf8c73c4f2f3288adb51fd6a44896f41 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 9 Feb 1994 18:23:23 +0000 Subject: [PATCH] * as.h (xmalloc, xrealloc): Declare using PTR rather than char *. * xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *. --- gas/ChangeLog | 3 +++ gas/xmalloc.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index ee0d7859e9e..0a1a1b38e73 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. diff --git a/gas/xmalloc.c b/gas/xmalloc.c index 8b39ee5f04b..bdf083d6d84 100644 --- a/gas/xmalloc.c +++ b/gas/xmalloc.c @@ -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); -- 2.30.2