From aaf82265aca43a22006e6cf80f1b3cbe1fd594aa Mon Sep 17 00:00:00 2001 From: letouzey Date: Tue, 3 Feb 2009 09:43:13 +0000 Subject: Allow to turn contrib/subtac into a (nat)dynlink'able plugin Main issue was declare_summary being triggered too late in subtac_obligations, hence the associated init_function was _not_ being done by Lib.init(). Fixed for the moment by an ad-hoc launch of this init_function in subtac_obligations. In other plugins, this issue doesn't appear, since init_function is mostly putting back some empty set into a reference that was initially empty. No need to really run init_function in this case. For future plugins, we will nonetheless have to be careful about that. Of course, the (ref Obj.magic) was not exactly helpful in debugging this matter, see http://caml.inria.fr/mantis/view.php?id=4707 As said by Xavier, naughty naughty boys... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11877 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/summary.mli | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'library/summary.mli') diff --git a/library/summary.mli b/library/summary.mli index 7f300a996..3e6375b0e 100644 --- a/library/summary.mli +++ b/library/summary.mli @@ -28,5 +28,9 @@ val section_unfreeze_summaries : frozen -> unit val module_unfreeze_summaries : frozen -> unit val init_summaries : unit -> unit - +(** Beware: if some code is dynamically loaded via dynlink after the + initialization of Coq, the init functions of any summary declared + by this code may not be run. It is hence the responsability of + plugins to initialize themselves properly. +*) -- cgit v1.2.3