aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel
diff options
context:
space:
mode:
authorGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>2001-02-28 09:33:03 +0000
committerGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>2001-02-28 09:33:03 +0000
commitc88af9ff3deaa6da8985c5119284b7a925a04d65 (patch)
tree2b11edaaa8723a68f03a0a3bef989c4d93c760a4 /toplevel
parent4c525008cb728571266ba418b58b4512763159fa (diff)
bug Reset et Sections
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1410 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/coqinit.ml10
-rw-r--r--toplevel/coqtop.ml13
-rw-r--r--toplevel/discharge.ml1
3 files changed, 12 insertions, 12 deletions
diff --git a/toplevel/coqinit.ml b/toplevel/coqinit.ml
index 3cc0bd5f4..64273724d 100644
--- a/toplevel/coqinit.ml
+++ b/toplevel/coqinit.ml
@@ -7,9 +7,9 @@ open Toplevel
let set_debug () = Options.debug := true
-(* Load of rcfile.
- * rcfile is either $HOME/.coqrc.VERSION, or $HOME/.coqrc if the first one
- * does not exist. *)
+(* Loading of the ressource file.
+ rcfile is either $HOME/.coqrc.VERSION, or $HOME/.coqrc if the first one
+ does not exist. *)
let rcfile = ref (Filename.concat home ".coqrc")
let rcfile_specified = ref false
@@ -31,11 +31,11 @@ let load_rcfile() =
else if file_readable_p !rcfile then
Vernac.load_vernac false !rcfile
else ()
-(*
+ (*
if Options.is_verbose() then
mSGNL [< 'sTR ("No .coqrc or .coqrc."^Coq_config.version^
" found. Skipping rcfile loading.") >]
-*)
+ *)
with e ->
(mSGNL [< 'sTR"Load of rcfile failed." >];
raise e)
diff --git a/toplevel/coqtop.ml b/toplevel/coqtop.ml
index 66c2e0301..41f266514 100644
--- a/toplevel/coqtop.ml
+++ b/toplevel/coqtop.ml
@@ -17,7 +17,7 @@ let memory_stat = ref false
let print_memory_stat () =
if !memory_stat then
- Format.printf "memory use = %d kbytes\n" (heap_size_kb ())
+ Format.printf "total heap size = %d kbytes\n" (heap_size_kb ())
let _ = at_exit print_memory_stat
@@ -82,10 +82,9 @@ let re_exec s =
Unix.execvp newprog Sys.argv
end
-(* Parsing of the command line.
- *
- * We no longer use Arg.parse, in order to use share Usage.print_usage
- * between coqtop and coqc. *)
+(*s Parsing of the command line.
+ We no longer use [Arg.parse], in order to use share [Usage.print_usage]
+ between coqtop and coqc. *)
let usage () =
if !batch_mode then
@@ -105,7 +104,7 @@ let parse_args () =
| ("-I"|"-include") :: [] -> usage ()
| "-R" :: d :: p :: rem -> set_rec_include d p; parse rem
- | "-R" :: ([] | _ :: _) -> usage ()
+ | "-R" :: ([] | [_]) -> usage ()
| "-q" :: rem -> no_load_rc (); parse rem
@@ -209,4 +208,4 @@ let start () =
if !batch_mode then (flush_all(); Profile.print_profile ();exit 0);
Toplevel.loop()
-(* Coqtop.start will be called by the code produced by coqmktop *)
+(* [Coqtop.start] will be called by the code produced by coqmktop *)
diff --git a/toplevel/discharge.ml b/toplevel/discharge.ml
index 6712e900f..5fce67d51 100644
--- a/toplevel/discharge.ml
+++ b/toplevel/discharge.ml
@@ -363,6 +363,7 @@ let close_section _ s =
Summary.unfreeze_lost_summaries fs;
let mc = segment_contents decls in
add_anonymous_leaf (in_end_section (sec_sp,mc));
+ add_frozen_state ();
if Options.immediate_discharge then ()
else
List.iter process_operation (List.rev ops)