From 510b10b96b546fcc6c6b6be85050305ddd192a41 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sat, 5 Feb 2022 17:30:11 +0800 Subject: replace some hash table usage by tuples Previously I used hash tables, which consume too much memory. Now the critical parts are replaced by a new hand-written library called "tuple.h". Now we can easily parse larger inputs. I haven't tested its limits, though. --- src/grammar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/grammar.c') diff --git a/src/grammar.c b/src/grammar.c index 5ed0b96..0b2be8d 100644 --- a/src/grammar.c +++ b/src/grammar.c @@ -222,7 +222,7 @@ build_grammar(Grammar *g, const List *rules, CC_MOD(List *) names, CC_MOD(List *) predicates) { g->names = (List *) names; - g->predicates = predicates; + g->predicates = (List *) predicates; NUM len = list_length(names); NUM rule_len = list_length(rules); -- cgit v1.2.3-18-g5258