@@ -120,29 +120,22 @@ nice-gref->string X Mod :-
120120nice-gref->string X S :-
121121 coq.term->string (global X) S.
122122
123- pred compat.concat i:string, i:list string, o:string.
124- compat.concat S L O :- coq.version _ _ N _, N > 12, !, std.string.concat S L O.
125- compat.concat S L O :- compat.concat.aux L S O.
126- compat.concat.aux [] _ "".
127- compat.concat.aux [X] _ X :- !.
128- compat.concat.aux [X|XS] Sep O :- compat.concat.aux XS Sep O1, O is X ^ Sep ^ O1.
129-
130123pred gref->modname i:gref, i:int, i:string, o:string.
131124gref->modname GR NComp Sep ModName :-
132125 coq.gref->path GR Path,
133126 std.rev Path Mods,
134127 std.length Path Len,
135128 if (Len >= NComp) true (coq.error "Not enough enclosing modules for" {coq.gref->string GR}),
136129 std.take NComp Mods L,
137- compat .concat Sep {std.rev L} ModName.
130+ std.string .concat Sep {std.rev L} ModName.
138131pred gref->modname-label i:gref, i:int, i:string, o:string.
139132gref->modname-label GR NComp Sep ModName :-
140133 coq.gref->path GR Path,
141134 std.rev Path PathRev,
142135 std.length PathRev Len,
143136 if (Len >= NComp) (N = NComp) (N = Len),
144137 std.take N PathRev L,
145- compat .concat Sep {std.rev [{coq.gref->id GR}|L]} ModName.
138+ std.string .concat Sep {std.rev [{coq.gref->id GR}|L]} ModName.
146139
147140pred avoid-name-collision i:string, o:string.
148141avoid-name-collision S S1 :-
0 commit comments