aboutsummaryrefslogtreecommitdiff
path: root/plugins/xml/xmlcommand.mli
diff options
context:
space:
mode:
authorletouzey2011-04-01 13:17:13 +0000
committerletouzey2011-04-01 13:17:13 +0000
commit86eda408ad28a80a33ae31743e9ae77ceb7967c2 (patch)
tree9be9db5d77b90b63469459016816d04896248efd /plugins/xml/xmlcommand.mli
parent7d497e25f19022aa7f697cffb353f9f6776e822e (diff)
Checks for signals in VM, allowing it to be interrupted by Ctrl-C (experimental)
We simply reuse the ocaml flag caml_signals_are_pending and the function caml_process_pending_signals, and place a test at some place of the interpreter loop (at a similar location as in ocaml byterun/interp.c). The symbols caml_* we use are not officially made public in *.h installed alongside ocaml, but they seem pretty stable (there since at least ocaml 3.10, independent of arch and of byte/asm), so we access them via "extern". For once, thanks dirty C... In addition to that, when catching a Ctrl-C, we reset the vm via "coq_sp = coq_stack_high" as suggested by Benjamin G. This patch should be quite portable, it might even work in win32. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13947 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/xml/xmlcommand.mli')
0 files changed, 0 insertions, 0 deletions