inpcom.c, cleanup inp_remove_ws(), #2/4, dup some code down into if-then-else

This commit is contained in:
rlar 2014-12-31 15:59:51 +01:00
parent 91658bc856
commit d1260f4e4d
1 changed files with 3 additions and 1 deletions

View File

@ -2210,8 +2210,8 @@ inp_remove_ws(char *s)
if (*s == '}')
is_expression = FALSE;
*d++ = *s;
if (*s == '=' || (is_expression && (is_arith_char(*s) || *s == ','))) {
*d++ = *s;
s = skip_ws(s + 1);
if (*s == '\0')
@ -2222,6 +2222,8 @@ inp_remove_ws(char *s)
if (*s == '}')
is_expression = FALSE;
*d++ = *s;
} else {
*d++ = *s;
}
s++;