2
* config - Configuration module for OCaml Batteries Included
3
* Copyright (C) 2008 David Teller, LIFO, Universite d'Orleans
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version,
9
* with the special exception on linking described in file LICENSE.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
let version = "@VERSION@";;
22
let documentation_root = "@DOCROOT@";;
23
let (browser: (_, _, _) format) = "@BROWSER_COMMAND@";;
25
(**The default function to open a www browser.*)
26
let default_browse s =
27
let command = Printf.sprintf browser s in
29
let current_browse = ref default_browse
31
let browse s = !current_browse s
32
let set_browser f = current_browse := f
34
let max_array_length = Sys.max_array_length
35
let word_size = Sys.word_size
36
let max_string_length= Sys.max_string_length