X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgeneral-scheme.cc;h=f2b3ff1ae51ec8ca2ae84a94de919c76c9d16ba0;hb=740139c0fc7c61a5864b304fef73c736c342ed96;hp=47613b5ca3b8650f52a10c284d7430e8c72af4b4;hpb=f8eebf9751f142cedcedb370b34b5cc2d0fc737c;p=lilypond.git diff --git a/lily/general-scheme.cc b/lily/general-scheme.cc index 47613b5ca3..f2b3ff1ae5 100644 --- a/lily/general-scheme.cc +++ b/lily/general-scheme.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1998--2011 Jan Nieuwenhuizen + Copyright (C) 1998--2012 Jan Nieuwenhuizen Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify @@ -99,7 +99,6 @@ LY_DEFINE (ly_gulp_file, "ly:gulp-file", return scm_from_locale_stringn (contents.c_str (), contents.length ()); } - LY_DEFINE (ly_dir_p, "ly:dir?", 1, 0, 0, (SCM s), "Is @var{s} a direction? Valid directions are @w{@code{-1}}," @@ -229,8 +228,8 @@ LY_DEFINE (ly_number_2_string, "ly:number->string", Real r (scm_to_double (s)); if (isinf (r) || isnan (r)) { - programming_error (_ ("infinity or NaN encountered while converting Real number")); - programming_error (_ ("setting to zero")); + programming_error ("infinity or NaN encountered while converting Real number, " + "setting to zero"); r = 0.0; } @@ -467,7 +466,7 @@ format_single_argument (SCM arg, int precision, bool escape = false) if (isnan (val) || isinf (val)) { - warning (_ ("Found infinity or nan in output. Substituting 0.0")); + warning (_ ("Found infinity or nan in output. Substituting 0.0")); return ("0.0"); if (strict_infinity_checking) abort ();