From: Thadeu Lima de Souza Cascardo Date: Sun, 23 Oct 2005 22:28:36 +0000 (+0000) Subject: merge with lr1 branch X-Git-Tag: cascardo@tlscascardo--private,libgrammatic--regular--0.1--base-0~9 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fgrammar.git;a=commitdiff_plain;h=cdbf495ba8308a218b8e2ee3ea8b6b9559471b2d;hp=b1a65b0f36eca06bcc88db6f4cecee76b78c3177 merge with lr1 branch Patches applied: * cascardo@tlscascardo--private/libgrammatic--lr1--0.1--patch-4 Item collection building returns the collection git-archimport-id: cascardo@tlscascardo--private/libgrammatic--nogobject-lr1--0.1--patch-3 --- diff --git a/item.c b/item.c index ef98647..eef188d 100644 --- a/item.c +++ b/item.c @@ -420,7 +420,8 @@ GHashTable* item_collection_goto (GHashTable* collection, grammar_t* grammar, } } -void item_set_collection (grammar_t* grammar, GHashTable* first, symbol_t* start) +GHashTable* item_set_collection (grammar_t* grammar, GHashTable* first, + symbol_t* start) { GHashTable* collection; GHashTable* item_set; @@ -469,5 +470,5 @@ void item_set_collection (grammar_t* grammar, GHashTable* first, symbol_t* start #ifdef DEBUG item_collection_print (collection); #endif - g_hash_table_destroy (collection); + return collection; }