1 (***********************************************************************)
5 (* Jerome Vouillon, projet Cristal, INRIA Rocquencourt *)
6 (* Objective Caml port by John Malecki and Xavier Leroy *)
8 (* Copyright 1996 Institut National de Recherche en Informatique et *)
9 (* en Automatique. All rights reserved. This file is distributed *)
10 (* under the terms of the Q Public License version 1.0. *)
12 (***********************************************************************)
14 (* $Id: parameters.ml 9221 2009-04-02 09:06:33Z xclerc $ *)
16 (* Miscellaneous parameters *)
22 let program_loaded = ref false
23 let program_name = ref ""
24 let socket_name = ref ""
25 let arguments = ref ""
27 let default_load_path =
28 ref [ Filename.current_dir_name; Config.standard_library ]
31 load_path := dir :: except dir !load_path;
34 let add_path_for mdl dir =
35 let old = try Hashtbl.find load_path_for mdl with Not_found -> [] in
36 Hashtbl.replace load_path_for mdl (dir :: old)