]> git.donarmstrong.com Git - lilypond.git/commitdiff
More "cannot oopses: _i and _f.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 23 Dec 2006 09:24:41 +0000 (10:24 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 23 Dec 2006 09:24:41 +0000 (10:24 +0100)
13 files changed:
lily/change-iterator.cc
lily/context.cc
lily/includable-lexer.cc
lily/lily-guile.cc
lily/lily-parser-scheme.cc
lily/main.cc
lily/midi-stream.cc
lily/open-type-font.cc
lily/piano-pedal-engraver.cc
lily/piano-pedal-performer.cc
lily/relocate.cc
lily/source-file.cc
lily/translator-group.cc

index 6ff0cd648231c0941b9d519525ed289316fa51fb..8b8f191006f90e4470d3c84831632fa7965b39d8 100644 (file)
@@ -20,7 +20,7 @@ Change_iterator::error (string reason)
   string to_type = ly_symbol2string (get_music ()->get_property ("change-to-type"));
   string to_id = ly_scm2string (get_music ()->get_property ("change-to-id"));
 
-  string warn1 = _f (cannot change `%s' to `%s'", to_type, to_id)
+  string warn1 = _f ("cannot change `%s' to `%s'", to_type, to_id)
     + ": " + reason;
 
   /*
@@ -58,7 +58,7 @@ Change_iterator::process (Moment m)
   if (current && current->id_string () == to_id)
     {
       string msg;
-      msg += _f (cannot change, already in translator: %s", to_id);
+      msg += _f ("cannot change, already in translator: %s", to_id);
     }
 
   if (current)
index bd999dea67ac588b0a76f407b4e31719d8088c7f..45a1562b1f98a6d255c7da7d2af73f065744d66b 100644 (file)
@@ -148,7 +148,7 @@ Context::create_unique_context (SCM name, string id, SCM operations)
     ret = daddy_context_->create_unique_context (name, id, operations);
   else
     {
-      warning (_f (cannot find or create new `%s'",
+      warning (_f ("cannot find or create new `%s'",
                   ly_symbol2string (name).c_str ()));
       ret = 0;
     }
@@ -210,7 +210,7 @@ Context::find_create_context (SCM n, string id, SCM operations)
     ret = daddy_context_->find_create_context (n, id, operations);
   else
     {
-      warning (_f (cannot find or create `%s' called `%s'",
+      warning (_f ("cannot find or create `%s' called `%s'",
                   ly_symbol2string (n).c_str (), id));
       ret = 0;
     }
@@ -385,7 +385,7 @@ Context::get_default_interpreter ()
       Context_def *t = unsmob_context_def (st);
       if (!t)
        {
-         warning (_f (cannot find or create: `%s'", name.c_str ()));
+         warning (_f ("cannot find or create: `%s'", name.c_str ()));
          t = unsmob_context_def (this->definition_);
        }
 
index 777615e970cf58884e7034fed82d22210b423776..65bea4d00b25973378509c0978fb8a3530024be3 100644 (file)
@@ -57,7 +57,7 @@ Includable_lexer::new_input (string name, Sources *sources)
   Source_file *file = sources->get_file (&name);
   if (!file)
     {
-      string msg = _f (cannot find file: `%s'", name);
+      string msg = _f ("cannot find file: `%s'", name);
       msg += "\n";
       msg += _f ("(search path: `%s')",
                 sources->path_->to_string ().c_str ());
index 78fa3af5a47154f2c102fbb243a8ffeb7245767c..cbd7903ba7398a34f9e9e229526d7de3fd85f501 100644 (file)
@@ -91,7 +91,7 @@ gulp_file_to_string (string fn, bool must_exist, int size)
     {
       if (must_exist)
        {
-         string e = _f (cannot find file: `%s'", fn);
+         string e = _f ("cannot find file: `%s'", fn);
          e += " ";
          e += _f ("(load path: `%s')", global_path.to_string ());
          error (e);
@@ -456,7 +456,7 @@ type_check_assignment (SCM sym, SCM val, SCM type_symbol)
 
   if (type != SCM_EOL && !ly_is_procedure (type))
     {
-      warning (_f (cannot find property type-check for `%s' (%s).",
+      warning (_f ("cannot find property type-check for `%s' (%s).",
                   ly_symbol2string (sym).c_str (),
                   ly_symbol2string (type_symbol).c_str ())
               + "  " + _ ("perhaps a typing error?"));
index dd470584510fe6ef15ff004a23ac37acb3560ee7..85bf14be91eee8c617bc8eb656ea8a83f2821fbb 100644 (file)
@@ -103,7 +103,7 @@ LY_DEFINE (ly_parse_file, "ly:parse-file",
 
   if (init.length () && global_path.find (init).empty ())
     {
-      warning (_f (cannot find init file: `%s'", init));
+      warning (_f ("cannot find init file: `%s'", init));
       warning (_f ("(search path: `%s')",
                   global_path.to_string ().c_str ()));
       exit (2);
@@ -113,7 +113,7 @@ LY_DEFINE (ly_parse_file, "ly:parse-file",
   bool error = false;
   if ((file_name != "-") && file_name.empty ())
     {
-      warning (_f (cannot find file: `%s'", file));
+      warning (_f ("cannot find file: `%s'", file));
       error = true;
     }
   else
index 63f4a24263769ba607c30147cbccaa2a618f7598..410a7497589f769f13dcbcc6c98349fd25ec297a 100644 (file)
@@ -320,7 +320,7 @@ do_chroot_jail ()
       if (errno == 0)
        error (_f ("no such user: %s", components[USER_NAME]));
       else
-       error (_f (cannot get user id from user name: %s: %s",
+       error (_f ("cannot get user id from user name: %s: %s",
                   components[USER_NAME],
                   strerror (errno)));
       exit (3);
@@ -337,7 +337,7 @@ do_chroot_jail ()
       if (errno == 0)
        error (_f ("no such group: %s", components[GROUP_NAME]));
       else
-       error (_f (cannot get group id from group name: %s: %s",
+       error (_f ("cannot get group id from group name: %s: %s",
                   components[GROUP_NAME],
                   strerror (errno)));
       exit (3);
@@ -345,26 +345,26 @@ do_chroot_jail ()
 
   if (chroot (components[JAIL].c_str ()))
     {
-      error (_f (cannot chroot to: %s: %s", components[JAIL],
+      error (_f ("cannot chroot to: %s: %s", components[JAIL],
                 strerror (errno)));
       exit (3);
     }
 
   if (setgid (gid))
     {
-      error (_f (cannot change group id to: %d: %s", gid, strerror (errno)));
+      error (_f ("cannot change group id to: %d: %s", gid, strerror (errno)));
       exit (3);
     }
 
   if (setuid (uid))
     {
-      error (_f (cannot change user id to: %d: %s", uid, strerror (errno)));
+      error (_f ("cannot change user id to: %d: %s", uid, strerror (errno)));
       exit (3);
     }
 
   if (chdir (components[DIR].c_str ()))
     {
-      error (_f (cannot change working directory to: %s: %s", components[DIR],
+      error (_f ("cannot change working directory to: %s: %s", components[DIR],
                 strerror (errno)));
       exit (3);
     }
index f90688c2ab5ebe4f8b94eecb789a46282b893b7d..b5d02f84004baa4094a72ad163b028a34a280dcc 100644 (file)
@@ -25,7 +25,7 @@ Midi_stream::Midi_stream (string file_name)
   file_name_string_ = file_name;
   out_file_ = fopen (file_name.c_str (), "wb");
   if (!out_file_)
-    error (_f (cannot open for write: %s: %s", file_name, strerror (errno)));
+    error (_f ("cannot open for write: %s: %s", file_name, strerror (errno)));
 }
 
 Midi_stream::~Midi_stream ()
index d47d7944e8e2771744715e3fdea771a85e4bda9e..2f2e5fdaad3d50b7eb2cc755ef0083243487d596 100644 (file)
@@ -30,11 +30,11 @@ load_table (char const *tag_str, FT_Face face, FT_ULong *length)
     {
       FT_Byte *buffer = (FT_Byte *) malloc (*length);
       if (buffer == NULL)
-       error (_f (cannot allocate %lu bytes", *length));
+       error (_f ("cannot allocate %lu bytes", *length));
 
       error_code = FT_Load_Sfnt_Table (face, tag, 0, buffer, length);
       if (error_code)
-       error (_f (cannot load font table: %s", tag_str));
+       error (_f ("cannot load font table: %s", tag_str));
 
       return buffer;
     }
index 353ea91d56d8791bb1677448efd15997872f26ef..debc884360ada4adc1a4b66dd59e66b843d86b90 100644 (file)
@@ -298,7 +298,7 @@ Piano_pedal_engraver::create_text_grobs (Pedal_info *p, bool mixed)
       if (!mixed)
        {
          if (!p->start_ev_)
-           p->event_drul_[STOP]->origin ()->warning (_f (cannot find start of piano pedal: `%s'", p->type_->base_name_.c_str ()));
+           p->event_drul_[STOP]->origin ()->warning (_f ("cannot find start of piano pedal: `%s'", p->type_->base_name_.c_str ()));
          else
            s = scm_cadr (strings);
          p->start_ev_ = p->event_drul_[START];
@@ -309,7 +309,7 @@ Piano_pedal_engraver::create_text_grobs (Pedal_info *p, bool mixed)
       if (!mixed)
        {
          if (!p->start_ev_)
-           p->event_drul_[STOP]->origin ()->warning (_f (cannot find start of piano pedal: `%s'", p->type_->base_name_.c_str ()));
+           p->event_drul_[STOP]->origin ()->warning (_f ("cannot find start of piano pedal: `%s'", p->type_->base_name_.c_str ()));
          else
            s = scm_caddr (strings);
          p->start_ev_ = 0;
@@ -344,7 +344,7 @@ Piano_pedal_engraver::create_bracket_grobs (Pedal_info *p, bool mixed)
 {
   if (!p->bracket_ && p->event_drul_[STOP])
     {
-      string msg = _f (cannot find start of piano pedal bracket: `%s'", p->type_->base_name_.c_str ());
+      string msg = _f ("cannot find start of piano pedal bracket: `%s'", p->type_->base_name_.c_str ());
       p->event_drul_[STOP]->origin ()->warning (msg);
       p->event_drul_[STOP] = 0;
     }
index 6224b00ab3edc959f6ddb5cb9388d8322bf1edfc..1ab27bca07834d6866e9e90db5c7866eaa52e857 100644 (file)
@@ -90,7 +90,7 @@ Piano_pedal_performer::process_music ()
       if (p->event_drul_[STOP])
        {
          if (!p->start_event_)
-           p->event_drul_[STOP]->origin ()->warning (_f (cannot find start of piano pedal: `%s'", pedal_type));
+           p->event_drul_[STOP]->origin ()->warning (_f ("cannot find start of piano pedal: `%s'", pedal_type));
          else
            {
              Audio_piano_pedal *a = new Audio_piano_pedal;
index 6e3b2ab71e84b251aa82208f7a6cabbfd02eff49..f1206fb758e5b9d27706ca06553640c0ae6414f0 100644 (file)
@@ -355,7 +355,7 @@ read_relocation_file (string filename)
   char const *cname = filename.c_str ();
   FILE *f = fopen (cname, "r");
   if (!f)
-    error (_f (cannot open file %s", cname));
+    error (_f ("cannot open file %s", cname));
 
   while (!feof (f))
     {
index 05b90b4f36df14ac90afd9ea8482bfd96e3e5257..4415e8dad70978c15fef06b31c2f6cd6791f7a2b 100644 (file)
@@ -51,7 +51,7 @@ gulp_file (string filename, int desired_size)
   FILE *f = fopen (filename.c_str (), "rb");
   if (!f)
     {
-      warning (_f (cannot open file: `%s'", filename.c_str ()));
+      warning (_f ("cannot open file: `%s'", filename.c_str ()));
 
       vector<char> cxx_arr;
       return cxx_arr;
index c0aff72021625bc9de634beaf83ab959540e4100..0fa39c662a6a7cb9ed7dc23a30ffc6d282e27656 100644 (file)
@@ -148,7 +148,7 @@ Translator_group::create_child_translator (SCM sev)
     {
       Translator *type = get_translator (scm_car (s));
       if (!type)
-       warning (_f (cannot find: `%s'", ly_symbol2string (scm_car (s)).c_str ()));
+       warning (_f ("cannot find: `%s'", ly_symbol2string (scm_car (s)).c_str ()));
       else
        {
          Translator *tr = type->clone ();