mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Massive automated whitespace cleanup
I know everyone will hate it. Go ahead. Complain. Call me names. At least now things are consistent and reproducible. If you want changes, have your complaint come with a patch to scripts/whitespace.pl so that we can automate it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
006265d7a0
commit
76e6420f6b
114 changed files with 4370 additions and 3717 deletions
8
strtod.c
8
strtod.c
|
|
@ -47,14 +47,14 @@ double strtod_flags(const char *str, const char **ptr, unsigned int flags)
|
|||
switch (c) {
|
||||
case '-':
|
||||
sign = 1;
|
||||
/* fallthrough */
|
||||
/* fallthrough */
|
||||
case '+':
|
||||
c = *p++;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mantissa */
|
||||
for (;;c = *p++) {
|
||||
for (;; c = *p++) {
|
||||
if ((c == '.' && !(flags & STRTOD_NO_DOT)) ||
|
||||
(c == ',' && !(flags & STRTOD_NO_COMMA))) {
|
||||
if (dot)
|
||||
|
|
@ -85,7 +85,7 @@ double strtod_flags(const char *str, const char **ptr, unsigned int flags)
|
|||
switch (c) {
|
||||
case '-':
|
||||
esign = 1;
|
||||
/* fallthrough */
|
||||
/* fallthrough */
|
||||
case '+':
|
||||
c = *ep++;
|
||||
}
|
||||
|
|
@ -118,7 +118,7 @@ done:
|
|||
if (!numbers)
|
||||
goto no_conversion;
|
||||
if (ptr)
|
||||
*ptr = p-1;
|
||||
*ptr = p - 1;
|
||||
return (sign ? -val : val) / decimal;
|
||||
|
||||
no_conversion:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue