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



commit c4b5469d55eab73b9a878a562e509917bb62125c
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 efc2a6b..c615c9b 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]