From 6463e6e95951850f68c760bff192fe242766ff48 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sun, 23 Oct 2005 22:26:18 +0000 Subject: [PATCH] Item collection building returns the collection Function that builds the item collection returns it instead of simply destroying it. git-archimport-id: cascardo@tlscascardo--private/libgrammatic--lr1--0.1--patch-4 --- item.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/item.c b/item.c index 3eb8fe3..c4c5373 100644 --- a/item.c +++ b/item.c @@ -442,7 +442,8 @@ GHashTable* item_collection_goto (GHashTable* collection, Grammar* grammar, return return_item_set; } -void item_set_collection (Grammar* grammar, GHashTable* first, symbol_t* start) +GHashTable* item_set_collection (Grammar* grammar, GHashTable* first, + symbol_t* start) { GHashTable* collection; GHashTable* item_set; @@ -491,5 +492,5 @@ void item_set_collection (Grammar* grammar, GHashTable* first, symbol_t* start) #ifdef DEBUG item_collection_print (collection); #endif - g_hash_table_destroy (collection); + return collection; } -- 2.20.1