2004-12-18 Mike Kestner <mkestner@novell.com>
* generator/Field.cs : add MarshalAs attrs for (u)longs. svn path=/trunk/gtk-sharp/; revision=37922
This commit is contained in:
parent
1cdd16f09c
commit
b0ede33602
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-12-18 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* generator/Field.cs : add MarshalAs attrs for (u)longs.
|
||||
|
||||
2004-12-18 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gconf/GConf/ChangeSet.cs : add internal Handle prop.
|
||||
|
|
|
@ -201,6 +201,12 @@ namespace GtkSharp.Generation {
|
|||
} else if (IsPointer && CSType != "string") {
|
||||
// FIXME: probably some fields here which should be visible.
|
||||
sw.WriteLine ("\t\tprivate {0} {1};", CSType, Name);
|
||||
} else if (CSType == "long") {
|
||||
sw.WriteLine ("\t\t[MarshalAs (UnmanagedType.SysInt)]");
|
||||
sw.WriteLine ("\t\t{0} {1} {2};", Access, CSType, StudlyName);
|
||||
} else if (CSType == "ulong") {
|
||||
sw.WriteLine ("\t\t[MarshalAs (UnmanagedType.SysUInt)]");
|
||||
sw.WriteLine ("\t\t{0} {1} {2};", Access, CSType, StudlyName);
|
||||
} else if (Access != "public") {
|
||||
sw.WriteLine ("\t\t{0} {1} {2};", Access, CSType, Name);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue