diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-02-09 18:23:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-02-09 18:23:23 +0000 |
commit | d87c080eaf8c73c4f2f3288adb51fd6a44896f41 (patch) | |
tree | 14f0bbad7287075eae9ae3789ac59b8ed5ddc97b | |
parent | ddb393cf893763cfc3bfe7d031c9f8508f5344dc (diff) | |
download | gdb-d87c080eaf8c73c4f2f3288adb51fd6a44896f41.zip gdb-d87c080eaf8c73c4f2f3288adb51fd6a44896f41.tar.gz gdb-d87c080eaf8c73c4f2f3288adb51fd6a44896f41.tar.bz2 |
* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
-rw-r--r-- | gas/ChangeLog | 3 | ||||
-rw-r--r-- | gas/xmalloc.c | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ee0d785..0a1a1b3 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 8b39ee5..bdf083d 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); |