diff options
author | 2000-11-29 11:35:24 +0000 | |
---|---|---|
committer | 2000-11-29 11:35:24 +0000 | |
commit | 384b29fe63ea1eaa039ecd503398d03c8e0fa208 (patch) | |
tree | b0947d2b48f268c88da1bb949199457d5a21be78 /library | |
parent | 88d05718d2e01680dc154e79e793c0d275677dab (diff) |
La zone par défaut pour le nommage des modules est Scratch
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1018 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library')
-rw-r--r-- | library/lib.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/lib.ml b/library/lib.ml index a7028e120..45877aa38 100644 --- a/library/lib.ml +++ b/library/lib.ml @@ -29,14 +29,14 @@ and library_segment = library_entry list let lib_stk = ref ([] : (section_path * node) list) let module_name = ref None -let path_prefix = ref ([] : dir_path) +let path_prefix = ref (["Scratch"] : dir_path) let recalc_path_prefix () = let rec recalc = function | (sp, OpenedSection _) :: _ -> let (pl,id,_) = repr_path sp in pl@[string_of_id id] | _::l -> recalc l - | [] -> (match !module_name with Some m -> m | None -> []) + | [] -> (match !module_name with Some m -> m | None -> ["Scratch"]) in path_prefix := recalc !lib_stk @@ -116,7 +116,7 @@ let check_for_module () = let start_module s = if !module_name <> None then error "a module is already started"; - if !path_prefix <> [] then error "some sections are already opened"; + if !path_prefix <> ["Scratch"] then error "some sections are already opened"; module_name := Some s; Univ.set_module s; let _ = add_anonymous_entry (Module s) in |