aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/declare.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/declare.ml b/library/declare.ml
index 5cdc2daa21..81021d1be5 100644
--- a/library/declare.ml
+++ b/library/declare.ml
@@ -426,9 +426,15 @@ let dirpath_of_global = function
| IndRef (sp,_) -> dirpath sp
| ConstructRef ((sp,_),_) -> dirpath sp
+let is_section_variable = function
+ | VarRef _ -> true
+ | _ -> false
+
let is_global id =
try
let osp = Nametab.locate (make_qualid [] id) in
+ (* Compatibilité V6.3: Les variables de section de sont pas globales
+ not (is_section_variable osp) && *)
list_prefix_of (dirpath_of_global osp) (Lib.cwd())
with Not_found ->
false