diff options
| author | herbelin | 2004-07-17 13:26:02 +0000 |
|---|---|---|
| committer | herbelin | 2004-07-17 13:26:02 +0000 |
| commit | 5eb4ec77dbcc7f4fdbc342db67eeefd93af26d81 (patch) | |
| tree | 8156aadcb88c034e6dabd25f8a0f2d88c06ad3db /lib/compat.ml4 | |
| parent | e80e6ca53b0ea97bcc41efc1757c557e8a5344e6 (diff) | |
Backtrack sur l'utilisation de pa_macro car n'existait pas en 3.06
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5941 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/compat.ml4')
| -rw-r--r-- | lib/compat.ml4 | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/lib/compat.ml4 b/lib/compat.ml4 index 57c7915e30..5e1c65b438 100644 --- a/lib/compat.ml4 +++ b/lib/compat.ml4 @@ -1 +1,32 @@ -type loc = int * int let dummy_loc = 0, 0 let unloc x = x let make_loc x = x +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *) +(* \VV/ **************************************************************) +(* // * This file is distributed under the terms of the *) +(* * GNU Lesser General Public License Version 2.1 *) +(************************************************************************) + +(* Compatibility file depending on ocaml version *) + +(* IFDEF not available in 3.06; use ifdef instead *) + +(* type loc is different in 3.08 *) +ifdef OCAML308 then +module M = struct +type loc = Token.flocation +let dummy_loc = Token.dummy_loc +let unloc (b,e) = (b.Lexing.pos_cnum,e.Lexing.pos_cnum) +let make_loc loc = Token.make_loc loc +end +else +module M = struct +type loc = int * int +let dummy_loc = (0,0) +let unloc x = x +let make_loc x = x +end + +type loc = M.loc +let dummy_loc = M.dummy_loc +let unloc = M.unloc +let make_loc = M.make_loc |
