diff options
| author | notin | 2006-04-28 14:25:31 +0000 |
|---|---|---|
| committer | notin | 2006-04-28 14:25:31 +0000 |
| commit | 78fff376f71ce6538dad42be95b074a916a4ce49 (patch) | |
| tree | e90f7771e62c0c37230ce1de383fddcc6ba50e8f /interp | |
| parent | f255f2af3ab46d200bb22fbe68500b57f8c02721 (diff) | |
r8931@thot: notin | 2006-04-28 16:19:38 +0200
Correction d'un bug dans add_glob (list_chop), avec ajout des list_drop_prefix dans lib/util.ml et de drop_dirpath_prefix dans library/libnames.ml
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8768 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp')
| -rw-r--r-- | interp/constrintern.ml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/interp/constrintern.ml b/interp/constrintern.ml index 98919082df..9e6cbaf447 100644 --- a/interp/constrintern.ml +++ b/interp/constrintern.ml @@ -140,12 +140,12 @@ let coqdoc_unfreeze (lt,tn,lp) = let add_glob loc ref = let sp = Nametab.sp_of_global ref in - let modqid,id = repr_path sp in - let file_prefix_length = List.length (repr_dirpath (Lib.library_dp())) in - let file,fields = chop_dirpath file_prefix_length modqid in - let filepath = string_of_dirpath file in - let modpath = string_of_qualid (make_qualid fields id) in - dump_string (Printf.sprintf "R%d %s.%s\n" (fst (unloc loc)) filepath modpath) + let lib_dp = Lib.library_dp() in + let mod_dp,id = repr_path sp in + let mod_dp_trunc = drop_dirpath_prefix lib_dp mod_dp in + let filepath = string_of_dirpath lib_dp in + let fullname = string_of_qualid (make_qualid mod_dp_trunc id) in + dump_string (Printf.sprintf "R%d %s.%s\n" (fst (unloc loc)) filepath fullname) let loc_of_notation f loc args ntn = if args=[] or ntn.[0] <> '_' then fst (unloc loc) |
