* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
This commit is contained in:
parent
ddb393cf89
commit
d87c080eaf
2 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
Wed Feb 9 13:08:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
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,
|
* app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
|
||||||
don't treat backslash specially inside strings.
|
don't treat backslash specially inside strings.
|
||||||
* read.c (next_char_of_string): Likewise.
|
* read.c (next_char_of_string): Likewise.
|
||||||
|
|
|
@ -45,11 +45,11 @@
|
||||||
|
|
||||||
#define error as_fatal
|
#define error as_fatal
|
||||||
|
|
||||||
char *
|
PTR
|
||||||
xmalloc (n)
|
xmalloc (n)
|
||||||
unsigned long n;
|
unsigned long n;
|
||||||
{
|
{
|
||||||
char *retval;
|
PTR retval;
|
||||||
|
|
||||||
retval = malloc (n);
|
retval = malloc (n);
|
||||||
if (retval == NULL)
|
if (retval == NULL)
|
||||||
|
@ -57,9 +57,9 @@ xmalloc (n)
|
||||||
return (retval);
|
return (retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
PTR
|
||||||
xrealloc (ptr, n)
|
xrealloc (ptr, n)
|
||||||
register char *ptr;
|
register PTR ptr;
|
||||||
unsigned long n;
|
unsigned long n;
|
||||||
{
|
{
|
||||||
ptr = realloc (ptr, n);
|
ptr = realloc (ptr, n);
|
||||||
|
|
Loading…
Add table
Reference in a new issue