mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user