aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/coqdep.ml2
-rw-r--r--tools/coqdep_common.ml8
-rw-r--r--tools/coqdep_lexer.mll2
3 files changed, 4 insertions, 8 deletions
diff --git a/tools/coqdep.ml b/tools/coqdep.ml
index 578f47336..f083a59cf 100644
--- a/tools/coqdep.ml
+++ b/tools/coqdep.ml
@@ -121,7 +121,7 @@ let traite_Declare f =
let s' = basename_noext s in
(match search_ml_known s with
| Some mldir when not (List.mem s' !decl_list) ->
- let fullname = file_name (String.uncapitalize s') mldir in
+ let fullname = file_name s' mldir in
let depl = mL_dep_list s (fullname ^ ".ml") in
treat depl;
decl_list := s :: !decl_list
diff --git a/tools/coqdep_common.ml b/tools/coqdep_common.ml
index a952881c8..1845351cd 100644
--- a/tools/coqdep_common.ml
+++ b/tools/coqdep_common.ml
@@ -100,8 +100,6 @@ let safe_hash_add clq q (k,v) =
(** Files found in the loadpaths.
For the ML files, the string is the basename without extension.
- To allow ML source filename to be potentially capitalized,
- we perform a double search.
*)
let mkknown () =
@@ -109,10 +107,8 @@ let mkknown () =
let add x s = if Hashtbl.mem h x then () else Hashtbl.add h x s
and iter f = Hashtbl.iter f h
and search x =
- try Some (Hashtbl.find h (String.uncapitalize x))
- with Not_found ->
- try Some (Hashtbl.find h (String.capitalize x))
- with Not_found -> None
+ try Some (Hashtbl.find h x)
+ with Not_found -> None
in add, iter, search
let add_ml_known, iter_ml_known, search_ml_known = mkknown ()
diff --git a/tools/coqdep_lexer.mll b/tools/coqdep_lexer.mll
index f59d6a0f0..3bfea0c28 100644
--- a/tools/coqdep_lexer.mll
+++ b/tools/coqdep_lexer.mll
@@ -18,7 +18,7 @@
type coq_token =
| Require of qualid list
| RequireString of string
- | Declare of string list (* Names are assumed to be uncapitalized *)
+ | Declare of string list
| Load of string
| AddLoadPath of string
| AddRecLoadPath of string * qualid