diff options
author | bernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-26 01:33:36 +0000 |
---|---|---|
committer | bernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-26 01:33:36 +0000 |
commit | 63aa3db62351334864ee3e3cb1e59b15357c40f3 (patch) | |
tree | 2c323cc3545b18cb0361f9382cb56f7cddeec8d2 /gcc/gengtype.c | |
parent | e85905e5417217a3e6d608e80a944f7ff25ca1ae (diff) | |
download | gcc-63aa3db62351334864ee3e3cb1e59b15357c40f3.tar.gz |
* gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
* gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
* c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
check on invocation of XRESIZEVEC ().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype.c')
-rw-r--r-- | gcc/gengtype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gengtype.c b/gcc/gengtype.c index 441420c7fee..76f39fa9873 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -1028,7 +1028,7 @@ oprintf (outf_p o, const char *format, ...) do { new_len *= 2; } while (o->bufused + slength >= new_len); - o->buf = (char *) xrealloc (o->buf, new_len); + o->buf = XRESIZEVEC (char, o->buf, new_len); o->buflength = new_len; } memcpy (o->buf + o->bufused, s, slength); |