diff --git a/ChangeLog b/ChangeLog index f0389ac41..a5257d355 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,27 @@ +2004-12-16 Dan Winship + + * parser/gapi_pp.pl: Don't strip out /*< public >*/ and + /*< private >*/ comments. + + * parser/gapi2xml.pl: Use those comments to determine the + accessibility of struct/object fields, and set the "access" + attribute on fields with non-default accessibiliy (private for + structs, public for objects). Also, output a StudlyName for each + field as well as a c_name. + + * */*-api.raw: Regen + + * generator/Field.cs (StudlyName): Use the parser-generated studly + name rather than studlifying Name, which might have been mangled + to avoid conflicts with an all-lowercase keyword. + (Generate): Respect the access property on all field types rather + than always making certain types public. Don't bother outputting + wrapper properties for private fields, since the only code that + could use them is the generated code, which won't. + + See doc/ChangeLog for the (very minimal) fallout from these + changes. + 2004-12-16 Mike Kestner * sample/NodeViewDemo.cs : rework of TreeViewDemo to use NodeStore. diff --git a/art/art-api.raw b/art/art-api.raw index bef4873df..a35758bc4 100644 --- a/art/art-api.raw +++ b/art/art-api.raw @@ -66,10 +66,10 @@ - - - - + + + + @@ -80,13 +80,13 @@ - - - - - - - + + + + + + + @@ -95,10 +95,10 @@ - - - - + + + + @@ -150,29 +150,29 @@ - - - - - - + + + + + + - - - - - + + + + + - - + + - - - - + + + + @@ -198,7 +198,7 @@ - + @@ -207,7 +207,7 @@ - + @@ -228,16 +228,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -302,33 +302,33 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -436,12 +436,12 @@ - - + + - - + + @@ -581,14 +581,14 @@ - - + + - - - - + + + + @@ -627,11 +627,11 @@ - - - - - + + + + + @@ -689,9 +689,9 @@ - - - + + + @@ -744,9 +744,9 @@ - - - + + + diff --git a/atk/atk-api.raw b/atk/atk-api.raw index 7a84f670e..96935df95 100644 --- a/atk/atk-api.raw +++ b/atk/atk-api.raw @@ -1858,12 +1858,12 @@ - - - - - - + + + + + + @@ -2172,8 +2172,8 @@ - - + + @@ -2198,8 +2198,8 @@ - - + + @@ -2238,7 +2238,7 @@ - + @@ -2380,8 +2380,8 @@ - - + + @@ -2391,31 +2391,31 @@ - - - - - - - + + + + + + + - - - + + + - - - - + + + + - - - - + + + + diff --git a/doc/ChangeLog b/doc/ChangeLog index 0e4c3ef94..327279643 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,18 @@ +2004-12-16 Dan Winship + + * en/Art/AlphaGamma.xml: + * en/Gtk/TextAttributes.xml (Refcount): + * en/Pango/GlyphString.xml (Space): these are now private + + * en/Gda/XqlItem.xml: + * en/Glade/SignalInfo.xml: + * en/Gnome.Vfs/ModuleCallbackSaveAuthenticationIn.xml: + * en/Gnome.Vfs/ModuleCallbackFullAuthenticationIn.xml: + * en/Gnome.Vfs/ModuleCallbackFillAuthenticationIn.xml: rename + Objekt to Object. + + * en/Atk/KeyEventStruct.xml: rename Str1ng to String + 2004-12-15 John Luke * *.xml: run gen-vm-docs.exe and gen-handlerargs.exe diff --git a/doc/en/Art/AlphaGamma.xml b/doc/en/Art/AlphaGamma.xml index fd93f9ab7..1e69a0b4b 100644 --- a/doc/en/Art/AlphaGamma.xml +++ b/doc/en/Art/AlphaGamma.xml @@ -76,57 +76,5 @@ To be added - - - Field - - System.Double - - - - - To be added - To be added - - - - - Field - - System.Int32 - - - - - To be added - To be added - - - - - Field - - System.Int32[] - - - - - To be added - To be added - - - - - Field - - System.Byte[] - - - - - To be added - To be added - - \ No newline at end of file diff --git a/doc/en/Atk/KeyEventStruct.xml b/doc/en/Atk/KeyEventStruct.xml index d3702e55a..97c2e34e7 100644 --- a/doc/en/Atk/KeyEventStruct.xml +++ b/doc/en/Atk/KeyEventStruct.xml @@ -99,8 +99,8 @@ To be added - - + + Field System.String diff --git a/doc/en/Gda/XqlItem.xml b/doc/en/Gda/XqlItem.xml index de9d321d2..c6c48ac81 100644 --- a/doc/en/Gda/XqlItem.xml +++ b/doc/en/Gda/XqlItem.xml @@ -226,8 +226,8 @@ Returns the native value for . - - + + Field GLib.Object diff --git a/doc/en/Glade/SignalInfo.xml b/doc/en/Glade/SignalInfo.xml index 100ec1c00..f309fac01 100644 --- a/doc/en/Glade/SignalInfo.xml +++ b/doc/en/Glade/SignalInfo.xml @@ -73,8 +73,8 @@ To be added - - + + Field System.String diff --git a/doc/en/Gnome.Vfs/ModuleCallbackFillAuthenticationIn.xml b/doc/en/Gnome.Vfs/ModuleCallbackFillAuthenticationIn.xml index aeea9a59b..59f25489f 100644 --- a/doc/en/Gnome.Vfs/ModuleCallbackFillAuthenticationIn.xml +++ b/doc/en/Gnome.Vfs/ModuleCallbackFillAuthenticationIn.xml @@ -70,8 +70,8 @@ To be added - - + + Field System.String diff --git a/doc/en/Gnome.Vfs/ModuleCallbackFullAuthenticationIn.xml b/doc/en/Gnome.Vfs/ModuleCallbackFullAuthenticationIn.xml index ac203de64..919ba7449 100644 --- a/doc/en/Gnome.Vfs/ModuleCallbackFullAuthenticationIn.xml +++ b/doc/en/Gnome.Vfs/ModuleCallbackFullAuthenticationIn.xml @@ -83,8 +83,8 @@ To be added - - + + Field System.String diff --git a/doc/en/Gnome.Vfs/ModuleCallbackSaveAuthenticationIn.xml b/doc/en/Gnome.Vfs/ModuleCallbackSaveAuthenticationIn.xml index f3d1053f9..f7de1997d 100644 --- a/doc/en/Gnome.Vfs/ModuleCallbackSaveAuthenticationIn.xml +++ b/doc/en/Gnome.Vfs/ModuleCallbackSaveAuthenticationIn.xml @@ -83,8 +83,8 @@ To be added - - + + Field System.String diff --git a/doc/en/Gtk/TextAttributes.xml b/doc/en/Gtk/TextAttributes.xml index e77a3a698..2d910aa65 100644 --- a/doc/en/Gtk/TextAttributes.xml +++ b/doc/en/Gtk/TextAttributes.xml @@ -170,19 +170,6 @@ Returns the native value for . - - - Field - - System.UInt32 - - - - - The reference count for this object. - - - Field diff --git a/doc/en/Pango/GlyphString.xml b/doc/en/Pango/GlyphString.xml index b7cea89c6..de1c2f218 100644 --- a/doc/en/Pango/GlyphString.xml +++ b/doc/en/Pango/GlyphString.xml @@ -206,19 +206,6 @@ - - - Field - - System.Int32 - - - - - Represents how much space is left for other characters in the GlyphString. - - - Method diff --git a/gda/gda-api.raw b/gda/gda-api.raw index 6ec27fe3b..f6003eec3 100644 --- a/gda/gda-api.raw +++ b/gda/gda-api.raw @@ -128,7 +128,7 @@ - + @@ -235,7 +235,7 @@ - + @@ -395,7 +395,7 @@ - + @@ -638,7 +638,7 @@ - + @@ -658,7 +658,7 @@ - + @@ -700,7 +700,7 @@ - + @@ -718,7 +718,7 @@ - + @@ -776,7 +776,7 @@ - + @@ -858,7 +858,7 @@ - + @@ -881,7 +881,7 @@ - + @@ -1094,7 +1094,7 @@ - + @@ -1133,7 +1133,7 @@ - + @@ -1162,7 +1162,7 @@ - + @@ -1218,7 +1218,7 @@ - + @@ -1316,10 +1316,10 @@ - - - - + + + + @@ -1416,8 +1416,8 @@ - - + + @@ -1458,10 +1458,10 @@ - - - - + + + + @@ -1510,38 +1510,38 @@ - - - - - - + + + + + + - - - + + + - - - + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -1659,21 +1659,21 @@ - - + + - - + + - - - + + + - - + + @@ -1754,10 +1754,10 @@ - - - - + + + + @@ -1837,48 +1837,48 @@ - - - - + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2269,7 +2269,7 @@ - + @@ -2280,11 +2280,11 @@ - + - - + + @@ -2344,10 +2344,10 @@ - + - + @@ -2360,10 +2360,10 @@ - + - + @@ -2378,21 +2378,21 @@ - + - + - + - - + + @@ -2470,7 +2470,7 @@ - + @@ -2533,8 +2533,8 @@ - - + + @@ -2625,10 +2625,10 @@ - + - + @@ -2642,10 +2642,10 @@ - + - + @@ -2675,21 +2675,21 @@ - + - + - + - - + + @@ -2771,7 +2771,7 @@ - + @@ -2798,7 +2798,7 @@ - + @@ -2812,11 +2812,11 @@ - + - - + + @@ -2844,10 +2844,10 @@ - + - + @@ -2859,21 +2859,21 @@ - + - + - + - - + + @@ -2892,10 +2892,10 @@ - + - + @@ -2909,20 +2909,20 @@ - + - + - + - + @@ -2934,17 +2934,17 @@ - + - + - + diff --git a/gdk/gdk-api.raw b/gdk/gdk-api.raw index f1f040dd9..8a4c1f273 100644 --- a/gdk/gdk-api.raw +++ b/gdk/gdk-api.raw @@ -498,10 +498,10 @@ - - - - + + + + @@ -569,14 +569,14 @@ - - - - - - - - + + + + + + + + @@ -645,18 +645,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -855,16 +855,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -1476,11 +1476,11 @@ - - - - - + + + + + @@ -1681,18 +1681,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -1746,7 +1746,7 @@ - + @@ -1900,9 +1900,9 @@ - - - + + + @@ -2016,20 +2016,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -2622,21 +2622,21 @@ - - - - - - + + + + + + - - - + + + - + @@ -2648,10 +2648,10 @@ - - - - + + + + @@ -2707,8 +2707,8 @@ - - + + @@ -2752,13 +2752,13 @@ - - - + + + - - + + @@ -2781,172 +2781,172 @@ - - - + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - + + + + + + - - - - + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - + + + - - - - - - + + + + + + - - - - - + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - + + + + + - - - - + + + + - - - - - + + + + + - - - + + + @@ -2996,47 +2996,47 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - + + + - - + + @@ -3044,8 +3044,8 @@ - - + + @@ -3053,13 +3053,13 @@ - - - + + + - - + + @@ -3076,10 +3076,10 @@ - - - - + + + + @@ -3099,10 +3099,10 @@ - - - - + + + + @@ -3215,15 +3215,15 @@ - - - - + + + + - - - + + + @@ -3235,65 +3235,65 @@ - - - - + + + + - - - + + + - - + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -4821,40 +4821,40 @@ - - - - - - - - + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - + + + + + + + + + + @@ -4866,18 +4866,18 @@ - - - - - - + + + + + + - + @@ -4973,25 +4973,25 @@ - - - - - - - - - - + + + + + + + + + + - - - - - - - + + + + + + + diff --git a/generator/Field.cs b/generator/Field.cs index 12da4c586..b9b28cca1 100644 --- a/generator/Field.cs +++ b/generator/Field.cs @@ -129,15 +129,7 @@ namespace GtkSharp.Generation { public string StudlyName { get { - string name = Name; - string[] segs = name.Split('_'); - string studly = ""; - foreach (string s in segs) { - if (s.Trim () == "") - continue; - studly += (s.Substring(0,1).ToUpper() + s.Substring(1)); - } - return studly; + return elem.GetAttribute ("name"); } } @@ -160,7 +152,7 @@ namespace GtkSharp.Generation { string wrapped = table.GetCSType (CType); string wrapped_name = SymbolTable.Table.MangleName (elem.GetAttribute ("cname")); if (IsArray) { - sw.WriteLine ("\t\tpublic {0} {1};", CSType, StudlyName); + sw.WriteLine ("\t\t{0} {1} {2};", Access, CSType, StudlyName); } else if (IsPadding) { sw.WriteLine ("\t\tprivate {0} {1};", CSType, Name); } else if (IsBit) { @@ -169,34 +161,29 @@ namespace GtkSharp.Generation { } else if (table.IsCallback (CType)) { // FIXME sw.WriteLine ("\t\tprivate {0} {1};", CSType, Name); - } else if (table.IsObject (CType)) { + } else if (table.IsObject (CType) || table.IsOpaque (CType)) { sw.WriteLine ("\t\tprivate {0} {1};", CSType, Name); - sw.WriteLine (); - sw.WriteLine ("\t\tpublic " + wrapped + " " + wrapped_name + " {"); - sw.WriteLine ("\t\t\tget { "); - sw.WriteLine ("\t\t\t\t" + wrapped + " ret = " + table.FromNativeReturn(CType, Name) + ";"); - sw.WriteLine ("\t\t\t\treturn ret;"); - sw.WriteLine ("\t\t\t}"); - sw.WriteLine ("\t\t\tset { " + Name + " = " + table.CallByName (CType, "value") + "; }"); - sw.WriteLine ("\t\t}"); - } else if (table.IsOpaque (CType)) { - sw.WriteLine ("\t\tprivate {0} {1};", CSType, Name); - sw.WriteLine (); - sw.WriteLine ("\t\tpublic " + wrapped + " " + wrapped_name + " {"); - sw.WriteLine ("\t\t\tget { "); - sw.WriteLine ("\t\t\t\t" + wrapped + " ret = " + table.FromNativeReturn(CType, Name) + ";"); - sw.WriteLine ("\t\t\t\tif (ret == null) ret = new " + wrapped + "(" + Name + ");"); - sw.WriteLine ("\t\t\t\treturn ret;"); - sw.WriteLine ("\t\t\t}"); - sw.WriteLine ("\t\t\tset { " + Name + " = " + table.CallByName (CType, "value") + "; }"); - sw.WriteLine ("\t\t}"); + if (Access != "private") { + sw.WriteLine ("\t\t" + Access + " " + wrapped + " " + wrapped_name + " {"); + sw.WriteLine ("\t\t\tget { "); + sw.WriteLine ("\t\t\t\t" + wrapped + " ret = " + table.FromNativeReturn(CType, Name) + ";"); + if (table.IsOpaque (CType)) + sw.WriteLine ("\t\t\t\tif (ret == null) ret = new " + wrapped + "(" + Name + ");"); + sw.WriteLine ("\t\t\t\treturn ret;"); + sw.WriteLine ("\t\t\t}"); + + sw.WriteLine ("\t\t\tset { " + Name + " = " + table.CallByName (CType, "value") + "; }"); + sw.WriteLine ("\t\t}"); + } } else if (IsPointer && (table.IsStruct (CType) || table.IsBoxed (CType))) { sw.WriteLine ("\t\tprivate {0} {1};", CSType, Name); sw.WriteLine (); - sw.WriteLine ("\t\tpublic " + wrapped + " " + wrapped_name + " {"); - sw.WriteLine ("\t\t\tget { return " + table.FromNativeReturn (CType, Name) + "; }"); - sw.WriteLine ("\t\t}"); + if (Access != "private") { + sw.WriteLine ("\t\t" + Access + " " + wrapped + " " + wrapped_name + " {"); + sw.WriteLine ("\t\t\tget { return " + table.FromNativeReturn (CType, Name) + "; }"); + sw.WriteLine ("\t\t}"); + } } else if (IsPointer && CSType != "string") { // FIXME: probably some fields here which should be visible. sw.WriteLine ("\t\tprivate {0} {1};", CSType, Name); diff --git a/glade/glade-api.raw b/glade/glade-api.raw index 06470f7ea..5b14603c8 100644 --- a/glade/glade-api.raw +++ b/glade/glade-api.raw @@ -66,8 +66,8 @@ - - + + @@ -208,31 +208,31 @@ - - - + + + - - + + - - + + - - - - + + + + - - - - - - + + + + + + @@ -244,33 +244,33 @@ - - + + - - - - + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/gnome/gnome-api.raw b/gnome/gnome-api.raw index 424c5d2a5..b46114354 100644 --- a/gnome/gnome-api.raw +++ b/gnome/gnome-api.raw @@ -69,7 +69,7 @@ - + @@ -181,37 +181,37 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - + + - - - + + + - - - - - + + + + + @@ -709,40 +709,40 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1011,9 +1011,9 @@ - - - + + + @@ -1026,8 +1026,8 @@ - - + + @@ -1035,13 +1035,13 @@ - - - - - - - + + + + + + + @@ -1291,30 +1291,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -1337,7 +1337,7 @@ - + @@ -1355,7 +1355,7 @@ - + @@ -1371,11 +1371,11 @@ - - - - - + + + + + @@ -1390,7 +1390,7 @@ - + @@ -1456,7 +1456,7 @@ - + @@ -1486,41 +1486,41 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1557,19 +1557,19 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -1583,12 +1583,12 @@ - - - - - - + + + + + + @@ -1736,9 +1736,9 @@ - - - + + + @@ -1973,7 +1973,7 @@ - + @@ -2012,17 +2012,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -2436,7 +2436,7 @@ - + @@ -2516,34 +2516,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2764,7 +2764,7 @@ - + @@ -2869,7 +2869,7 @@ - + @@ -2943,12 +2943,12 @@ - - - - - - + + + + + + @@ -3102,12 +3102,12 @@ - - - - - - + + + + + + @@ -3191,7 +3191,7 @@ - + @@ -3261,18 +3261,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -3371,15 +3371,15 @@ - - - - - - - - - + + + + + + + + + @@ -3455,7 +3455,7 @@ - + @@ -3521,9 +3521,9 @@ - - - + + + @@ -3621,7 +3621,7 @@ - + @@ -3704,7 +3704,7 @@ - + @@ -3752,7 +3752,7 @@ - + @@ -3839,9 +3839,9 @@ - - - + + + @@ -4118,7 +4118,7 @@ - + @@ -4164,17 +4164,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -4282,7 +4282,7 @@ - + @@ -4345,7 +4345,7 @@ - + @@ -4404,12 +4404,12 @@ - - - - - - + + + + + + @@ -4452,7 +4452,7 @@ - + @@ -4548,7 +4548,7 @@ - + @@ -4606,8 +4606,8 @@ - - + + @@ -4681,24 +4681,24 @@ - - - - - + + + + + - - - - - - - - - - - + + + + + + + + + + + @@ -6070,11 +6070,11 @@ - - - - - + + + + + @@ -6232,24 +6232,24 @@ - - - - + + + + - - - - - - - - - - - - + + + + + + + + + + + + @@ -6258,18 +6258,18 @@ - - + + - - - - - - - - + + + + + + + + @@ -6548,21 +6548,21 @@ - - - + + + - + - - - - + + + + @@ -6598,13 +6598,13 @@ - - - - - - - + + + + + + + @@ -7201,15 +7201,15 @@ - - - - - - - - - + + + + + + + + + @@ -7290,9 +7290,9 @@ - - - + + + @@ -7319,15 +7319,15 @@ - - - - - - - - - + + + + + + + + + @@ -7542,13 +7542,13 @@ - - - - - - - + + + + + + + @@ -7561,13 +7561,13 @@ - - - - - - - + + + + + + + @@ -7579,15 +7579,15 @@ - - - - - - - - - + + + + + + + + + @@ -7619,11 +7619,11 @@ - - - - - + + + + + @@ -7634,15 +7634,15 @@ - - - - - - - - - + + + + + + + + + @@ -7655,35 +7655,35 @@ - - - - - + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -7711,18 +7711,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -7737,7 +7737,7 @@ - + @@ -7761,9 +7761,9 @@ - - - + + + diff --git a/gnomedb/gnomedb-api.raw b/gnomedb/gnomedb-api.raw index 18ce5ec7c..e556a9645 100644 --- a/gnomedb/gnomedb-api.raw +++ b/gnomedb/gnomedb-api.raw @@ -26,7 +26,7 @@ - + @@ -53,7 +53,7 @@ - + @@ -68,7 +68,7 @@ - + @@ -88,14 +88,14 @@ - + - + @@ -155,7 +155,7 @@ - + @@ -198,7 +198,7 @@ - + @@ -209,7 +209,7 @@ - + @@ -231,7 +231,7 @@ - + @@ -248,7 +248,7 @@ - + @@ -304,7 +304,7 @@ - + @@ -329,7 +329,7 @@ - + @@ -356,7 +356,7 @@ - + @@ -396,7 +396,7 @@ - + @@ -440,7 +440,7 @@ - + @@ -579,7 +579,7 @@ - + @@ -597,7 +597,7 @@ - + @@ -634,7 +634,7 @@ - + @@ -681,7 +681,7 @@ - + @@ -710,14 +710,14 @@ - + - + @@ -737,21 +737,21 @@ - + - + - + @@ -801,8 +801,8 @@ - - + + @@ -814,18 +814,18 @@ - - - - - - - - - + + + + + + + + + - + diff --git a/gnomevfs/gnomevfs-api.raw b/gnomevfs/gnomevfs-api.raw index c600742b6..ec0ceb749 100644 --- a/gnomevfs/gnomevfs-api.raw +++ b/gnomevfs/gnomevfs-api.raw @@ -301,21 +301,21 @@ - + - - - + + + - + @@ -330,7 +330,7 @@ - + @@ -420,7 +420,7 @@ - + @@ -491,7 +491,7 @@ - + @@ -567,11 +567,11 @@ - - - - - + + + + + @@ -620,30 +620,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -698,15 +698,15 @@ - - - - + + + + - - - + + + @@ -742,33 +742,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -781,12 +781,12 @@ - - - - - - + + + + + + @@ -805,15 +805,15 @@ - - - - - - - - - + + + + + + + + + @@ -857,115 +857,115 @@ - - - + + + - - - + + + - - - - - - + + + + + + - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - + + + + - - - + + + - - - - - - - - - - - - + + + + + + + + + + + + - - + + - - - - - + + + + + - - - + + + @@ -1076,22 +1076,22 @@ - - - + + + - - - - - - - - + + + + + + + + - + @@ -1278,37 +1278,37 @@ - - - - + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/gtk/gtk-api.raw b/gtk/gtk-api.raw index 357f16ab2..7ac2eccf6 100644 --- a/gtk/gtk-api.raw +++ b/gtk/gtk-api.raw @@ -2570,11 +2570,11 @@ - - - - - + + + + + @@ -2664,13 +2664,13 @@ - - - - - - - + + + + + + + @@ -2807,7 +2807,7 @@ - + @@ -2822,7 +2822,7 @@ - + @@ -2955,7 +2955,7 @@ - + @@ -3124,12 +3124,12 @@ - - - - - - + + + + + + @@ -3185,10 +3185,10 @@ - - - - + + + + @@ -3237,8 +3237,8 @@ - - + + @@ -3259,11 +3259,11 @@ - - - - - + + + + + @@ -3291,7 +3291,7 @@ - + @@ -3300,9 +3300,9 @@ - - - + + + @@ -3390,18 +3390,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -3543,11 +3543,11 @@ - - - - - + + + + + @@ -3605,25 +3605,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -3760,17 +3760,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -3903,9 +3903,9 @@ - - - + + + @@ -3919,25 +3919,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -3981,9 +3981,9 @@ - - - + + + @@ -4019,7 +4019,7 @@ - + @@ -4089,7 +4089,7 @@ - + @@ -4140,10 +4140,10 @@ - - - - + + + + @@ -4307,7 +4307,7 @@ - + @@ -4368,7 +4368,7 @@ - + @@ -4493,10 +4493,10 @@ - - - - + + + + @@ -4507,20 +4507,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -4573,7 +4573,7 @@ - + @@ -4679,7 +4679,7 @@ - + @@ -4703,12 +4703,12 @@ - - - - - - + + + + + + @@ -4981,20 +4981,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -5050,9 +5050,9 @@ - - - + + + @@ -5134,7 +5134,7 @@ - + @@ -5148,46 +5148,46 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5398,7 +5398,7 @@ - + @@ -5509,7 +5509,7 @@ - + @@ -5597,7 +5597,7 @@ - + @@ -5630,7 +5630,7 @@ - + @@ -5701,28 +5701,28 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -5787,7 +5787,7 @@ - + @@ -5821,7 +5821,7 @@ - + @@ -5899,20 +5899,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -5943,14 +5943,14 @@ - - - - - - - - + + + + + + + + @@ -5982,11 +5982,11 @@ - - - - - + + + + + @@ -6051,31 +6051,31 @@ - - - - - - + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -6208,7 +6208,7 @@ - + @@ -6272,7 +6272,7 @@ - + @@ -6304,7 +6304,7 @@ - + @@ -6410,16 +6410,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -6572,7 +6572,7 @@ - + @@ -6784,11 +6784,11 @@ - - - - - + + + + + @@ -6803,9 +6803,9 @@ - - - + + + @@ -6818,15 +6818,15 @@ - - - - - - - - - + + + + + + + + + @@ -6847,8 +6847,8 @@ - - + + @@ -6909,13 +6909,13 @@ - - - - - - - + + + + + + + @@ -7076,19 +7076,19 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -7282,16 +7282,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -7371,19 +7371,19 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -7511,34 +7511,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7657,17 +7657,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -7758,17 +7758,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -7874,8 +7874,8 @@ - - + + @@ -7911,10 +7911,10 @@ - - - - + + + + @@ -7952,31 +7952,31 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -8255,7 +8255,7 @@ - + @@ -8415,10 +8415,10 @@ - - - - + + + + @@ -8453,30 +8453,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -8578,23 +8578,23 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + @@ -8608,11 +8608,11 @@ - - - - - + + + + + @@ -8651,15 +8651,15 @@ - - - - - - - - - + + + + + + + + + @@ -8749,7 +8749,7 @@ - + @@ -8785,7 +8785,7 @@ - + @@ -8841,7 +8841,7 @@ - + @@ -8933,30 +8933,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -9042,20 +9042,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -9098,16 +9098,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -9162,9 +9162,9 @@ - - - + + + @@ -9236,15 +9236,15 @@ - - - - - - - - - + + + + + + + + + @@ -9344,7 +9344,7 @@ - + @@ -9361,10 +9361,10 @@ - - - - + + + + @@ -9423,11 +9423,11 @@ - - - - - + + + + + @@ -9460,21 +9460,21 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -9508,21 +9508,21 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -9691,14 +9691,14 @@ - - - - - - - - + + + + + + + + @@ -9757,39 +9757,39 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10248,14 +10248,14 @@ - - - - - - - - + + + + + + + + @@ -10365,20 +10365,20 @@ - + - - - - - - - + + + + + + + @@ -10847,7 +10847,7 @@ - + @@ -10860,7 +10860,7 @@ - + @@ -10887,34 +10887,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10985,10 +10985,10 @@ - - - - + + + + @@ -11045,53 +11045,53 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -11522,7 +11522,7 @@ - + @@ -11564,9 +11564,9 @@ - - - + + + @@ -11622,7 +11622,7 @@ - + @@ -11649,18 +11649,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -11913,16 +11913,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -11960,7 +11960,7 @@ - + @@ -12033,7 +12033,7 @@ - + @@ -12154,7 +12154,7 @@ - + @@ -12231,22 +12231,22 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -12304,11 +12304,11 @@ - - - - - + + + + + @@ -12422,18 +12422,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -12580,7 +12580,7 @@ - + @@ -13087,41 +13087,41 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -13395,7 +13395,7 @@ - + @@ -13571,11 +13571,11 @@ - - - - - + + + + + @@ -13670,15 +13670,15 @@ - - - - - - - - - + + + + + + + + + @@ -14813,44 +14813,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -15352,7 +15352,7 @@ - + @@ -15371,42 +15371,42 @@ - - - + + + - - - + + + - - - - - - + + + + + + - - - + + + - - + + - - - - - - - - + + + + + + + + @@ -15446,14 +15446,14 @@ - - - - - - - - + + + + + + + + @@ -15489,16 +15489,16 @@ - - - - + + + + - - - - + + + + @@ -15510,21 +15510,21 @@ - - - - - - + + + + + + - - - - - + + + + + @@ -15645,18 +15645,18 @@ - - - + + + - - - - - + + + + + @@ -15845,45 +15845,45 @@ - - - + + + - + - + - + - + - + - - - - - - + + + + + + - - + + - - - - - + + + + + @@ -15896,38 +15896,38 @@ - - - - - - - - + + + + + + + + - - - - + + + + - - - - - - + + + + + + - - - - + + + + @@ -15970,8 +15970,8 @@ - - + + @@ -15983,20 +15983,20 @@ - - - - - + + + + + - - - - - - - + + + + + + + @@ -16038,16 +16038,16 @@ - - + + - - - - - + + + + + @@ -16056,38 +16056,38 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - + + + - - + + @@ -16130,52 +16130,52 @@ - - - + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -16199,20 +16199,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -16615,11 +16615,11 @@ - - - - - + + + + + @@ -16628,47 +16628,47 @@ - - - - - - - + + + + + + + - - - + + + - - + + - - - - - - - + + + + + + + - - - - + + + + - - - - + + + + @@ -16677,8 +16677,8 @@ - - + + @@ -16691,10 +16691,10 @@ - - - - + + + + @@ -16836,28 +16836,28 @@ - - - - - - - - + + + + + + + + - - - - - - + + + + + + - - - + + + diff --git a/gtkhtml/gtkhtml-api.raw b/gtkhtml/gtkhtml-api.raw index f9c760f81..0a685af17 100644 --- a/gtkhtml/gtkhtml-api.raw +++ b/gtkhtml/gtkhtml-api.raw @@ -278,24 +278,24 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -858,15 +858,15 @@ - - - - - - - - - + + + + + + + + + @@ -975,10 +975,10 @@ - - - - + + + + diff --git a/panelapplet/panelapplet-api.raw b/panelapplet/panelapplet-api.raw index 632e5f21f..c079f4322 100644 --- a/panelapplet/panelapplet-api.raw +++ b/panelapplet/panelapplet-api.raw @@ -27,7 +27,7 @@ - + @@ -44,7 +44,7 @@ - + diff --git a/pango/pango-api.raw b/pango/pango-api.raw index 9643dc854..eb7f6ac19 100644 --- a/pango/pango-api.raw +++ b/pango/pango-api.raw @@ -689,15 +689,15 @@ - - - - - - + + + + + + - + @@ -718,16 +718,16 @@ - - + + - - + + - - + + @@ -735,8 +735,8 @@ - - + + @@ -774,8 +774,8 @@ - - + + @@ -834,9 +834,9 @@ - - - + + + @@ -845,13 +845,13 @@ - - + + - - - + + + @@ -866,9 +866,9 @@ - - - + + + @@ -1083,18 +1083,18 @@ - - - + + + - - - + + + - - + + @@ -1111,10 +1111,10 @@ - - - - + + + + @@ -1183,13 +1183,13 @@ - + - - - - + + + + @@ -1305,12 +1305,12 @@ - - - - - - + + + + + + @@ -1358,27 +1358,27 @@ - - + + - - - - - - - - - - - + + + + + + + + + + + - - - - + + + + diff --git a/parser/gapi2xml.pl b/parser/gapi2xml.pl index 428769aed..09e1e3c58 100755 --- a/parser/gapi2xml.pl +++ b/parser/gapi2xml.pl @@ -119,7 +119,7 @@ while ($line = ) { $sdef .= $line; last if ($line =~ /^(deprecated)?}/); } - $sdef =~ s!/\*.*?(\*/|\n)!!g; + $sdef =~ s!/\*[^<].*?(\*/|\n)!!g; $sdef =~ s/\n\s*//g; $sdefs{$sname} = $sdef; } elsif ($line =~ /^(\w+)_(class|base)_init\b/) { @@ -193,7 +193,7 @@ while ($line = ) { } elsif ($line =~ /\#define\s+(\w+)\s+\"(.*)\"/) { $defines{$1} = $2; } - } else { + } elsif ($line !~ /\/\*/) { print $line; } } @@ -320,7 +320,7 @@ foreach $type (sort(keys(%objects))) { $instdef = $sdefs{$1} if ($insttype =~ /struct\s+(\w+)/); $classdef = $sdefs{$1} if ($classtype =~ /struct\s+(\w+)/); $classdef =~ s/deprecated//g; - $instdef =~ s/\s+(\*+)/\1 /g; + $instdef =~ s/\s+(\*+)([^\/])/\1 \2/g; warn "Strange Class $inst\n" if (!$instdef && $debug); $classcnt++; @@ -338,11 +338,11 @@ foreach $type (sort(keys(%objects))) { if ($instdef =~ /^struct/) { $instdef =~ /\{(.*)\}/; $fieldstr = $1; - $fieldstr =~ s|/\*.*?\*/||g; + $fieldstr =~ s|/\*[^<].*?\*/||g; @fields = split(/;/, $fieldstr); - $fields[0] =~ /(\w+)/; - $obj_el->setAttribute('parent', "$1"); - addFieldElems($obj_el, @fields[1..$#fields]); + addFieldElems($obj_el, 'private', @fields); + $obj_el->setAttribute('parent', $obj_el->firstChild->getAttribute('type')); + $obj_el->removeChild($obj_el->firstChild); } elsif ($instdef =~ /privatestruct/) { # just get the parent for private structs $instdef =~ /\{\s*(\w+)/; @@ -414,7 +414,7 @@ foreach $key (sort (keys (%types))) { $struct_el->setAttribute('opaque', 'true'); } else { $def =~ /\{(.+)\}/; - addFieldElems($struct_el, split(/;/, $1)); + addFieldElems($struct_el, 'public', split(/;/, $1)); } } @@ -470,9 +470,14 @@ print "props: $propcnt childprops: $childpropcnt signals: $sigcnt\n\n"; sub addFieldElems { - my ($parent, @fields) = @_; + my ($parent, $defaultaccess, @fields) = @_; + my $access = $defaultaccess; foreach $field (@fields) { + if ($field =~ m!^/\*< (public|private) >.*\*/(.*)$!) { + $access = $1; + $field = $2; + } next if ($field !~ /\S/); $field =~ s/\s+(\*+)/\1 /g; $field =~ s/(\w+)\s+const /const \1 /g; @@ -489,15 +494,19 @@ sub addFieldElems my $type = $1 . $2; $symb = $3; foreach $tok (split (/,\s*/, $symb)) { if ($tok =~ /(\w+)\s*\[(.*)\]/) { - $elem = addNameElem($parent, 'field', $1); + $elem = addNameElem($parent, 'field', $1, ""); $elem->setAttribute('array_len', "$2"); } elsif ($tok =~ /(\w+)\s*\:\s*(\d+)/) { - $elem = addNameElem($parent, 'field', $1); + $elem = addNameElem($parent, 'field', $1, ""); $elem->setAttribute('bits', "$2"); } else { - $elem = addNameElem($parent, 'field', $tok); + $elem = addNameElem($parent, 'field', $tok, ""); } $elem->setAttribute('type', "$type"); + + if ($access ne $defaultaccess) { + $elem->setAttribute('access', "$access"); + } } } else { die "$field\n"; @@ -695,7 +704,7 @@ sub addNameElem my $elem = $doc->createElement($type); $node->appendChild($elem); - if ($prefix) { + if (defined $prefix) { my $match; if ($cname =~ /$prefix(\w+)/) { $match = $1; @@ -905,6 +914,7 @@ sub addVirtualMethods { my ($class, $node) = @_; $class =~ s/\n\s*//g; + $class =~ s/\/\*.*?\*\///g; while ($class =~ /;\s*(G_CONST_RETURN\s+)?(\S+\s*\**)\s*\(\*\s*(\w+)\)\s*\((.*?)\);/) { $ret = $1 . $2; $cname = $3; $parms = $4; diff --git a/parser/gapi_pp.pl b/parser/gapi_pp.pl index da2c5a8d0..96cec5738 100755 --- a/parser/gapi_pp.pl +++ b/parser/gapi_pp.pl @@ -59,7 +59,7 @@ foreach $fname (@hdrs) { next if ($line =~ /$ignoreit_regex/); - $line =~ s/\/\*.*?\*\///g; + $line =~ s/\/\*[^<].*?\*\///g; next if ($line !~ /\S/); @@ -77,7 +77,7 @@ foreach $fname (@hdrs) { $def =~ s/\\\n//g; print $def; } - } elsif ($line =~ /^\s*\/\*/) { + } elsif ($line =~ /^\s*\/\*[^<]/) { while ($line !~ /\*\//) {$line = ;} } elsif ($line =~ /^extern/) { while ($line !~ /;/) {$line = ;} @@ -158,7 +158,7 @@ foreach $fname (@hdrs) { $do_print = 0; } } else { - if ($braces or $line =~ /;/) { + if ($braces or $line =~ /;|\/\*/) { if ($deprecated == -1) { print $line; } else { diff --git a/rsvg/rsvg-api.raw b/rsvg/rsvg-api.raw index 99176d0b3..121e3e4ce 100644 --- a/rsvg/rsvg-api.raw +++ b/rsvg/rsvg-api.raw @@ -30,10 +30,10 @@ - - - - + + + + @@ -76,7 +76,7 @@ - + @@ -104,12 +104,12 @@ - - + + - - + + @@ -163,22 +163,22 @@ - - - - - - - - - + + + + + + + + + - - - - - + + + + + @@ -196,45 +196,45 @@ - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vte/vte-api.raw b/vte/vte-api.raw index 4b8e0badf..65fbe9224 100644 --- a/vte/vte-api.raw +++ b/vte/vte-api.raw @@ -50,9 +50,9 @@ - - - + + + @@ -88,8 +88,8 @@ - - + + @@ -106,16 +106,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -667,20 +667,20 @@ - - - - - - + + + + + + - - - - - - + + + + + +