diff options
-rw-r--r-- | cfrontend/Cshmgen.v | 2 | ||||
-rw-r--r-- | common/AST.v | 4 | ||||
-rw-r--r-- | driver/Driver.ml | 4 |
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: |