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

* generator/CodeGenerator.cs : Refactor generatable iteration.
	* generator/SymbolTable.cs : Add Generatables property to expose complex_types.Values.

svn path=/trunk/gtk-sharp/; revision=3008
This commit is contained in:
Mike Kestner 2002-03-08 22:40:00 +00:00
parent 7c31e5f7cb
commit 95d51167de
3 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2002-03-07 Mike Kestner <mkestner@speakeasy.net>
* generator/CodeGenerator.cs : Refactor generatable iteration.
* generator/SymbolTable.cs : Add Generatables property to expose complex_types.Values.
2002-03-02 Mike Kestner <mkestner@speakeasy.net> 2002-03-02 Mike Kestner <mkestner@speakeasy.net>
* makefile : add linux build. * makefile : add linux build.

View file

@ -23,9 +23,7 @@ namespace GtkSharp.Generation {
SymbolTable table = p.Parse (); SymbolTable table = p.Parse ();
Console.WriteLine (table.Count + " types parsed."); Console.WriteLine (table.Count + " types parsed.");
IDictionaryEnumerator de = table.GetEnumerator(); foreach (IGeneratable gen in table.Generatables) {
while (de.MoveNext()) {
IGeneratable gen = (IGeneratable) de.Value;
gen.Generate (table); gen.Generate (table);
} }

View file

@ -84,9 +84,10 @@ namespace GtkSharp.Generation {
} }
} }
public IDictionaryEnumerator GetEnumerator() public IEnumerable Generatables {
{ get {
return complex_types.GetEnumerator(); return complex_types.Values;
}
} }
private String Trim(String type) private String Trim(String type)