X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Fwarn.cc;h=8529477cde86f7f1c2efecd1f2b2dc14c5184ceb;hb=e83877a28b839061498a146c6da8c35b7b51d700;hp=1dcf35773682f6785a4e767220eba67cad8aa70d;hpb=b37e3f652677ae0298423db9fa0e552e5fce0c92;p=lilypond.git diff --git a/flower/warn.cc b/flower/warn.cc index 1dcf357736..8529477cde 100644 --- a/flower/warn.cc +++ b/flower/warn.cc @@ -3,7 +3,7 @@ source file of the Flower Library - (c) 1997--2006 Han-Wen Nienhuys + (c) 1997--2009 Han-Wen Nienhuys */ #include "warn.hh" @@ -20,7 +20,7 @@ static bool progress_newline = true; /* Display user information that is not a full message. */ void -progress_indication (std::string s) +progress_indication (string s) { /* Test if all silly progress_indication ("\n") can be dropped now. */ if (s == "\n") @@ -34,7 +34,7 @@ progress_indication (std::string s) /* Display a single user message. Always starts on a new line. */ void -message (std::string s) +message (string s) { if (!progress_newline) fputc ('\n', stderr); @@ -43,27 +43,27 @@ message (std::string s) /* Display a warning message. Always starts on a new line. */ void -warning (std::string s) +warning (string s) { message (_f ("warning: %s", s.c_str ()) + "\n"); } void -non_fatal_error (std::string s) +non_fatal_error (string s) { message (_f ("error: %s", s.c_str ()) + "\n"); } /* Display an error message. Always starts on a new line. */ void -error (std::string s) +error (string s) { non_fatal_error (s); exit (1); } void -programming_error (std::string s) +programming_error (string s) { message (_f ("programming error: %s", s) + "\n"); message (_ ("continuing, cross fingers") + "\n");