From 5eb4ec77dbcc7f4fdbc342db67eeefd93af26d81 Mon Sep 17 00:00:00 2001 From: herbelin Date: Sat, 17 Jul 2004 13:26:02 +0000 Subject: 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 --- Makefile | 2 +- lib/compat.ml4 | 33 ++++++++++++++++++++++++++++++++- toplevel/mltop.ml4 | 4 ++-- 3 files changed, 35 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c74cf5eedd..c046560174 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,7 @@ DEPFLAGS=$(LOCALINCLUDES) OCAMLC_P4O=$(OCAMLC) -pp $(CAMLP4O) $(BYTEFLAGS) OCAMLOPT_P4O=$(OCAMLOPT) -pp $(CAMLP4O) $(OPTFLAGS) -CAMLP4EXTENDFLAGS=-I . pa_extend.cmo pa_extend_m.cmo pa_macro.cmo q_MLast.cmo +CAMLP4EXTENDFLAGS=-I . pa_extend.cmo pa_extend_m.cmo pa_ifdef.cmo q_MLast.cmo CAMLP4DEPS=sed -n -e 's|^(\*.*camlp4deps: "\(.*\)".*\*)$$|\1|p' COQINCLUDES= # coqtop includes itself the needed paths 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 *) +(* ]) (* TO DO: .cma loading without toplevel *) | WithoutTop -> - IFDEF Byte THEN + ifdef Byte then let _,gname = where_in_path !coq_mlpath_copy s in try Dynlink.loadfile gname; @@ -109,7 +109,7 @@ let dir_ml_load s = [Filename.dirname gname] with | Dynlink.Error a -> errorlabstrm "Mltop.load_object" [< str (Dynlink.error_message a) >] - ELSE () END + else () | Native -> errorlabstrm "Mltop.no_load_object" [< str"Loading of ML object file forbidden in a native Coq" >] -- cgit v1.2.3