- Remove the line "+#define SCSI_EXEC_REQ_FIFO_DEFINED" from the generated

patch.
- Substitute "defined(SCSI_EXEC_REQ_FIFO_DEFINED)" by "1" in preprocessor
  statements.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1045 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2009-08-13 18:29:59 +00:00
parent f748e87fb3
commit edb8da8616

View File

@@ -91,6 +91,9 @@ function evaluate(stmnt) {
gsub("RHEL_RELEASE_CODE", RHEL_MAJOR * 256 + RHEL_MINOR, stmnt)
}
gsub("defined *SCSI_EXEC_REQ_FIFO_DEFINED", "1", stmnt)
gsub("defined *\\( *SCSI_EXEC_REQ_FIFO_DEFINED *\\)", "1", stmnt)
do
{
last_stmnt = stmnt
@@ -234,7 +237,8 @@ function process_preprocessor_statement() {
output = output && decision[i] != "+#if 0"
}
}
if (output && (! condition || condition && matching_if !~ "^+#if [01]"))
if (output && (! condition || condition && matching_if !~ "^+#if [01]") \
&& ! (evaluated ~ "^+#define SCSI_EXEC_REQ_FIFO_DEFINED$"))
{
line[lines++]=$0
}