2009-05-06 Mike Kestner <mkestner@novell.com>

* generator/EnumGen.cs: support 1L long values or explicit types.

svn path=/trunk/gtk-sharp/; revision=133685
This commit is contained in:
Mike Kestner 2009-05-06 20:52:24 +00:00
parent 2d8692338d
commit 60618ca6f0
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2009-05-06 Mike Kestner <mkestner@novell.com>
* generator/EnumGen.cs: support 1L long values or explicit types.
2009-05-06 Mike Kestner <mkestner@novell.com>
* generator/ReturnValue.cs: null-term array marshaling for vms.

View file

@ -43,11 +43,16 @@ namespace GtkSharp.Generation {
if (value.EndsWith("U")) {
enum_type = " : uint";
value = value.TrimEnd('U');
} else if (value.EndsWith("L")) {
enum_type = " : long";
value = value.TrimEnd('L');
}
result += " = " + value;
}
members.Add (result + ",");
}
if (elem.HasAttribute ("enum_type"))
enum_type = ": " + elem.GetAttribute ("enum_type");
}
public override bool Validate ()