From 9ece28c4f513a0aad56016cb7d124a35373a673c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 24 Sep 2010 20:44:02 +0000 Subject: [PATCH] Added an additional expression to the list of recognized expressions. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2261 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index 4a6259bd8..60eaf5d5a 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -201,6 +201,12 @@ function evaluate(stmnt) { sub(pattern, (op[1] != 0) || (op[2] != 0), stmnt) } + pattern="([01]) *\\|\\| *(!* *defined *\\( *[A-Za-z_]* *\\))" + while (match(stmnt, pattern, op) != 0) + { + sub(pattern, op[1] == 0 ? op[2] : op[1], stmnt) + } + pattern="\\((-*[0-9]+)\\)" while (match(stmnt, pattern, op) != 0) {