[gtk-doc/wip/xclaesse/fixes-for-glib: 4/4] Ignore standard struct members



commit e543a2aa8cb83311a75f18dfaa97e31727822adb
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Thu Feb 5 12:28:18 2015 -0500

    Ignore standard struct members
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744061

 gtkdoc-common.pl.in |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtkdoc-common.pl.in b/gtkdoc-common.pl.in
index c6a0403..4747396 100644
--- a/gtkdoc-common.pl.in
+++ b/gtkdoc-common.pl.in
@@ -120,6 +120,9 @@ sub ParseStructDeclaration {
     $declaration =~ s \n\s*// *?\n \n@msg;
     $declaration =~ s@//.*@@g;
 
+    # Remove g_iface, parent_instance and parent_class if they are first member
+    $declaration =~ s/(\{)\s*(\w)+\s+(g_iface|parent_instance|parent_class)\s*;/$1/g;
+
     my @result = ();
 
     if ($declaration =~ /^\s*$/) {


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