2002-03-29 Mike Kestner <mkestner@speakeasy.net>

* generator/SymbolTable.cs (Trim): revamp TrimEnd call.

svn path=/trunk/gtk-sharp/; revision=3501
This commit is contained in:
Mike Kestner 2002-03-29 17:55:46 +00:00
parent 28049f1c2b
commit ff61ba7907
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-03-29 Mike Kestner <mkestner@speakeasy.net>
* generator/SymbolTable.cs (Trim): revamp TrimEnd call.
2002-03-28 Mike Kestner <mkestner@speakeasy.net>
* generator/SignalHandler.cs : switch to 2.0 libs

View File

@ -18,7 +18,7 @@ namespace GtkSharp.Generation {
Console.WriteLine ("Usage: codegen <filename>");
return 0;
}
Parser p = new Parser (args[0]);
SymbolTable table = p.Parse ();
Console.WriteLine (table.Count + " types parsed.");

View File

@ -92,8 +92,7 @@ namespace GtkSharp.Generation {
private String Trim(String type)
{
char[] ast = {'*'};
String trim_type = type.TrimEnd(ast);
String trim_type = type.TrimEnd('*');
if (trim_type.StartsWith("const-")) return trim_type.Substring(6);
return trim_type;
}