X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fformats%2Finexactify.c;h=c03f1d16c60bb3967e2492eafb77d292b3ea8575;hb=d04dad1257adf4f4e5fb7c121de666f238c6efd8;hp=168251ab4e7039403513b7adedc941c848998dd8;hpb=8acca2de53c1852f38726f70fc6516b34732a79f;p=pspp-builds.git diff --git a/tests/formats/inexactify.c b/tests/formats/inexactify.c index 168251ab..c03f1d16 100644 --- a/tests/formats/inexactify.c +++ b/tests/formats/inexactify.c @@ -1,6 +1,5 @@ /* inexactify.c - PSPP test program. Copyright (C) 2006 Free Software Foundation, Inc. - Written by Ben Pfaff . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -33,21 +32,21 @@ main (void) bool in_quotes = false; bool in_exponent = false; int digits = 0; - - for (;;) + + for (;;) { int c = getchar (); if (c == EOF) break; - else if (c == '\n') + else if (c == '\n') in_quotes = false; - else if (c == '"') + else if (c == '"') { in_quotes = !in_quotes; in_exponent = false; digits = 0; } - else if (in_quotes && !in_exponent) + else if (in_quotes && !in_exponent) { if (strchr ("+dDeE", c) != NULL || (c == '-' && digits)) in_exponent = true;