2002-07-18 Mike Kestner <mkestner@speakeasy.net>

* generator/StructBase.cs : Mangle field names.
	* generator/StructGen.cs : uncomment GenField.

svn path=/trunk/gtk-sharp/; revision=5892
This commit is contained in:
Mike Kestner 2002-07-18 13:42:31 +00:00
parent aeb6280e2f
commit e39080baa6
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2002-07-18 Mike Kestner <mkestner@speakeasy.net>
* generator/StructBase.cs : Mangle field names.
* generator/StructGen.cs : uncomment GenField.
2002-07-18 Duncan Mak <duncan@ximian.com>
* parser/Gtk.metadata: Mark gtk_radio_menu_item_new_with_label,

View file

@ -97,7 +97,7 @@ namespace GtkSharp.Generation {
if (field.HasAttribute("array_len")) {
sw.Write ("[]");
}
sw.WriteLine (" " + field.GetAttribute("cname") + ";");
sw.WriteLine (" " + MangleName(field.GetAttribute("cname")) + ";");
return true;
}
@ -285,6 +285,8 @@ namespace GtkSharp.Generation {
return "evnt";
} else if (name == "object") {
return "objekt";
} else if (name == "in") {
return "inn";
} else {
return name;
}

View file

@ -54,8 +54,8 @@ namespace GtkSharp.Generation {
switch (node.Name) {
case "field":
Statistics.IgnoreCount++;
// GenField(member, sw);
// Statistics.IgnoreCount++;
GenField(member, sw);
break;
case "callback":