X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fgrammar.git;a=blobdiff_plain;f=item.c;h=eef188d8917fec16ec33317e73d3091388c9fede;hp=ef9864711582b0b7ad454c4edb6def2ee4dc0a54;hb=cdbf495ba8308a218b8e2ee3ea8b6b9559471b2d;hpb=b1a65b0f36eca06bcc88db6f4cecee76b78c3177 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; }