diff options
-rw-r--r-- | camlp4/CHANGES | 3 | ||||
-rw-r--r-- | camlp4/meta/pa_r.ml | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/camlp4/CHANGES b/camlp4/CHANGES index 435824042..b7990cb7b 100644 --- a/camlp4/CHANGES +++ b/camlp4/CHANGES @@ -1,6 +1,9 @@ Camlp4 Version 3.03 ------------------- +- [02 Oct 01] In revised syntax, the warning for using old syntax for + sequences is now by default. To remove it, the option -no-warn-seq + of camlp4r has been added. Option -warn-seq has been removed. - [07 Sep 01] Included Camlp4 in OCaml distribution. - [06 Sep 01] Added missing pattern construction #t - [05 Sep 01] Fixed bug in pa_o: {A.B.c = d} was refused. diff --git a/camlp4/meta/pa_r.ml b/camlp4/meta/pa_r.ml index d582e6727..6cc837e6f 100644 --- a/camlp4/meta/pa_r.ml +++ b/camlp4/meta/pa_r.ml @@ -803,18 +803,19 @@ END; (* Old syntax for sequences *) -value not_yet_warned = ref False; +value not_yet_warned = ref True; value warning_seq () = if not_yet_warned.val then do { not_yet_warned.val := False; Printf.eprintf "\ -*** warning: use of old syntax; do \"camlp4r -help_seq\" for explanations +*** warning: use of old syntax +*** type \"camlp4r -help_seq\" in a shell for explanations "; flush stderr } else () ; -Pcaml.add_option "-warn_seq" (Arg.Set not_yet_warned) +Pcaml.add_option "-no-warn_seq" (Arg.Clear not_yet_warned) " Warn when using old syntax for sequences."; EXTEND |