diff options
author | glondu <glondu@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2010-11-16 21:11:39 +0000 |
---|---|---|
committer | glondu <glondu@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2010-11-16 21:11:39 +0000 |
commit | 8d3a8edab6377823e620f7a22ccfcdcd869bb5a7 (patch) | |
tree | 5fa0de509fab318605e9a0b285b32e4e1f6c3eec /lib | |
parent | e216c2de60d1d8b1fd35169257349fa4c257a516 (diff) |
Support for camlp5 6.02.0 (Closes: #2432)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13642 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compat.ml4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/compat.ml4 b/lib/compat.ml4 index f2994edc6..67d2820a7 100644 --- a/lib/compat.ml4 +++ b/lib/compat.ml4 @@ -227,3 +227,13 @@ let expl_anti loc e = <:expr< $anti:e$ >> ELSE let expl_anti _loc e = e (* FIXME: understand someday if we can do better *) END + +(** Compatibility with Camlp5 6.x *) + +IFDEF CAMLP5_6_00 THEN +let slist0sep x y = Gramext.Slist0sep (x, y, false) +let slist1sep x y = Gramext.Slist1sep (x, y, false) +ELSE +let slist0sep x y = Gramext.Slist0sep (x, y) +let slist1sep x y = Gramext.Slist1sep (x, y) +END |