Browse Source

inp_modify_exp(), cleanup #4/17, cleanup for loop

pre-master-46
rlar 12 years ago
parent
commit
6bc63f798d
  1. 5
      src/frontend/inpcom.c

5
src/frontend/inpcom.c

@ -5503,12 +5503,9 @@ inp_modify_exp(char* expr)
int error1;
/* scan the expression and remove all '{' and '}' */
str_ptr = expr;
while (*str_ptr) {
for (str_ptr = expr; *str_ptr; str_ptr++)
if ((*str_ptr == '{') || (*str_ptr == '}'))
*str_ptr = ' ';
str_ptr++;
}
/* scan the expression */
str_ptr = expr;
while (*str_ptr != '\0') {

Loading…
Cancel
Save