2003-09-11 Alp Toker <alp@atoker.com>

* generator/Parameters.cs: Handle string length parameters specified
        not just as int but also signed/unsigned int, long or short

svn path=/trunk/gtk-sharp/; revision=18027
This commit is contained in:
Alp Toker 2003-09-11 03:48:25 +00:00
parent 5e8e9a1c07
commit 9749217abf
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-09-11 Alp Toker <alp@atoker.com>
* generator/Parameters.cs: Handle string length parameters specified
not just as int but also signed/unsigned int, long or short
2003-09-07 Alp Toker <alp@atoker.com>
* makefile.win32: New clean and release targets, and don't bother

View File

@ -49,7 +49,7 @@ namespace GtkSharp.Generation {
public bool IsLength {
get {
return (CSType == "int" &&
return ((CSType == "int" || CSType == "uint" || CSType == "long" || CSType == "ulong" || CSType == "short" || CSType == "ushort") &&
(Name.EndsWith("len") || Name.EndsWith("length")));
}
}