summaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 0deb3867..169b58b0 100644
--- a/parser.c
+++ b/parser.c
@@ -1878,7 +1878,7 @@ void parse_init(void)
parser_cls = cobj_register(parser_s);
protect(&stream_parser_hash, &unique_s, &catch_all, convert(val *, 0));
- stream_parser_hash = make_hash(t, nil, nil);
+ stream_parser_hash = make_hash(t, t, nil);
catch_all = cons(t, nil);
parser_l_init();
@@ -1897,3 +1897,9 @@ void parse_init(void)
reg_fun(intern(lit("repl"), system_package), func_n4(repl));
reg_mac(json_s, func_n2(me_json));
}
+
+void parse_compat_fixup(int compat_ver)
+{
+ if (compat_ver <= 266)
+ tweak_hash(stream_parser_hash, t, nil);
+}