mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
2002-08-20 Rachel Hestilow <hestilow@ximian.com>
* generator/SymbolTable.cs (Trim): Work around "void*". Libart has a lovely API... svn path=/trunk/gtk-sharp/; revision=6836
This commit is contained in:
parent
15432372a6
commit
2d8d20e341
@ -1,3 +1,8 @@
|
||||
2002-08-20 Rachel Hestilow <hestilow@ximian.com>
|
||||
|
||||
* generator/SymbolTable.cs (Trim): Work around "void*".
|
||||
Libart has a lovely API...
|
||||
|
||||
2002-08-22 Mike Kestner <mkestner@speakeasy.net>
|
||||
|
||||
* glib/IWrapper.cs : remove set_Handle
|
||||
|
@ -112,6 +112,10 @@ namespace GtkSharp.Generation {
|
||||
|
||||
private static string Trim(string type)
|
||||
{
|
||||
// HACK: If we don't detect this here, there is no
|
||||
// way of indicating it in the symbol table
|
||||
if (type == "void*" || type == "const-void*") return "gpointer";
|
||||
|
||||
string trim_type = type.TrimEnd('*');
|
||||
if (trim_type.StartsWith("const-")) return trim_type.Substring(6);
|
||||
return trim_type;
|
||||
|
Loading…
Reference in New Issue
Block a user