Bug fix: substitute CONFIG_SCST_PROC properly.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-09-12 07:49:54 +00:00
parent 9878d2533f
commit 2aa9e1d69a
2 changed files with 24 additions and 26 deletions
+3 -5
View File
@@ -129,11 +129,9 @@ function evaluate(stmnt) {
gsub("defined *\\( *CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION *\\)", 0, stmnt)
}
if (config_scst_proc_undefined)
{
gsub("defined *CONFIG_SCST_PROC", 0, stmnt)
gsub("defined *\\( *CONFIG_SCST_PROC *\\)", 0, stmnt)
}
gsub("defined *CONFIG_SCST_PROC", !config_scst_proc_undefined, stmnt)
gsub("defined *\\( *CONFIG_SCST_PROC *\\)", !config_scst_proc_undefined,
stmnt)
if (debug)
printf "/* debug specialize-patch: (b) %s */\n", stmnt