[gtk-doc] varargs: tighten the regexp for varargs check



commit 55c78181d6ae1606bdf7885e9caed70a484127ec
Author: Stefan Sauer <ensonic users sf net>
Date:   Mon Nov 12 13:45:59 2012 +0100

    varargs: tighten the regexp for varargs check
    
    This is clean for everything in the std gnome jhbuild module set. Two
    patches for bluez and ibus have been sent.

 gtkdoc-common.pl.in |    2 +-
 gtkdoc-mkdb.in      |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc-common.pl.in b/gtkdoc-common.pl.in
index 5175473..3cd62e7 100644
--- a/gtkdoc-common.pl.in
+++ b/gtkdoc-common.pl.in
@@ -462,7 +462,7 @@ sub ParseMacroDeclaration {
             $param =~ s/^\s+//;
             $param =~ s/\s*$//;
             # Allow varargs variations
-            if ($param =~ m/^.*\.\.\.$/) {
+            if ($param =~ m/^\.\.\.$/) {
                 $param = "...";
             }
             if ($param =~ m/\S/) {
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index dfdf53d..354b390 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -3989,7 +3989,7 @@ sub ScanSourceFile {
 
             #print "Found parameter: $param_name\n";
             # Allow varargs variations
-            if ($param_name =~ m/^.*\.\.\.$/) {
+            if ($param_name =~ m/^\.\.\.$/) {
                 $param_name = "...";
             }
             if ("\L$param_name" eq "returns") {
@@ -4946,7 +4946,7 @@ sub ReadTemplateFile {
                     $param_name = "Returns";
                 }
                 # Allow varargs variations
-                if ($param_name =~ m/^.*\.\.\.$/) {
+                if ($param_name =~ m/^\.\.\.$/) {
                     $param_name = "...";
                 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]