Skip to content

Commit f14b6f1

Browse files
letouzeymaximedenes
authored andcommitted
errors.ml renamed into cErrors.ml (avoid clash with an OCaml compiler-lib module)
For the moment, there is an Error module in compilers-lib/ocamlbytecomp.cm(x)a
1 parent 500d38d commit f14b6f1

File tree

243 files changed

+731
-731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+731
-731
lines changed

Makefile.build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ $(COQTOPBYTE): $(COQMKTOP) $(LINKCMO) $(LIBCOQRUN) $(TOPLOOPCMA)
336336

337337
# coqmktop
338338

339-
COQMKTOPCMO:=lib/clib.cma lib/errors.cmo tools/tolink.cmo tools/coqmktop.cmo
339+
COQMKTOPCMO:=lib/clib.cma lib/cErrors.cmo tools/tolink.cmo tools/coqmktop.cmo
340340

341341
$(COQMKTOP): $(call bestobj, $(COQMKTOPCMO))
342342
$(SHOW)'OCAMLBEST -o $@'
@@ -350,7 +350,7 @@ tools/tolink.ml: Makefile.build Makefile.common
350350

351351
# coqc
352352

353-
COQCCMO:=lib/clib.cma lib/errors.cmo toplevel/usage.cmo tools/coqc.cmo
353+
COQCCMO:=lib/clib.cma lib/cErrors.cmo toplevel/usage.cmo tools/coqc.cmo
354354

355355
$(COQC): $(call bestobj, $(COQCCMO))
356356
$(SHOW)'OCAMLBEST -o $@'
@@ -388,7 +388,7 @@ $(OCAMLLIBDEP): $(call bestobj, tools/ocamllibdep.cmo)
388388

389389
# The full coqdep (unused by this build, but distributed by make install)
390390

391-
COQDEPCMO:=lib/clib.cma lib/errors.cmo lib/cWarnings.cmo lib/minisys.cmo \
391+
COQDEPCMO:=lib/clib.cma lib/cErrors.cmo lib/cWarnings.cmo lib/minisys.cmo \
392392
lib/system.cmo tools/coqdep_lexer.cmo tools/coqdep_common.cmo \
393393
tools/coqdep.cmo
394394

@@ -428,7 +428,7 @@ $(COQWORKMGR): $(call bestobj, lib/clib.cma stm/coqworkmgrApi.cmo tools/coqworkm
428428
# fake_ide : for debugging or test-suite purpose, a fake ide simulating
429429
# a connection to coqtop -ideslave
430430

431-
FAKEIDECMO:= lib/clib.cma lib/errors.cmo lib/spawn.cmo ide/document.cmo \
431+
FAKEIDECMO:= lib/clib.cma lib/cErrors.cmo lib/spawn.cmo ide/document.cmo \
432432
ide/serialize.cmo ide/xml_lexer.cmo ide/xml_parser.cmo ide/xml_printer.cmo \
433433
ide/xmlprotocol.cmo tools/fake_ide.cmo
434434

Makefile.ide

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ IDESRCDIRS:= $(CORESRCDIRS) ide ide/utils
4141

4242
COQIDEFLAGS=$(addprefix -I , $(IDESRCDIRS)) $(COQIDEINCLUDES)
4343

44-
IDEDEPS:=lib/clib.cma lib/errors.cmo lib/spawn.cmo
44+
IDEDEPS:=lib/clib.cma lib/cErrors.cmo lib/spawn.cmo
4545
IDECMA:=ide/ide.cma
4646
IDETOPLOOPCMA=ide/coqidetop.cma
4747

checker/check.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
(************************************************************************)
88

99
open Pp
10-
open Errors
10+
open CErrors
1111
open Util
1212
open Names
1313

checker/check.mllib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Feedback
3434
Segmenttree
3535
Unicodetable
3636
Unicode
37-
Errors
37+
CErrors
3838
CWarnings
3939
CEphemeron
4040
Future

checker/checker.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
(************************************************************************)
88

99
open Pp
10-
open Errors
10+
open CErrors
1111
open Util
1212
open System
1313
open Flags
@@ -71,7 +71,7 @@ let add_path ~unix_path:dir ~coq_root:coq_dirpath =
7171

7272
let convert_string d =
7373
try Id.of_string d
74-
with Errors.UserError _ ->
74+
with CErrors.UserError _ ->
7575
if_verbose Feedback.msg_warning
7676
(str "Directory " ++ str d ++ str " cannot be used as a Coq identifier (skipped)");
7777
raise Exit
@@ -303,7 +303,7 @@ let rec explain_exn = function
303303
str ", characters " ++ int e ++ str "-" ++
304304
int (e+6) ++ str ")")) ++
305305
report ())
306-
| e -> Errors.print e (* for anomalies and other uncaught exceptions *)
306+
| e -> CErrors.print e (* for anomalies and other uncaught exceptions *)
307307

308308
let parse_args argv =
309309
let rec parse = function
@@ -329,7 +329,7 @@ let parse_args argv =
329329
| "-debug" :: rem -> set_debug (); parse rem
330330

331331
| "-where" :: _ ->
332-
Envars.set_coqlib ~fail:Errors.error;
332+
Envars.set_coqlib ~fail:CErrors.error;
333333
print_endline (Envars.coqlib ());
334334
exit 0
335335

@@ -367,7 +367,7 @@ let init_with_argv argv =
367367
try
368368
parse_args argv;
369369
if !Flags.debug then Printexc.record_backtrace true;
370-
Envars.set_coqlib ~fail:Errors.error;
370+
Envars.set_coqlib ~fail:CErrors.error;
371371
if_verbose print_header ();
372372
init_load_path ();
373373
engage ();

checker/environ.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
open Errors
1+
open CErrors
22
open Util
33
open Names
44
open Cic

checker/include

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ open Typeops;;
3131
open Check;;
3232

3333
open Pp;;
34-
open Errors;;
34+
open CErrors;;
3535
open Util;;
3636
open Names;;
3737
open Term;;

checker/indtypes.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(* * GNU Lesser General Public License Version 2.1 *)
77
(************************************************************************)
88

9-
open Errors
9+
open CErrors
1010
open Util
1111
open Names
1212
open Cic

checker/inductive.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(* * GNU Lesser General Public License Version 2.1 *)
77
(************************************************************************)
88

9-
open Errors
9+
open CErrors
1010
open Util
1111
open Names
1212
open Cic

checker/modops.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
(************************************************************************)
88

99
(*i*)
10-
open Errors
10+
open CErrors
1111
open Util
1212
open Pp
1313
open Names

0 commit comments

Comments
 (0)