diff --git a/scripts/specialize-patch b/scripts/specialize-patch index d9d07c378..f81599e7b 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -207,10 +207,10 @@ function evaluate(stmnt, pattern, arg, op, result) { stmnt = "+#if " (op[1] == 0 ? op[2] : op[1]) } - pattern="\\(([01])[ ]*\\|\\|[ ]*(!*[ ]*defined[ ]*\\([ ]*[A-Za-z_]*[ ]*\\))\\)$" + pattern="\\(([01])[ ]*\\|\\|[ ]*(!*[ ]*defined[ ]*\\([ ]*[A-Za-z_]*[ ]*\\))\\)" while (match(stmnt, pattern, op) != 0) { - stmnt = "+#if " (op[1] == 0 ? op[2] : op[1]) + sub(pattern, op[1] == 0 ? op[2] : op[1], stmnt) } pattern="\\((-*[0-9]+)\\)"