diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2014-05-26 23:56:45 +0300 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2014-05-26 23:56:45 +0300 |
commit | d74fd3c72be778a1ff4663bf73443bae771d4ce1 (patch) | |
tree | 3876dc747d154274cf385e6bca409643f21a1cae /libgfortran/libgfortran.h | |
parent | b4fb1c2135318e40127da0194c6239eed3d3c4d6 (diff) | |
download | gcc-d74fd3c72be778a1ff4663bf73443bae771d4ce1.zip gcc-d74fd3c72be778a1ff4663bf73443bae771d4ce1.tar.gz gcc-d74fd3c72be778a1ff4663bf73443bae771d4ce1.tar.bz2 |
Introduce xrealloc, use it.
2014-05-26 Janne Blomqvist <jb@gcc.gnu.org>
* libgfortran.h (xrealloc): New prototype.
* runtime/memory.c (xrealloc): New function.
* io/fbuf.c (fbuf_alloc): Use xrealloc.
* io/list_read.c (push_char_default): Likewise.
(push_char4): Likewise.
From-SVN: r210948
Diffstat (limited to 'libgfortran/libgfortran.h')
-rw-r--r-- | libgfortran/libgfortran.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h index ba6c1e9..b3e8a2e 100644 --- a/libgfortran/libgfortran.h +++ b/libgfortran/libgfortran.h @@ -771,6 +771,8 @@ internal_proto(xmalloc); extern void *xcalloc (size_t, size_t) __attribute__ ((malloc)); internal_proto(xcalloc); +extern void *xrealloc (void *, size_t); +internal_proto(xrealloc); /* environ.c */ |