]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/warn.cc
* scm/framework-gnome.scm (item-event): Add support from TLA. Support
[lilypond.git] / flower / warn.cc
index aef1f3833399f36c0ddc26b12d63517c34d4e243..98769fc241f2f5676b1746d395aac3a53eba1824 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the Flower Library
 
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include <stdlib.h>
 
 #include "warn.hh"
 
-
 void
 message (String s)
 {
-  fputs (s.ch_C (), stderr);
+  fputs (s.to_str0 (), stderr);
+  fflush (stderr);
 }
 
 void
 warning (String s)
 {
-  message (_f ("warning: %s\n", s.ch_C ()));
+  message (_f ("warning: %s", s.to_str0 ()) + "\n");
 }
 
 void
 non_fatal_error (String s)
 {
-  message (_f ("error: %s\n", s.ch_C ()));
+  message (_f ("error: %s", s.to_str0 ()) + "\n");
 }
 
 void
@@ -40,7 +40,7 @@ error (String s)
 void
 programming_error (String s)
 {
-  message (_f ("programming error: %s (Continuing; cross thumbs)\n",
-              s.ch_C ()));
+  message (_f ("programming error: %s", s) + "\n");
+  message (_ ("Continuing; crossing fingers") + "\n");
 }