| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | (** * The RocqIDE main module *) |
| 12 | |
| 13 | (** The arguments that will be passed to rocqtop. No quoting here, since |
| 14 | no /bin/sh when using create_process instead of open_process. *) |
| 15 | val sup_args : string list ref |
| 16 | |
| 17 | (** In debug mode under win32, messages are written to a log file *) |
| 18 | val logfile : string option ref |
| 19 | |
| 20 | (** Filter the argv from rocqide specific options, and set |
| 21 | Minilib.rocqtop_path accordingly *) |
| 22 | val read_rocqide_args : string list -> string list |
| 23 | |
| 24 | (** Prepare the widgets, load the given files in tabs *) |
| 25 | val main : string list -> GWindow.window |
| 26 | |
| 27 | (** Terminate rocqide after closing all rocqtops and waiting |
| 28 | for their death *) |
| 29 | val close_and_quit : unit -> unit |
| 30 | |
| 31 | (** Function to load of a file. *) |
| 32 | val do_load : string -> unit |
| 33 | |
| 34 | (** Set rocqide to perform a clean quit at Ctrl-C, while launching |
| 35 | [crash_save] and exiting for others received signals *) |
| 36 | val set_signal_handlers : ?parent:GWindow.window -> unit -> unit |
| 37 | |
| 38 | (** Emergency saving of opened files as "foo.v.crashrocqide", |
| 39 | and exit (if the integer isn't 127). *) |
| 40 | val crash_save : int -> unit |