X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Fwarn.cc;h=1c2f4ed134724bfb04c36fde2f380e7ce710cbf2;hb=711a7ef3c76be3d40902a0181fdb5d4558e56c5b;hp=4014b73adbec90eda997dcce0217e4f3d67b3dc2;hpb=31568c504806f35aac420a394c9eab07abd9faa7;p=lilypond.git diff --git a/flower/warn.cc b/flower/warn.cc index 4014b73adb..1c2f4ed134 100644 --- a/flower/warn.cc +++ b/flower/warn.cc @@ -1,9 +1,20 @@ /* - warn.cc -- implement warnings + This file is part of LilyPond, the GNU music typesetter. - source file of the Flower Library + Copyright (C) 1997--2011 Han-Wen Nienhuys - (c) 1997--2006 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "warn.hh" @@ -41,6 +52,13 @@ message (string s) progress_indication (s); } +/* Display a success message. Always starts on a new line. */ +void +successful (string s) +{ + message (_f ("success: %s", s.c_str ()) + "\n"); +} + /* Display a warning message. Always starts on a new line. */ void warning (string s)