X-Git-Url: http://git.annexia.org/?p=xavierbot.git;a=blobdiff_plain;f=init;h=7608e200c9927c05d29834e1e5b6c7f648ecebb6;hp=d6a0d920b66bbef94adef2688e0bbc02fb4e272d;hb=e510484ab8b113b43cf95a18820ad3a0629edf4b;hpb=949764f5441703943c4ef21e36c333032880ef21 diff --git a/init b/init index d6a0d92..7608e20 100644 --- a/init +++ b/init @@ -1,5 +1,5 @@ (* Initialise the toplevel environment. -*- tuareg -*- - * $Id: init,v 1.10 2008/02/13 17:17:31 rjones Exp $ + * $Id: init,v 1.12 2010/04/04 19:38:40 rjones Exp $ * - Removes the Pervasives module and any dangerous functions. * - Loads just the modules we want to give access to, and just * the functions within those modules that we want to give. @@ -9,6 +9,7 @@ *) (* Load some libraries. *) +#load "dynlink.cma";; #load "nums.cma";; #load "unix.cma";; #load "str.cma";; @@ -194,12 +195,11 @@ end = struct include Scanf end module StringSet = Set.Make(String) module StringMap = Map.Make(String) -(* Create an object, so we get the CamlinternalOO module. *) +(* Create an object, so we get the CamlinternalOO module ... *) let _ = object end (* ... but prevent public access to CamlinternalOO. *) -module CamlinternalOO : sig -end = struct end +module CamlinternalOO = struct end #load "camlp4o.cma";; #load "./pa_noexternal.cmo";;