(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************)
(** This file provides a high-level interface to the environment variables neededbyRocqtorun(suchascoqlib).Thevaluesofthesevariables maycomefromdifferentsources(shellenvironmentvariables,
command line options, options set at the time Rocq was build). *)
val getenv_rocq : string -> stringoption (** [getenv_rocq name] returns the value of "ROCQ$name" if it exists, otherwisethevalueof"COQ$name"ifitexistsandwarnsthatit
is deprecated, otherwise [None]. *)
(** [expand_path_macros warn s] substitutes environment variables inastringbytheirvalues.Thisfunctionalsotakescareof substitutingpathoftheform'~X'byanabsolutepath.
Use [warn] as a message displayer. *) val expand_path_macros : warn:(string -> unit) -> string -> string
(** [home warn] returns the root of the user directory, depending ontheOS.Thisinformationisusuallystoredinthe$HOME environmentvariableonPOSIXshells.Ifnosuchvariable exists,thenothercommonnamesaretried(HOMEDRIVE,HOMEPATH,
USERPROFILE). If all of them fail, [warn] is called. *) val home : warn:(string -> unit) -> string
(** [datadir] is the path to the installed data directory. *) val datadir : unit -> string
(** [configdir] is the path to the installed config directory. *) val configdir : unit -> string
(** [coqpath] is the standard path to coq. Noticethatcoqpathisstoredinreverseorder,sincethatis
the order it gets added to the search path. *) val coqpath : unit -> stringlist
(** Rocq tries to honor the XDG Base Directory Specification to access theuser'sconfigurationfiles.
see[http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html]
*) val xdg_config_home : (string -> unit) -> string val xdg_data_home : (string -> unit) -> string val xdg_data_dirs : (string -> unit) -> stringlist val xdg_dirs : warn : (string -> unit) -> stringlist
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.18 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.