]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/keyword.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / keyword.cc
index 8f969e6ce858822471c2a0d49adbee8fe663d999..84065ab4f6fd0093f621e0d87d3a351b9f027ab3 100644 (file)
@@ -9,11 +9,6 @@
 using namespace std;
 
 /* for qsort */
-bool tab_less (Keyword_ent const &p1, Keyword_ent const &p2)
-{
-  return strcmp (p1.name_, p2.name_) < 0;
-}
-
 int tabcmp (Keyword_ent const &p1, Keyword_ent const &p2)
 {
   return strcmp (p1.name_, p2.name_);
@@ -32,7 +27,7 @@ Keyword_table::lookup (char const *s) const
 {
   Keyword_ent e;
   e.name_ = s;
-  vsize idx = binary_search (table_, e, tab_less);
+  vsize idx = binary_search (table_, e, tabcmp);
   if (idx != VPOS)
     return table_[idx].tokcode_;
   return VPOS;