From 89a2090064a4a33761abb432eac7c68132b48516 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 6 Oct 2010 19:58:06 +0000 Subject: [PATCH] Fixed a bug in #elif handling. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2361 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index c09eb3249..c9933cb17 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -264,7 +264,7 @@ function handle_if() else { sub("^+#elif ", - sprintf("+#if ! %d \\&\\& ", decision[if_nesting_level]), + sprintf("+#if ! %s \\&\\& ", substr(decision[if_nesting_level], 5)), evaluated) evaluated = evaluate(evaluated) }