mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
scripts/specialize-patch: Fix handling of #endif followed by a tab
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -525,9 +525,8 @@ function process_preprocessor_statement(evaluated, condition) {
|
||||
ei = substr(ei, 6)
|
||||
else if (ei ~ "^+#ifdef")
|
||||
ei = substr(ei, 9)
|
||||
evaluated = sprintf("%s /* %s */",
|
||||
$0 ~ " " ? substr($0, 1, index($0, " ")) : $0,
|
||||
ei);
|
||||
match($0, "([^/ ]*)[[:blank:]]*/\\*[^*]*\\*/[[:blank:]]*", arg)
|
||||
evaluated = sprintf("%s /* %s */", arg[1], ei);
|
||||
if (match(evaluated, "([^/ ]*) */\\* defined\\(([^()]*)\\) \\*/",
|
||||
arg))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user