12345678910111213141516171819202122232425262728(************************************************************************)(* * The Coq Proof Assistant / The Coq Development Team *)(* v * Copyright INRIA, CNRS and contributors *)(* <O___,, * (see version control and CREDITS file for authors & dates) *)(* \VV/ **************************************************************)(* // * This file is distributed under the terms of the *)(* * GNU Lesser General Public License Version 2.1 *)(* * (see LICENSE file for the text of the license) *)(************************************************************************)openNamesopenCErrorsletextra_deps=Summary.ref~name:"extra_deps"~stage:Summary.Stage.SynterpId.Map.emptyletbind_extra_dep?locpathid=matchId.Map.find_optid!extra_depswith|Some(other,loc)->user_errPp.(str"Extra dependency "++Id.printid++str" already bound to "++strother++pr_opt(funx->str" at "++Loc.prx)loc++str".")|None->extra_deps:=Id.Map.addid(path,loc)!extra_depsletdeclare_extra_dep?loc~from~fileid=letfile_path=Loadpath.find_extra_dep_with_logical_path?loc~from~file()inOption.iter(bind_extra_dep?locfile_path)idletquery_extra_depid=fst@@Id.Map.findid!extra_deps