summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-08-18 06:31:17 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-08-18 06:31:17 +0000
commit22d65c5931d702f6e2abde9b3b7d822b8d3c5560 (patch)
treeb0501324887c4fb3b9493a5e9aaffa4f7de39fe8
parent24a8dbb62e8171f3f3ad87e8d3f697e726df0e6a (diff)
No '\n' in Coq strings...
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1129 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
-rw-r--r--cfrontend/Cshmgen.v2
-rw-r--r--common/AST.v4
-rw-r--r--driver/Driver.ml4
3 files changed, 6 insertions, 4 deletions
diff --git a/cfrontend/Cshmgen.v b/cfrontend/Cshmgen.v
index 55860ef..acce971 100644
--- a/cfrontend/Cshmgen.v
+++ b/cfrontend/Cshmgen.v
@@ -604,7 +604,7 @@ with transl_lbl_stmt (nbrk ncnt: nat) (sl: Csyntax.labeled_statements)
(*** Translation of functions *)
Definition prefix_var_name (id: ident) : errmsg :=
- MSG "In local variable " :: CTX id :: MSG ":\n" :: nil.
+ MSG "In local variable " :: CTX id :: MSG ": " :: nil.
Definition transl_params (l: list (ident * type)) :=
AST.map_partial prefix_var_name chunk_of_type l.
diff --git a/common/AST.v b/common/AST.v
index a8655c2..e7b85a9 100644
--- a/common/AST.v
+++ b/common/AST.v
@@ -231,7 +231,7 @@ Variable A B V: Type.
Variable transf_partial: A -> res B.
Definition prefix_funct_name (id: ident) : errmsg :=
- MSG "In function " :: CTX id :: MSG ":\n" :: nil.
+ MSG "In function " :: CTX id :: MSG ": " :: nil.
Definition transform_partial_program (p: program A V) : res (program B V) :=
do fl <- map_partial prefix_funct_name transf_partial p.(prog_funct);
@@ -276,7 +276,7 @@ Variable transf_partial_function: A -> res B.
Variable transf_partial_variable: V -> res W.
Definition prefix_var_name (id_init: ident * list init_data) : errmsg :=
- MSG "In global variable " :: CTX (fst id_init) :: MSG ":\n" :: nil.
+ MSG "In global variable " :: CTX (fst id_init) :: MSG ": " :: nil.
Definition transform_partial_program2 (p: program A V) : res (program B W) :=
do fl <- map_partial prefix_funct_name transf_partial_function p.(prog_funct);
diff --git a/driver/Driver.ml b/driver/Driver.ml
index 8361829..30d4a6c 100644
--- a/driver/Driver.ml
+++ b/driver/Driver.ml
@@ -39,7 +39,9 @@ let print_error oc msg =
let print_one_error = function
| Errors.MSG s -> output_string oc (Camlcoq.camlstring_of_coqstring s)
| Errors.CTX i -> output_string oc (Camlcoq.extern_atom i)
- in List.iter print_one_error msg
+ in
+ List.iter print_one_error msg;
+ output_char oc '\n'
(* For the CIL -> Csyntax translator: