scripts/specialize-patch: Fix #elif handling

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7255 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2017-10-12 15:03:13 +00:00
parent 8f704cbe83
commit 7b5dcab494
+2 -1
View File
@@ -399,11 +399,12 @@ function handle_if(evaluated)
if (debug)
printf "/* debug specialize-patch: (e) %s */\n", evaluated
evaluated = evaluate(evaluated)
sub("^+#if", "+#elif", evaluated);
decision[if_nesting_level] = evaluated
inv_decision[if_nesting_level] \
= evaluate(sprintf("+#if %s && !%s", \
substr(inv_decision[if_nesting_level], 6), \
substr(evaluated, 6)))
substr(evaluated, 8)))
if (debug)
printf "/* debug specialize-patch: (f) %s / %s */\n", \
decision[if_nesting_level], inv_decision[if_nesting_level]