diff options
| author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2003-05-14 09:48:20 +0000 |
|---|---|---|
| committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2003-05-14 09:48:20 +0000 |
| commit | 4d7abfbc16022eab8af392bd3e6d76cf4773f2c2 (patch) | |
| tree | e883430c77d37c7c933652bca86be8dcc3697272 /typing/ident.ml | |
| parent | 6ef3a9c5a2ca32049682798e1e6f4521ea196836 (diff) | |
| download | ocaml-multimatch.tar.gz | |
merge from HEADmultimatch
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/multimatch@5563 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'typing/ident.ml')
| -rw-r--r-- | typing/ident.ml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/typing/ident.ml b/typing/ident.ml index afa589bad6..8997600d51 100644 --- a/typing/ident.ml +++ b/typing/ident.ml @@ -35,6 +35,8 @@ let name i = i.name let unique_name i = i.name ^ "_" ^ string_of_int i.stamp +let unique_toplevel_name i = i.name ^ "/" ^ string_of_int i.stamp + let persistent i = (i.stamp = 0) let equal i1 i2 = i1.name = i2.name @@ -50,6 +52,13 @@ let binding_time i = i.stamp let current_time() = !currentstamp let set_current_time t = currentstamp := max !currentstamp t +let reinit_level = ref (-1) + +let reinit () = + if !reinit_level < 0 + then reinit_level := !currentstamp + else currentstamp := !reinit_level + let hide i = { i with stamp = -1 } |
