[PATCH 2/3] check-doc-syntax: Find duplicate "Since:" tags

Uli Schlachter psychon at znc.in
Sun May 6 12:45:32 PDT 2012


It makes no sense to say more than one time when some symbol was introduced.

Signed-off-by: Uli Schlachter <psychon at znc.in>
---
 src/check-doc-syntax.awk |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/check-doc-syntax.awk b/src/check-doc-syntax.awk
index d4325ce..5fdabda 100755
--- a/src/check-doc-syntax.awk
+++ b/src/check-doc-syntax.awk
@@ -69,6 +69,9 @@ in_doc {
 }
 
 /^ \* Since: ([0-9]*.[0-9]*|TBD)$/ {
+    if (doc_has_since != 0) {
+	log_error("Duplicate 'Since' field")
+    }
     doc_has_since = doc_line
 }
 
@@ -102,4 +105,4 @@ in_doc {
 END {
     if (!name_found)
 	log_warning("not found")
-}
\ No newline at end of file
+}
-- 
1.7.10


--------------050100020002000304060702
Content-Type: text/x-diff;
 name="0003-c_surface_set_mime_data-Remove-duplicate-Since.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0003-c_surface_set_mime_data-Remove-duplicate-Since.patch"



More information about the cairo mailing list