projects
/
cascardo
/
grammar.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge with lr1 branch
[cascardo/grammar.git]
/
item.c
diff --git
a/item.c
b/item.c
index
ef98647
..
eef188d
100644
(file)
--- 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;
{
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
#ifdef DEBUG
item_collection_print (collection);
#endif
-
g_hash_table_destroy (collection)
;
+
return collection
;
}
}