equal
deleted
inserted
replaced
5 *) |
5 *) |
6 |
6 |
7 signature ML_PRINT_DEPTH = |
7 signature ML_PRINT_DEPTH = |
8 sig |
8 sig |
9 val set_print_depth: int -> unit |
9 val set_print_depth: int -> unit |
10 val print_depth_raw: Config.raw |
|
11 val print_depth: int Config.T |
10 val print_depth: int Config.T |
12 val get_print_depth: unit -> int |
11 val get_print_depth: unit -> int |
13 end; |
12 end; |
14 |
13 |
15 structure ML_Print_Depth: ML_PRINT_DEPTH = |
14 structure ML_Print_Depth: ML_PRINT_DEPTH = |
16 struct |
15 struct |
17 |
16 |
18 val set_print_depth = ML_Print_Depth.set_print_depth; |
17 val set_print_depth = ML_Print_Depth.set_print_depth; |
19 |
18 |
20 val print_depth_raw = |
19 val print_depth = |
21 Config.declare ("ML_print_depth", \<^here>) |
20 Config.declare_int ("ML_print_depth", \<^here>) (fn _ => ML_Print_Depth.get_print_depth ()); |
22 (fn _ => Config.Int (ML_Print_Depth.get_print_depth ())); |
|
23 |
|
24 val print_depth = Config.int print_depth_raw; |
|
25 |
21 |
26 fun get_print_depth () = |
22 fun get_print_depth () = |
27 (case Context.get_generic_context () of |
23 (case Context.get_generic_context () of |
28 NONE => ML_Print_Depth.get_print_depth () |
24 NONE => ML_Print_Depth.get_print_depth () |
29 | SOME context => Config.get_generic context print_depth); |
25 | SOME context => Config.get_generic context print_depth); |