projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delete trailing whitespace at end of lines.
[pspp-builds.git]
/
tests
/
formats
/
inexactify.c
diff --git
a/tests/formats/inexactify.c
b/tests/formats/inexactify.c
index e40029cef58442882c051a197fbb5c2bbdb8b6bb..c03f1d16c60bb3967e2492eafb77d292b3ea8575 100644
(file)
--- 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;
bool in_quotes = false;
bool in_exponent = false;
int digits = 0;
-
- for (;;)
+
+ for (;;)
{
int c = getchar ();
if (c == EOF)
break;
{
int c = getchar ();
if (c == EOF)
break;
- else if (c == '\n')
+ else if (c == '\n')
in_quotes = false;
in_quotes = false;
- else if (c == '"')
+ else if (c == '"')
{
in_quotes = !in_quotes;
in_exponent = false;
digits = 0;
}
{
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;
{
if (strchr ("+dDeE", c) != NULL || (c == '-' && digits))
in_exponent = true;