]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/warn.cc
Fix shared size test: add missing comma, do
[lilypond.git] / flower / warn.cc
index 40a2b8a3318a156ee3a71593240a83f09c80a718..24e52939470b588ed4dc75ea4250fe544ef05795 100644 (file)
@@ -3,14 +3,13 @@
 
   source file of the Flower Library
 
-  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
-#include <stdlib.h>
-#include <stdio.h>
-
 #include "warn.hh"
 
+#include <cstdlib>
+#include <cstdio>
 
 void
 message (String s)
@@ -22,13 +21,13 @@ message (String s)
 void
 warning (String s)
 {
-  message (_f ("warning: %s\n", s.to_str0 ()));
+  message (_f ("warning: %s", s.to_str0 ()) + "\n");
 }
 
 void
 non_fatal_error (String s)
 {
-  message (_f ("error: %s\n", s.to_str0 ()));
+  message (_f ("error: %s", s.to_str0 ()) + "\n");
 }
 
 void
@@ -41,7 +40,7 @@ error (String s)
 void
 programming_error (String s)
 {
-  message (_f ("programming error: %s (Continuing; crossing fingers)\n",
-              s.to_str0 ()));
+  message (_f ("programming error: %s", s) + "\n");
+  message (_ ("Continuing; crossing fingers") + "\n");
 }