mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
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
This commit is contained in:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user