equal
deleted
inserted
replaced
62 |
62 |
63 |
63 |
64 (*prompts*) |
64 (*prompts*) |
65 fun ml_prompts p1 p2 = |
65 fun ml_prompts p1 p2 = |
66 (Control.primaryPrompt := p1; Control.secondaryPrompt := p2); |
66 (Control.primaryPrompt := p1; Control.secondaryPrompt := p2); |
|
67 |
|
68 (*dummy implementation*) |
|
69 fun magic_immutability_test _ = false; |
|
70 fun magic_immutability_mark _ = (); |
67 |
71 |
68 (*dummy implementation*) |
72 (*dummy implementation*) |
69 fun profile (n: int) f x = f x; |
73 fun profile (n: int) f x = f x; |
70 |
74 |
71 (*dummy implementation*) |
75 (*dummy implementation*) |
175 |
179 |
176 (* system command execution *) |
180 (* system command execution *) |
177 |
181 |
178 val system_out = (fn (output, rc) => (output, mk_int rc)) o system_out; |
182 val system_out = (fn (output, rc) => (output, mk_int rc)) o system_out; |
179 |
183 |
180 |
|
181 (*Convert a process ID to a decimal string (chiefly for tracing)*) |
|
182 fun process_id pid = |
184 fun process_id pid = |
183 Word.fmt StringCvt.DEC (Word.fromLargeWord (Posix.Process.pidToWord (Posix.ProcEnv.getpid ()))); |
185 Word.fmt StringCvt.DEC (Word.fromLargeWord (Posix.Process.pidToWord (Posix.ProcEnv.getpid ()))); |
184 |
186 |
185 |
187 |
186 (* getenv *) |
188 (* getenv *) |