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:
parent
28049f1c2b
commit
ff61ba7907
3 changed files with 6 additions and 3 deletions
|
@ -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>
|
2002-03-28 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
* generator/SignalHandler.cs : switch to 2.0 libs
|
* generator/SignalHandler.cs : switch to 2.0 libs
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace GtkSharp.Generation {
|
||||||
Console.WriteLine ("Usage: codegen <filename>");
|
Console.WriteLine ("Usage: codegen <filename>");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Parser p = new Parser (args[0]);
|
Parser p = new Parser (args[0]);
|
||||||
SymbolTable table = p.Parse ();
|
SymbolTable table = p.Parse ();
|
||||||
Console.WriteLine (table.Count + " types parsed.");
|
Console.WriteLine (table.Count + " types parsed.");
|
||||||
|
|
|
@ -92,8 +92,7 @@ namespace GtkSharp.Generation {
|
||||||
|
|
||||||
private String Trim(String type)
|
private String Trim(String type)
|
||||||
{
|
{
|
||||||
char[] ast = {'*'};
|
String trim_type = type.TrimEnd('*');
|
||||||
String trim_type = type.TrimEnd(ast);
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue