Skip to content

Commit e125db8

Browse files
committed
Stop adding interp object at link time
1 parent 2a5a0d8 commit e125db8

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

plugin/bignums_syntax.ml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,17 @@ let bigN_list_of_constructors =
194194
let declare_numeral_interpreter uid sc dir interp (patl,uninterp,b) =
195195
(* unsynchronized state *)
196196
Notation.register_bignumeral_interpretation uid (interp,uninterp);
197-
(* interp object *)
198-
Notation.enable_prim_token_interpretation { pt_local = false;
199-
pt_scope = sc;
200-
pt_interp_info = Uid uid;
201-
pt_required = dir;
202-
pt_refs = patl;
203-
pt_in_match = b }
197+
let interp () =
198+
Notation.enable_prim_token_interpretation {
199+
pt_local = false;
200+
pt_scope = sc;
201+
pt_interp_info = Uid uid;
202+
pt_required = dir;
203+
pt_refs = patl;
204+
pt_in_match = b;
205+
}
206+
in
207+
Mltop.declare_cache_obj_full (CacheObj { synterp = (fun () -> ()); interp }) "coq-bignums.plugin"
204208

205209
(* Actually declares the interpreter for bigN *)
206210
let () =

0 commit comments

Comments
 (0)