equal
deleted
inserted
replaced
34 val encode_range: range -> T |
34 val encode_range: range -> T |
35 val reset_range: T -> T |
35 val reset_range: T -> T |
36 val range: T -> T -> range |
36 val range: T -> T -> range |
37 val thread_data: unit -> T |
37 val thread_data: unit -> T |
38 val setmp_thread_data: T -> ('a -> 'b) -> 'a -> 'b |
38 val setmp_thread_data: T -> ('a -> 'b) -> 'a -> 'b |
39 val setmp_thread_data_seq: T -> ('a -> 'b Seq.seq) -> 'a -> 'b Seq.seq |
|
40 end; |
39 end; |
41 |
40 |
42 structure Position: POSITION = |
41 structure Position: POSITION = |
43 struct |
42 struct |
44 |
43 |
174 |
173 |
175 fun setmp_thread_data pos f x = |
174 fun setmp_thread_data pos f x = |
176 if ! Output.debugging then f x |
175 if ! Output.debugging then f x |
177 else Library.setmp_thread_data tag (thread_data ()) pos f x; |
176 else Library.setmp_thread_data tag (thread_data ()) pos f x; |
178 |
177 |
179 fun setmp_thread_data_seq pos f x = |
|
180 setmp_thread_data pos f x |> Seq.wrap (fn pull => setmp_thread_data pos pull ()); |
|
181 |
|
182 end; |
178 end; |
183 |
179 |
184 end; |
180 end; |