|
|
@ -1170,7 +1170,6 @@ com_alter_common(wordlist *wl, int do_model) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
wl2 = parent->wl_next; |
|
|
|
|
|
if (!wl) { |
|
|
if (!wl) { |
|
|
/* no equal sign found, probably a pre3f4 input format |
|
|
/* no equal sign found, probably a pre3f4 input format |
|
|
'alter device value' |
|
|
'alter device value' |
|
|
@ -1207,14 +1206,10 @@ com_alter_common(wordlist *wl, int do_model) |
|
|
/* add the '=' */ |
|
|
/* add the '=' */ |
|
|
wlin = wlin->wl_prev; |
|
|
wlin = wlin->wl_prev; |
|
|
wlin = wl_append(wlin, wl_cons(copy("="), wl_chop_rest(wlin))); |
|
|
wlin = wl_append(wlin, wl_cons(copy("="), wl_chop_rest(wlin))); |
|
|
/* step back until 'alter' or 'altermod' is found, |
|
|
|
|
|
then move one step forward */ |
|
|
|
|
|
while (!ciprefix("alter", wlin->wl_word)) //while (!ciprefix(wlin->wl_word, "alter")) |
|
|
|
|
|
wlin = wlin->wl_prev; |
|
|
|
|
|
wlin = wlin->wl_next; |
|
|
|
|
|
wl2 = wlin; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
wl2 = parent->wl_next; |
|
|
|
|
|
|
|
|
/* Everything is ready, parsing of the wordlist starts here. */ |
|
|
/* Everything is ready, parsing of the wordlist starts here. */ |
|
|
words = wl2; |
|
|
words = wl2; |
|
|
while (words) { |
|
|
while (words) { |
|
|
|