aboutsummaryrefslogtreecommitdiff
path: root/plugins/extraction/table.ml
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/extraction/table.ml')
-rw-r--r--plugins/extraction/table.ml8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/extraction/table.ml b/plugins/extraction/table.ml
index 439bb2a56f..301b6ed501 100644
--- a/plugins/extraction/table.ml
+++ b/plugins/extraction/table.ml
@@ -600,6 +600,14 @@ let string_of_modfile mp =
modfile_mps := MPmap.add mp s' !modfile_mps;
s'
+(* same as [string_of_modfile], but preserves the capital/uncapital 1st char *)
+
+let file_of_modfile mp =
+ let s0 = raw_string_of_modfile mp in
+ let s = string_of_modfile mp in
+ if s.[0] <> s0.[0] then s.[0] <- s0.[0];
+ s
+
let add_blacklist_entries l =
blacklist_table :=
List.fold_right (fun s -> Idset.add (id_of_string (String.capitalize s)))