123456789101112131415161718192021(************************************************************************)(* * 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) *)(************************************************************************)typet={since:stringoption;note:stringoption}letmake?since?note()={since;note}letcreate_warning~object_name~warning_namename_printer=letopenPpinCWarnings.create~name:warning_name~category:"deprecated"(fun(qid,depr)->strobject_name++spc()++name_printerqid++strbrk" is deprecated"++pr_opt(funsince->str"since "++strsince)depr.since++str"."++pr_opt(funnote->strnote)depr.note)