From a003cea2183301487aabf0cd3aaedc30dfc62b0c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 6 Sep 2009 12:02:49 +0000 Subject: [PATCH] Do not only remove references of SCSI_EXEC_REQ_FIFO_DEFINED / SCST_IO_CONTEXT but also their definition. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1077 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index 8b71a406b..2700f203c 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -262,16 +262,17 @@ function process_preprocessor_statement() { if (output) any_section_output[if_nesting_level] = 1 } - if (delete_disabled_code == 0 || (output && (! condition || condition && matching_if !~ "^+#if [01]"))) - { - line[lines++] = orig_stmnt - } - else if (evaluated ~ "^+#define SCSI_EXEC_REQ_FIFO_DEFINED$" \ - || evaluated ~ "^+#define SCST_IO_CONTEXT$") + if (delete_disabled_code \ + && (evaluated ~ "^+#define SCSI_EXEC_REQ_FIFO_DEFINED$" \ + || evaluated ~ "^+#define SCST_IO_CONTEXT$")) { lines_deleted++ delete_next_blank_line = 1 } + else if (delete_disabled_code == 0 || (output && (! condition || condition && matching_if !~ "^+#if [01]"))) + { + line[lines++] = orig_stmnt + } else { lines_deleted++