X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Fwarn.cc;h=4014b73adbec90eda997dcce0217e4f3d67b3dc2;hb=6a1bde2b538e6e0feefcc6e0ae03ec9f4cc7a91b;hp=24117d7ec4d9632270aa16b576066482cd16c8c8;hpb=75eebcb49e52d296b1da3e1074e0825d2c780db4;p=lilypond.git diff --git a/flower/warn.cc b/flower/warn.cc index 24117d7ec4..4014b73adb 100644 --- a/flower/warn.cc +++ b/flower/warn.cc @@ -10,6 +10,9 @@ #include #include + +#include "international.hh" + using namespace std; /* Is progress indication at NEWLINE? */ @@ -17,13 +20,13 @@ static bool progress_newline = true; /* Display user information that is not a full message. */ void -progress_indication (String s) +progress_indication (string s) { /* Test if all silly progress_indication ("\n") can be dropped now. */ if (s == "\n") return; - fputs (s.to_str0 (), stderr); + fputs (s.c_str (), stderr); fflush (stderr); if (s.length ()) progress_newline = s[s.length () - 1] == '\n'; @@ -31,7 +34,7 @@ progress_indication (String s) /* Display a single user message. Always starts on a new line. */ void -message (String s) +message (string s) { if (!progress_newline) fputc ('\n', stderr); @@ -40,27 +43,27 @@ message (String s) /* Display a warning message. Always starts on a new line. */ void -warning (String s) +warning (string s) { - message (_f ("warning: %s", s.to_str0 ()) + "\n"); + message (_f ("warning: %s", s.c_str ()) + "\n"); } void -non_fatal_error (String s) +non_fatal_error (string s) { - message (_f ("error: %s", s.to_str0 ()) + "\n"); + message (_f ("error: %s", s.c_str ()) + "\n"); } /* Display an error message. Always starts on a new line. */ void -error (String s) +error (string s) { non_fatal_error (s); exit (1); } void -programming_error (String s) +programming_error (string s) { message (_f ("programming error: %s", s) + "\n"); message (_ ("continuing, cross fingers") + "\n");