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:
Mike Kestner 2003-10-09 23:14:12 +00:00
parent 3814787622
commit a2e87da28e
3 changed files with 22 additions and 15 deletions

View File

@ -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> 2003-10-09 Mike Kestner <mkestner@ximian.com>
* pango/Makefile.in : fix path to glib-sharp.dll * pango/Makefile.in : fix path to glib-sharp.dll

View File

@ -144,21 +144,22 @@ namespace GtkSharp.Generation {
public static void Report() public static void Report()
{ {
Console.WriteLine();
Console.WriteLine("Generation Summary:"); Console.WriteLine("Generation Summary:");
Console.WriteLine("\tEnums: " + enums); Console.Write(" Enums: " + enums);
Console.WriteLine("\tStructs: " + structs); Console.Write(" Structs: " + structs);
Console.WriteLine("\tBoxed: " + boxed); Console.Write(" Boxed: " + boxed);
Console.WriteLine("\tOpaques: " + opaques); Console.Write(" Opaques: " + opaques);
Console.WriteLine("\tInterfaces: " + interfaces); Console.Write(" Interfaces: " + interfaces);
Console.WriteLine("\tCallbacks: " + cbs); Console.Write(" Objects: " + objects);
Console.WriteLine("\tObjects: " + objects); Console.WriteLine(" Callbacks: " + cbs);
Console.WriteLine("\tProperties: " + props); Console.Write(" Properties: " + props);
Console.WriteLine("\tSignals: " + sigs); Console.Write(" Signals: " + sigs);
Console.WriteLine("\tMethods: " + methods); Console.Write(" Methods: " + methods);
Console.WriteLine("\tConstructors: " + ctors); Console.Write(" Constructors: " + ctors);
Console.WriteLine("\tThrottled: " + throttled); Console.WriteLine(" Throttled: " + throttled);
Console.WriteLine("\tIgnored: " + ignored); Console.WriteLine("Total Nodes: " + (enums+structs+boxed+opaques+interfaces+cbs+objects+props+sigs+methods+ctors+throttled));
Console.WriteLine("Total Nodes: " + (enums+structs+boxed+opaques+interfaces+cbs+objects+props+sigs+methods+ctors+throttled+ignored)); Console.WriteLine();
} }
} }
} }

View File

@ -42,6 +42,7 @@ namespace GtkSharp.Generation {
// Const returned strings must be generated // Const returned strings must be generated
// differently from memory-managed strings // differently from memory-managed strings
AddType (new ConstStringGen ("const-gchar")); AddType (new ConstStringGen ("const-gchar"));
AddType (new ConstStringGen ("const-xmlChar"));
AddType (new ConstStringGen ("const-char")); AddType (new ConstStringGen ("const-char"));
AddType (new StringGen ("gchar")); AddType (new StringGen ("gchar"));
AddType (new SimpleGen ("gfloat", "float")); AddType (new SimpleGen ("gfloat", "float"));
@ -132,7 +133,7 @@ namespace GtkSharp.Generation {
string trim_type = type.TrimEnd('*'); string trim_type = type.TrimEnd('*');
// HACK: Similar to above, but for const strings // 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); if (trim_type.StartsWith("const-")) return trim_type.Substring(6);
return trim_type; return trim_type;