Blame SOURCES/0121-types-skip-field-lines-that-start-with-comments.patch

9a4987
From 05747ff8f8a3533e4db69eb359be9ed1ae920ebd Mon Sep 17 00:00:00 2001
9a4987
From: "Dmitry V. Levin" <ldv@altlinux.org>
9a4987
Date: Tue, 16 Jun 2020 08:00:00 +0000
9a4987
Subject: [PATCH 121/138] types: skip field lines that start with comments
9a4987
9a4987
This allows to exclude certain fields from type checks by placing
9a4987
comments at the beginning of the corresponding lines.
9a4987
9a4987
* types/find_last_type_fields.awk: Skip lines starting with spaces
9a4987
followed by "/".
9a4987
---
9a4987
 types/find_last_type_fields.awk | 2 +-
9a4987
 1 file changed, 1 insertion(+), 1 deletion(-)
9a4987
9a4987
diff --git a/types/find_last_type_fields.awk b/types/find_last_type_fields.awk
9a4987
index 4c0da0f..d0cae0d 100644
9a4987
--- a/types/find_last_type_fields.awk
9a4987
+++ b/types/find_last_type_fields.awk
9a4987
@@ -17,7 +17,7 @@
9a4987
 		print a[1] "." last_field
9a4987
 		next
9a4987
 	}
9a4987
-	if (match($0, /^[[:space:]]+[^];:[]+[[:space:]]+([^][:space:];:[]+)(\[[^];:[]*\])?;.*$/, a)) {
9a4987
+	if (match($0, /^[[:space:]]+[^];[:space:]:\/[][^];:[]*[[:space:]]+([^][:space:];:[]+)(\[[^];:[]*\])?;.*$/, a)) {
9a4987
 		last_field = a[1]
9a4987
 		next
9a4987
 	}
9a4987
-- 
9a4987
2.1.4
9a4987