aboutsummaryrefslogtreecommitdiff
path: root/interp/notation.ml
diff options
context:
space:
mode:
authorletouzey2013-04-22 14:39:07 +0000
committerletouzey2013-04-22 14:39:07 +0000
commitc9917c210da30521673e843b626359f4a1051e74 (patch)
treef45a15f42956159752d6192ec7980081383330f9 /interp/notation.ml
parent14fdc212d664df129e2f718ea8b8eb87927a8ee8 (diff)
code simplifications concerning Summary
- Most of the time, the table registered via Summary.declare_summary is just a single reference. A new function Summary.ref now allows to both declare this ref and register it to summary in one shot. - Clarifications concerning the role of [init_function]. For statically registered tables that don't need a special initializer, just do nothing there (see the new Summary.nop function). Beware: now that Summary exports a function named "ref", any code that do an "open Summary" will probably fail to compile. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16441 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp/notation.ml')
-rw-r--r--interp/notation.ml9
1 files changed, 4 insertions, 5 deletions
diff --git a/interp/notation.ml b/interp/notation.ml
index 37ad387da6..81ef06f6f7 100644
--- a/interp/notation.ml
+++ b/interp/notation.ml
@@ -16,7 +16,6 @@ open Term
open Nametab
open Libnames
open Globnames
-open Summary
open Constrexpr
open Notation_term
open Glob_term
@@ -920,10 +919,10 @@ let init () =
scope_class_map := Gmap.add ScopeSort "type_scope" Gmap.empty
let _ =
- declare_summary "symbols"
- { freeze_function = freeze;
- unfreeze_function = unfreeze;
- init_function = init }
+ Summary.declare_summary "symbols"
+ { Summary.freeze_function = freeze;
+ Summary.unfreeze_function = unfreeze;
+ Summary.init_function = init }
let with_notation_protection f x =
let fs = freeze () in