inpcom.c, cleanup inp_remove_ws(), #2/4, dup some code down into if-then-else
This commit is contained in:
parent
91658bc856
commit
d1260f4e4d
|
|
@ -2210,8 +2210,8 @@ inp_remove_ws(char *s)
|
||||||
if (*s == '}')
|
if (*s == '}')
|
||||||
is_expression = FALSE;
|
is_expression = FALSE;
|
||||||
|
|
||||||
*d++ = *s;
|
|
||||||
if (*s == '=' || (is_expression && (is_arith_char(*s) || *s == ','))) {
|
if (*s == '=' || (is_expression && (is_arith_char(*s) || *s == ','))) {
|
||||||
|
*d++ = *s;
|
||||||
s = skip_ws(s + 1);
|
s = skip_ws(s + 1);
|
||||||
|
|
||||||
if (*s == '\0')
|
if (*s == '\0')
|
||||||
|
|
@ -2222,6 +2222,8 @@ inp_remove_ws(char *s)
|
||||||
if (*s == '}')
|
if (*s == '}')
|
||||||
is_expression = FALSE;
|
is_expression = FALSE;
|
||||||
|
|
||||||
|
*d++ = *s;
|
||||||
|
} else {
|
||||||
*d++ = *s;
|
*d++ = *s;
|
||||||
}
|
}
|
||||||
s++;
|
s++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue