* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
authorIan Lance Taylor <ian@airs.com>
Wed, 9 Feb 1994 18:23:23 +0000 (18:23 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 9 Feb 1994 18:23:23 +0000 (18:23 +0000)
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.

gas/ChangeLog
gas/xmalloc.c

index ee0d7859e9ea190e81752cb58e2421f3bc386763..0a1a1b38e73122c3d6bb9f5e883ef95447c51187 100644 (file)
@@ -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.
index 8b39ee5f04bf8904cb8a83033da691647812b9f8..bdf083d6d84a11ee67e92d434f62e128f7e0d759 100644 (file)
 
 #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);
This page took 0.030812 seconds and 4 git commands to generate.