X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fformats%2Finexactify.c;h=c03f1d16c60bb3967e2492eafb77d292b3ea8575;hb=f5c108becd49d78f4898cab11352291f5689d24e;hp=e40029cef58442882c051a197fbb5c2bbdb8b6bb;hpb=7eee0554f378481faf447e2d2e940f389d6b05ec;p=pspp-builds.git diff --git a/tests/formats/inexactify.c b/tests/formats/inexactify.c index e40029ce..c03f1d16 100644 --- a/tests/formats/inexactify.c +++ b/tests/formats/inexactify.c @@ -32,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;