From a2e87da28e21665013ceffb34654c2d286d3f068 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Thu, 9 Oct 2003 23:14:12 +0000 Subject: [PATCH] 2003-10-09 Mike Kestner * generator/Statistics.cs (Report): pretty it up. * generator/SymbolTable.cs : handle const-xmlChar as ConstString svn path=/trunk/gtk-sharp/; revision=18832 --- ChangeLog | 5 +++++ generator/Statistics.cs | 29 +++++++++++++++-------------- generator/SymbolTable.cs | 3 ++- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7edf2205f..2cea8bad6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-10-09 Mike Kestner + + * generator/Statistics.cs (Report): pretty it up. + * generator/SymbolTable.cs : handle const-xmlChar as ConstString + 2003-10-09 Mike Kestner * pango/Makefile.in : fix path to glib-sharp.dll diff --git a/generator/Statistics.cs b/generator/Statistics.cs index ce3e0eb0e..315737e55 100644 --- a/generator/Statistics.cs +++ b/generator/Statistics.cs @@ -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(); } } } diff --git a/generator/SymbolTable.cs b/generator/SymbolTable.cs index 73d5fb9a0..7511b3f5f 100644 --- a/generator/SymbolTable.cs +++ b/generator/SymbolTable.cs @@ -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;