[m-rev.] trivial diff: newlines after --output-{libgrades,cflags}

Julien Fischer jfischer at opturion.com
Tue Mar 26 16:19:05 AEDT 2013


Output a newline after --output-{libgrades,cflags}.

compiler/mercury_compile.m:
    As above.

Julien.

diff --git a/compiler/mercury_compile.m b/compiler/mercury_compile.m
index 71820b4..9e690bb 100644
--- a/compiler/mercury_compile.m
+++ b/compiler/mercury_compile.m
@@ -390,7 +390,8 @@ main_after_setup(OptionVariables, OptionArgs,
Args, Link, Globals, !IO) :-
     ; OutputLibGrades = yes ->
         globals.lookup_accumulating_option(Globals, libgrades, LibGrades),
         io.stdout_stream(Stdout, !IO),
-        io.write_list(Stdout, LibGrades, "\n", io.write_string, !IO)
+        io.write_list(Stdout, LibGrades, "\n", io.write_string, !IO),
+        io.nl(Stdout, !IO)
     ; OutputCC = yes ->
         globals.lookup_string_option(Globals, cc, CC),
         io.stdout_stream(StdOut, !IO),
@@ -401,7 +402,8 @@ main_after_setup(OptionVariables, OptionArgs,
Args, Link, Globals, !IO) :-
         io.write_string(StdOut, CC_Type ++ "\n", !IO)
     ; OutputCFlags = yes ->
         io.stdout_stream(StdOut, !IO),
-        output_c_compiler_flags(Globals, StdOut, !IO)
+        output_c_compiler_flags(Globals, StdOut, !IO),
+        io.nl(StdOut, !IO)
     ; OutputCSCType = yes ->
         globals.lookup_string_option(Globals, csharp_compiler_type, CSC_Type),
         io.stdout_stream(StdOut, !IO),



More information about the reviews mailing list