summaryrefslogtreecommitdiff
path: root/libgfortran/io
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-15 13:25:19 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-15 13:25:19 +0000
commit4caf14188c7d6a2d13d3f5e22952de68494110bd (patch)
treef0ece14751bfca2c128a143d190f7c36e6ecd34e /libgfortran/io
parentc0d02c82ff98a20e198267d59aedf596353c7dea (diff)
downloadgcc-4caf14188c7d6a2d13d3f5e22952de68494110bd.tar.gz
* io/unit.c (is_internal_unit): Add void as parameter list.
* io/transfer.c: Move prototype declarations before the functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99721 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io')
-rw-r--r--libgfortran/io/transfer.c16
-rw-r--r--libgfortran/io/unit.c2
2 files changed, 9 insertions, 9 deletions
diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c
index 9981a9f1daa..ce556ffd952 100644
--- a/libgfortran/io/transfer.c
+++ b/libgfortran/io/transfer.c
@@ -1627,6 +1627,11 @@ st_write_done (void)
/* Receives the scalar information for namelist objects and stores it
in a linked list of namelist_info types. */
+extern void st_set_nml_var (void * ,char * ,
+ GFC_INTEGER_4 ,gfc_charlen_type ,GFC_INTEGER_4);
+export_proto(st_set_nml_var);
+
+
void
st_set_nml_var (void * var_addr, char * var_name, GFC_INTEGER_4 len,
gfc_charlen_type string_length, GFC_INTEGER_4 dtype)
@@ -1674,6 +1679,9 @@ st_set_nml_var (void * var_addr, char * var_name, GFC_INTEGER_4 len,
}
/* Store the dimensional information for the namelist object. */
+extern void st_set_nml_var_dim (GFC_INTEGER_4, GFC_INTEGER_4,
+ GFC_INTEGER_4 ,GFC_INTEGER_4);
+export_proto(st_set_nml_var_dim);
void
st_set_nml_var_dim (GFC_INTEGER_4 n_dim, GFC_INTEGER_4 stride,
@@ -1690,11 +1698,3 @@ st_set_nml_var_dim (GFC_INTEGER_4 n_dim, GFC_INTEGER_4 stride,
nml->dim[n].lbound = (ssize_t)lbound;
nml->dim[n].ubound = (ssize_t)ubound;
}
-
-extern void st_set_nml_var (void * ,char * ,
- GFC_INTEGER_4 ,gfc_charlen_type ,GFC_INTEGER_4);
-export_proto(st_set_nml_var);
-
-extern void st_set_nml_var_dim (GFC_INTEGER_4, GFC_INTEGER_4,
- GFC_INTEGER_4 ,GFC_INTEGER_4);
-export_proto(st_set_nml_var_dim);
diff --git a/libgfortran/io/unit.c b/libgfortran/io/unit.c
index 8fb62e34c13..6f64825fdf2 100644
--- a/libgfortran/io/unit.c
+++ b/libgfortran/io/unit.c
@@ -275,7 +275,7 @@ get_unit (int read_flag)
* not */
int
-is_internal_unit ()
+is_internal_unit (void)
{
return current_unit == &internal_unit;
}