aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/libgfortran.h
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2012-03-25 08:48:49 +0300
committerJanne Blomqvist <jb@gcc.gnu.org>2012-03-25 08:48:49 +0300
commitf4471acbe3a0e4aee9aa8144898c593ff4e7b595 (patch)
tree685cb6240f35fb0058480526772367ef510d1cba /libgfortran/libgfortran.h
parent0651865170b953c49b8acce8ad6de0143c00fc06 (diff)
downloadgcc-f4471acbe3a0e4aee9aa8144898c593ff4e7b595.zip
gcc-f4471acbe3a0e4aee9aa8144898c593ff4e7b595.tar.gz
gcc-f4471acbe3a0e4aee9aa8144898c593ff4e7b595.tar.bz2
Use calloc instead of malloc and memset.
2012-03-25 Janne Blomqvist <jb@gcc.gnu.org> * runtime/memory.c (xcalloc): New function. * libgfortran.h (xcalloc): New prototype. * io/list_read.c (push_char): Use xcalloc instead of get_mem and memset. (l_push_char): Likewise. * io/unit.c (insert_unit): Likewise. (get_internal_unit): Likewise. * io/unix.c (open_internal): Likewise. (open_internal4): Likewise. (fd_to_stream): Likewise. From-SVN: r185773
Diffstat (limited to 'libgfortran/libgfortran.h')
-rw-r--r--libgfortran/libgfortran.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h
index f2f6c36..186bfbe 100644
--- a/libgfortran/libgfortran.h
+++ b/libgfortran/libgfortran.h
@@ -759,6 +759,10 @@ internal_proto(get_mem);
extern void *internal_malloc_size (size_t) __attribute__ ((malloc));
internal_proto(internal_malloc_size);
+extern void *xcalloc (size_t, size_t) __attribute__ ((malloc));
+internal_proto(xcalloc);
+
+
/* environ.c */
extern int check_buffered (int);