From e40875d9b900e9475b376caeab6ffefc893147ee Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 5 Jan 2011 13:12:14 +0000 Subject: [PATCH] specialize-patch: Generalized a pattern. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3188 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]+)\\)"