2003-10-09 Mike Kestner <mkestner@ximian.com>
* generator/Statistics.cs (Report): pretty it up. * generator/SymbolTable.cs : handle const-xmlChar as ConstString svn path=/trunk/gtk-sharp/; revision=18832
This commit is contained in:
parent
3814787622
commit
a2e87da28e
3 changed files with 22 additions and 15 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-10-09 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* generator/Statistics.cs (Report): pretty it up.
|
||||
* generator/SymbolTable.cs : handle const-xmlChar as ConstString
|
||||
|
||||
2003-10-09 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* pango/Makefile.in : fix path to glib-sharp.dll
|
||||
|
|
|
@ -144,21 +144,22 @@ namespace GtkSharp.Generation {
|
|||
|
||||
public static void Report()
|
||||
{
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Generation Summary:");
|
||||
Console.WriteLine("\tEnums: " + enums);
|
||||
Console.WriteLine("\tStructs: " + structs);
|
||||
Console.WriteLine("\tBoxed: " + boxed);
|
||||
Console.WriteLine("\tOpaques: " + opaques);
|
||||
Console.WriteLine("\tInterfaces: " + interfaces);
|
||||
Console.WriteLine("\tCallbacks: " + cbs);
|
||||
Console.WriteLine("\tObjects: " + objects);
|
||||
Console.WriteLine("\tProperties: " + props);
|
||||
Console.WriteLine("\tSignals: " + sigs);
|
||||
Console.WriteLine("\tMethods: " + methods);
|
||||
Console.WriteLine("\tConstructors: " + ctors);
|
||||
Console.WriteLine("\tThrottled: " + throttled);
|
||||
Console.WriteLine("\tIgnored: " + ignored);
|
||||
Console.WriteLine("Total Nodes: " + (enums+structs+boxed+opaques+interfaces+cbs+objects+props+sigs+methods+ctors+throttled+ignored));
|
||||
Console.Write(" Enums: " + enums);
|
||||
Console.Write(" Structs: " + structs);
|
||||
Console.Write(" Boxed: " + boxed);
|
||||
Console.Write(" Opaques: " + opaques);
|
||||
Console.Write(" Interfaces: " + interfaces);
|
||||
Console.Write(" Objects: " + objects);
|
||||
Console.WriteLine(" Callbacks: " + cbs);
|
||||
Console.Write(" Properties: " + props);
|
||||
Console.Write(" Signals: " + sigs);
|
||||
Console.Write(" Methods: " + methods);
|
||||
Console.Write(" Constructors: " + ctors);
|
||||
Console.WriteLine(" Throttled: " + throttled);
|
||||
Console.WriteLine("Total Nodes: " + (enums+structs+boxed+opaques+interfaces+cbs+objects+props+sigs+methods+ctors+throttled));
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,7 @@ namespace GtkSharp.Generation {
|
|||
// Const returned strings must be generated
|
||||
// differently from memory-managed strings
|
||||
AddType (new ConstStringGen ("const-gchar"));
|
||||
AddType (new ConstStringGen ("const-xmlChar"));
|
||||
AddType (new ConstStringGen ("const-char"));
|
||||
AddType (new StringGen ("gchar"));
|
||||
AddType (new SimpleGen ("gfloat", "float"));
|
||||
|
@ -132,7 +133,7 @@ namespace GtkSharp.Generation {
|
|||
string trim_type = type.TrimEnd('*');
|
||||
|
||||
// HACK: Similar to above, but for const strings
|
||||
if (trim_type == "const-gchar" || trim_type == "const-char") return trim_type;
|
||||
if (trim_type == "const-gchar" || trim_type == "const-char" || trim_type == "const-xmlChar") return trim_type;
|
||||
|
||||
if (trim_type.StartsWith("const-")) return trim_type.Substring(6);
|
||||
return trim_type;
|
||||
|
|
Loading…
Reference in a new issue