2008-01-29 Mike Kestner <mkestner@novell.com>

* generator/VirtualMethod (CName): mangle the name.
	* generator/SymbolTable.cs (MangleName): add 'remove' and 'foreach'
	mappings.  Should probably just get a C# keyword list and map all of
	them instead of onesy twoseys.
	Fixes for tnymail binding generation.

svn path=/trunk/gtk-sharp/; revision=94286
This commit is contained in:
Mike Kestner 2008-01-29 18:48:04 +00:00
parent b40365eafb
commit 6a668a2cc8
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2008-01-29 Mike Kestner <mkestner@novell.com>
* generator/VirtualMethod (CName): mangle the name.
* generator/SymbolTable.cs (MangleName): add 'remove' and 'foreach'
mappings. Should probably just get a C# keyword list and map all of
them instead of onesy twoseys.
Fixes for tnymail binding generation.
2008-01-24 Lluis Sanchez Gual <lluis@novell.com>
* glade/XML.custom: due to a recent Mono fix (bug #322762),

View File

@ -66,7 +66,7 @@ namespace GtkSharp.Generation {
public string CName {
get {
return elem.GetAttribute ("cname");
return SymbolTable.Table.MangleName (elem.GetAttribute ("cname"));
}
}

View File

@ -388,6 +388,10 @@ namespace GtkSharp.Generation {
return "_internal";
case "where":
return "wh3r3";
case "foreach":
return "for_each";
case "remove":
return "_remove";
default:
break;
}