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
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;
#ifdef DEBUG
item_collection_print (collection);
#endif
- g_hash_table_destroy (collection);
+ return collection;
}