aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/read.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-12-06 16:01:01 -0800
committerRichard Henderson <rth@gcc.gnu.org>2004-12-06 16:01:01 -0800
commitf21edfd62d267934ad7e9475976719bc41ee7dc3 (patch)
tree379c730c455320b1f8101e6a2c9d24435a6e33b3 /libgfortran/io/read.c
parent9f91e6cc1610417926374738af0e102187723d59 (diff)
downloadgcc-f21edfd62d267934ad7e9475976719bc41ee7dc3.zip
gcc-f21edfd62d267934ad7e9475976719bc41ee7dc3.tar.gz
gcc-f21edfd62d267934ad7e9475976719bc41ee7dc3.tar.bz2
c99_functions.c, [...]: Whitespace fixes.
* intrinsics/c99_functions.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c, intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c, intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c, intrinsics/spread_generic.c, intrinsics/stat.c, intrinsics/string_intrinsics.c, intrinsics/system_clock.c, intrinsics/transpose_generic.c, intrinsics/unlink.c, intrinsics/unpack_generic.c, io/backspace.c, io/format.c, io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c, io/write.c, runtime/environ.c, runtime/error.c, runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/stop.c, runtime/string.c: Whitespace fixes. From-SVN: r91794
Diffstat (limited to 'libgfortran/io/read.c')
-rw-r--r--libgfortran/io/read.c32
1 files changed, 13 insertions, 19 deletions
diff --git a/libgfortran/io/read.c b/libgfortran/io/read.c
index 34454d6..962c0a2 100644
--- a/libgfortran/io/read.c
+++ b/libgfortran/io/read.c
@@ -36,7 +36,6 @@ Boston, MA 02111-1307, USA. */
void
set_integer (void *dest, int64_t value, int length)
{
-
switch (length)
{
case 8:
@@ -95,7 +94,6 @@ max_value (int length, int signed_flag)
int
convert_real (void *dest, const char *buffer, int length)
{
-
errno = 0;
switch (length)
@@ -204,7 +202,6 @@ read_a (fnode * f, char *p, int length)
static char *
eat_leading_spaces (int *width, char *p)
{
-
for (;;)
{
if (*width == 0 || *p != ' ')
@@ -325,11 +322,11 @@ read_decimal (fnode * f, char *dest, int length)
set_integer (dest, v, length);
return;
-bad:
+ bad:
generate_error (ERROR_READ_VALUE, "Bad value during integer read");
return;
-overflow:
+ overflow:
generate_error (ERROR_READ_OVERFLOW,
"Value overflowed during integer read");
return;
@@ -461,11 +458,11 @@ read_radix (fnode * f, char *dest, int length, int radix)
set_integer (dest, v, length);
return;
-bad:
+ bad:
generate_error (ERROR_READ_VALUE, "Bad value during integer read");
return;
-overflow:
+ overflow:
generate_error (ERROR_READ_OVERFLOW,
"Value overflowed during integer read");
return;
@@ -588,20 +585,18 @@ read_f (fnode * f, char *dest, int length)
}
}
-/* No exponent has been seen, so we use the current scale factor */
-
+ /* No exponent has been seen, so we use the current scale factor */
exponent = -g.scale_factor;
goto done;
-bad_float:
+ bad_float:
generate_error (ERROR_READ_VALUE, "Bad value during floating point read");
if (buffer != scratch)
free_mem (buffer);
return;
-/* At this point the start of an exponent has been found */
-
-exp1:
+ /* At this point the start of an exponent has been found */
+ exp1:
while (w > 0 && *p == ' ')
{
w--;
@@ -623,11 +618,10 @@ exp1:
if (w == 0)
goto bad_float;
-/* At this point a digit string is required. We calculate the value
- of the exponent in order to take account of the scale factor and
- the d parameter before explict conversion takes place. */
-
-exp2:
+ /* At this point a digit string is required. We calculate the value
+ of the exponent in order to take account of the scale factor and
+ the d parameter before explict conversion takes place. */
+ exp2:
if (!isdigit (*p))
goto bad_float;
@@ -654,7 +648,7 @@ exp2:
exponent = exponent * exponent_sign;
-done:
+ done:
/* Use the precision specified in the format if no decimal point has been
seen. */
if (!seen_dp)