]> git.donarmstrong.com Git - lilypond.git/commitdiff
Nitpick run.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 13 Aug 2005 21:35:23 +0000 (21:35 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 13 Aug 2005 21:35:23 +0000 (21:35 +0000)
buildscripts/fixcc.py: Fixes.

184 files changed:
ChangeLog
buildscripts/fixcc.py
flower/direction.cc
flower/file-path.cc
flower/getopt-long.cc
flower/include/array.icc
flower/include/cons.hh
flower/include/interval.tcc
flower/include/parray.hh
flower/parse-afm.cc
flower/polynomial.cc
flower/string-convert.cc
flower/string.cc
lily/accidental-engraver.cc
lily/accidental-placement.cc
lily/accidental.cc
lily/align-interface.cc
lily/ambitus-engraver.cc
lily/arpeggio-engraver.cc
lily/arpeggio.cc
lily/auto-beam-engraver.cc
lily/axis-group-interface.cc
lily/bar-line.cc
lily/beam-engraver.cc
lily/beam-quanting.cc
lily/beam.cc
lily/beaming-info.cc
lily/bezier.cc
lily/binary-source-file.cc
lily/book.cc
lily/break-algorithm.cc
lily/break-align-interface.cc
lily/break-substitution.cc
lily/breathing-sign.cc
lily/chord-tremolo-engraver.cc
lily/clef-engraver.cc
lily/cluster-engraver.cc
lily/cluster.cc
lily/coherent-ligature-engraver.cc
lily/collision-engraver.cc
lily/completion-note-heads-engraver.cc
lily/context-def.cc
lily/context-property.cc
lily/context.cc
lily/custos-engraver.cc
lily/custos.cc
lily/dot-column-engraver.cc
lily/dot-column.cc
lily/drum-note-performer.cc
lily/dynamic-engraver.cc
lily/easy-notation.cc
lily/engraver-group-engraver.cc
lily/file-name-map.cc
lily/fingering-engraver.cc
lily/folded-repeat-iterator.cc
lily/font-config.cc
lily/font-select.cc
lily/general-scheme.cc
lily/glissando-engraver.cc
lily/global-context.cc
lily/gregorian-ligature-engraver.cc
lily/grid-point-engraver.cc
lily/grob-array.cc
lily/grob-pq-engraver.cc
lily/grob-property.cc
lily/grob-scheme.cc
lily/grob.cc
lily/hairpin.cc
lily/hara-kiri-group-spanner.cc
lily/hyphen-engraver.cc
lily/include/grob.hh
lily/include/lily-guile.hh
lily/include/lily-proto.hh
lily/include/pointer-group-interface.hh
lily/include/program-option.hh
lily/include/translator-group.hh
lily/include/translator.icc
lily/key-engraver.cc
lily/key-performer.cc
lily/key-signature-interface.cc
lily/keyword.cc
lily/ligature-engraver.cc
lily/lily-guile.cc
lily/lily-lexer.cc
lily/lily-parser.cc
lily/lilypond-version.cc
lily/lookup.cc
lily/ly-module.cc
lily/main.cc
lily/measure-grouping-engraver.cc
lily/measure-grouping-spanner.cc
lily/melisma-translator.cc
lily/mensural-ligature.cc
lily/midi-def.cc
lily/midi-item.cc
lily/midi-stream.cc
lily/midi-walker.cc
lily/modified-font-metric.cc
lily/moment.cc
lily/multi-measure-rest-engraver.cc
lily/multi-measure-rest.cc
lily/music-iterator.cc
lily/music-scheme.cc
lily/music-sequence.cc
lily/music.cc
lily/new-fingering-engraver.cc
lily/note-collision.cc
lily/note-head.cc
lily/note-heads-engraver.cc
lily/note-performer.cc
lily/note-spacing.cc
lily/object-key-dumper.cc
lily/object-key-undumper.cc
lily/open-type-font.cc
lily/pango-font.cc
lily/pango-select.cc
lily/paper-column-engraver.cc
lily/paper-column.cc
lily/paper-def.cc
lily/paper-outputter-scheme.cc
lily/percent-repeat-item.cc
lily/performance-scheme.cc
lily/performance.cc
lily/pfb.cc
lily/piano-pedal-engraver.cc
lily/piano-pedal-performer.cc
lily/pitch-squash-engraver.cc
lily/pointer-group-interface.cc
lily/profile.cc
lily/program-option.cc
lily/quote-iterator.cc
lily/repeat-acknowledge-engraver.cc
lily/repeated-music.cc
lily/rest-collision.cc
lily/rest.cc
lily/score-performer.cc
lily/script-column-engraver.cc
lily/separating-line-group-engraver.cc
lily/separation-item.cc
lily/sequential-iterator.cc
lily/side-position-interface.cc
lily/simple-spacer-scheme.cc
lily/simple-spacer.cc
lily/slash-repeat-engraver.cc
lily/slur-configuration.cc
lily/slur-scoring.cc
lily/smobs.cc
lily/source-file.cc
lily/spaceable-grob.cc
lily/spacing-determine-loose-columns.cc
lily/spacing-spanner.cc
lily/span-arpeggio-engraver.cc
lily/span-bar.cc
lily/span-dynamic-performer.cc
lily/spanner.cc
lily/staff-performer.cc
lily/staff-spacing.cc
lily/staff-symbol-engraver.cc
lily/staff-symbol-referencer.cc
lily/stanza-number-engraver.cc
lily/stem.cc
lily/stencil-scheme.cc
lily/stencil.cc
lily/system-start-delimiter-engraver.cc
lily/system-start-delimiter.cc
lily/system.cc
lily/tab-note-heads-engraver.cc
lily/text-engraver.cc
lily/text-spanner-engraver.cc
lily/tie-engraver.cc
lily/tie-performer.cc
lily/timing-translator.cc
lily/translator-ctors.cc
lily/translator-group.cc
lily/trill-spanner-engraver.cc
lily/ttf.cc
lily/tuplet-bracket.cc
lily/tuplet-engraver.cc
lily/vaticana-ligature-engraver.cc
lily/vaticana-ligature.cc
lily/vertically-spaced-context-engraver.cc
lily/volta-engraver.cc
lily/volta-repeat-iterator.cc
ly/music-functions-init.ly

index a5f0fdb4f507ad4442cd19940080bc00e1d8ff35..8e21cd985fa4faec3b6253107984c2619d78b9ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-13  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * Nitpick run.
+
+       * buildscripts/fixcc.py: Fixes.
+
 2005-08-12  Graham Percival  <gpermus@gmail.com>
 
        * Documentation/user/advanced-notation.itely: add markup
index dc00e573c79e718a42ef94707dfd51905d54d1f1..3773d66b71095226f553ad2c35f5609315e825f8 100644 (file)
@@ -22,17 +22,28 @@ import sys
 import time
 
 COMMENT = 'COMMENT'
+STRING = 'STRING'
+GLOBAL_CXX = 'GC++'
 CXX = 'C++'
 verbose_p = 0
 indent_p = 0
 
 rules = {
+       GLOBAL_CXX:
+       [
+       # delete gratuitous block
+       ('''\n(    |\t)\s*{\n\s*(.*?)(?![{}]|\b(do|for|else|if|switch|while)\b);\n\s*}''',
+        '\n\\2;'),
+       ],
        CXX:
        [
        # space before parenthesis open
        ('([^\( \]])[ \t]*\(', '\\1 ('),
        # space after comma
-       (',[ \t]*', ', '),
+       ("\([^'],\)[ \t]*", '\1 '),
+       # delete gratuitous block
+       ('''\n(    |\t)\s*{\n\s*(.*?)(?![{}]|\b(do|for|else|if|switch|while)\b);\n\s*}''',
+        '\n\\2;'),
        # delete inline tabs
        ('(\w)\t+', '\\1 '),
        # delete inline double spaces
@@ -78,9 +89,6 @@ rules = {
        ('(return|=) (\*|&|-|!) ([\w\(])', '\\1 \\2\\3'),
        # space after `operator'
        ('(\Woperator) *([^\w\s])', '\\1 \\2'),
-       # delete gratuitous block
-       ('''\n(    |\t)\s*{\n\s*(.*?)(?![{}]|\b(do|for|else|if|switch|while)\b);\n\s*}''',
-        '\n\\2;'),
        # dangling brace close
        ('\n[ \t]*(\n[ \t]*})', '\\1'),
        # dangling newline
@@ -94,17 +102,14 @@ rules = {
        ('\n[ \t]*,', ','),
        # dangling semicolon
        ('\n[ \t]*;', ';'),
-       # delete gratuitous blocks
-       ('''xx\n([    ]|\t)\s*{\n\s*(.*?)(?![{}]|\b(do|for|else|if|switch|while)\b);\n\s*}''',
-        '\n\\2;'),
        # brace open
        ('(\w)[ \t]*([^\s]*){([ \t]*\n)', '\\1\\2\n{\n'),
        # brace open backslash
        ('(\w[^\n]*){[ \t]*\\\\\n', '\\1\\\n{\\\n'),
        # brace close
-       ('}[ \t]*([^\n]*\w[^\n\\\]*)\n', '}\n\\1\n'),
+       ("}[ \t]*([^'\n]*\w[^\n\\\]*)\n", '}\n\\1\n'),
        # brace close backslash
-       ('}[ \t]*([^\n]*\w[^\n\\\]*)', '\n}\n\\1'),
+       ("}[ \t]*([^'\n]*\w[^\n\\\]*)", '\n}\n\\1'),
        # delete space after `operator'
        #('(\Woperator) (\W)', '\\1\\2'),
        # delete space after case, label
@@ -169,41 +174,38 @@ rules = {
 no_match = 'a\ba'
 snippet_res = {
        CXX: {
-               'include':
-                 no_match,
-
-               'multiline_comment':
-                 r'''(?sx)
-                   (?P<match>
-                   (?P<code>
-                   [ \t]*/\*.*?\*/))''',
-
-               'singleline_comment':
-                 r'''(?mx)
-                   ^.*
-                   (?P<match>
-                     (?P<code>
-                     [ \t]*//([ \t][^\n]*|)\n))''',
-
-               'string':
-                 r'''(?x)
-                   (?P<match>
-                   (?P<code>
-                   "([^"]|(([^\\]|(\\\\))\\"))*"))''',
-
-               'char':
-                 r'''(?x)
-                   (?P<match>
-                   (?P<code>
-                   '([^']+|\')))''',
-
-               'include':
-                 r'''(?x)
-                   (?P<match>
-                   (?P<code>
-                   "#[ \t]*include[ \t]*<[^>]*>''',
-       },
-       }
+       'multiline_comment':
+       r'''(?sx)
+       (?P<match>
+       (?P<code>
+       [ \t]*/\*.*?\*/))''',
+       
+       'singleline_comment':
+       r'''(?mx)
+       ^.*
+       (?P<match>
+       (?P<code>
+       [ \t]*//([ \t][^\n]*|)\n))''',
+
+       'string':
+       r'''(?x)
+       (?P<match>
+       (?P<code>
+       "([^\"\n](\")*)*"))''',
+       
+       'char':
+       r'''(?x)
+       (?P<match>
+       (?P<code>
+       '([^']+|\')))''',
+          
+          'include':
+          r'''(?x)
+          (?P<match>
+          (?P<code>
+          "#[ \t]*include[ \t]*<[^>]*>''',
+          },
+         }
 
 class Chunk:
        def replacement_text (self):
@@ -212,12 +214,6 @@ class Chunk:
        def filter_text (self):
                return self.replacement_text ()
 
-       def ly_is_outdated (self):
-               return 0
-
-       def png_is_outdated (self):
-               return 0
-
 class Substring (Chunk):
        def __init__ (self, source, start, end):
                self.source = source
@@ -231,11 +227,12 @@ class Substring (Chunk):
                for i in rules[CXX]:
                        if verbose_p:
                                sys.stderr.write ('.')
-                               #sys.stderr.write ('\n*********\n')
+                               #sys.stderr.write ('\n\n***********\n')
                                #sys.stderr.write (i[0])
-                               #sys.stderr.write ('\n=========\n')
+                               #sys.stderr.write ('\n***********\n')
+                               #sys.stderr.write ('\n=========>>\n')
                                #sys.stderr.write (s)
-                               #sys.stderr.write ('\n*********\n')
+                               #sys.stderr.write ('\n<<=========\n')
                        s = re.sub (i[0], i[1], s)
                if verbose_p:
                        sys.stderr.write ('done\n')
@@ -279,8 +276,7 @@ class Multiline_comment (Snippet):
 
 snippet_type_to_class = {
        'multiline_comment': Multiline_comment,
-#      'lilypond_block': Lilypond_snippet,
-#      'lilypond': Lilypond_snippet,
+#      'string': Multiline_comment,
 #      'include': Include_snippet,
 }
 
@@ -359,13 +355,17 @@ def find_toplevel_snippets (s, types):
 def nitpick_file (outdir, file):
        s = open (file).read ()
 
+       for i in rules[GLOBAL_CXX]:
+               s = re.sub (i[0], i[1], s)
+
        # FIXME: Containing blocks must be first, see
        #        find_toplevel_snippets.
+       #        We leave simple strings be part of the code
        snippet_types = (
                'multiline_comment',
                'singleline_comment',
                'string',
-               'char',
+#              'char',
                )
 
        chunks = find_toplevel_snippets (s, snippet_types)
@@ -531,6 +531,10 @@ typedef struct _t_ligature
   
 typedef std::map < AFM_Ligature const *, int > Bar;
 
+  /**
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  */
+  
 /*      ||
  *      vv
  * !OK  OK
@@ -595,10 +599,17 @@ i
 
   a = 0 ? *x : *y;
 
+a = "foo() 2,2,4";
+{
+  if (!span_)
+    {
+      span_ = make_spanner ("StaffSymbol", SCM_EOL);
+    }
+}
 {
-  if (foo)
+  if (!span_)
     {
-      a = 1;
+      span_ = make_spanner (StaffSymbol, SCM_EOL);
     }
 }
 '''
index 71e700893eaffc35774e8083a6eb725fb39b2825..db1ef4768e48b1d910fb1392a09a46c0200ff2ec 100644 (file)
@@ -15,12 +15,8 @@ direction_string (Direction d, Axis a)
 {
   String s ("center");
   if (a == Y_AXIS)
-    {
-      s = (d == UP ? "up" : "down");
-    }
+    s = (d == UP ? "up" : "down");
   else if (a == X_AXIS)
-    {
-      s = (d == LEFT ? "left" : "right");
-    }
+    s = (d == LEFT ? "left" : "right");
   return s;
 }
index 780361848374835fec193716f8916ec2203a85b6..d15c92caf4ca18a4bc9b548cab84612300002d19 100644 (file)
@@ -38,10 +38,10 @@ void
 File_path::parse_path (String p)
 {
   int len;
-  while ((len = p.length ()) )
+  while ((len = p.length ()))
     {
       int i = p.index (PATHSEP);
-      if (i < 0) 
+      if (i < 0)
        i = len;
       append (p.left_string (i));
       p = p.right_string (len - i - 1);
index 5db40734be59e2df5b52ac21438a01f41a713854..dd74d8aff7a1d873cefa6a8c50b198a4aac1417a 100644 (file)
@@ -43,16 +43,16 @@ Getopt_long::parselong ()
   assert (*optnm);
 
   char const *endopt = strchr (optnm, '=');
-  int searchlen  = (endopt) ? endopt - optnm : strlen (optnm);
+  int searchlen = (endopt) ? endopt - optnm : strlen (optnm);
 
-  found_option_=0;
-  for (int i=0; i< table_len_; i++)
+  found_option_ = 0;
+  for (int i = 0; i < table_len_; i++)
     {
       char const *ln = option_a_[i].longname_str0_;
 
       if (ln && !strncmp (ln, optnm, searchlen))
        {
-         found_option_ = option_a_+i;
+         found_option_ = option_a_ + i;
          break;
        }
     }
@@ -65,7 +65,6 @@ Getopt_long::parselong ()
   array_index_++;
   argument_index_ = 0;
 
-
   if (found_option_->take_arg_str0_)
     {
       if (endopt)
@@ -202,9 +201,7 @@ Getopt_long::parseshort ()
       array_index_++;
     }
   if (!optional_argument_str0_)
-    {
-      report (E_ARGEXPECT);
-    }
+    report (E_ARGEXPECT);
 
   return found_option_;
 }
@@ -308,9 +305,7 @@ Long_option_init::table_string (Long_option_init *l)
 
   int wid = 0;
   for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
-    {
-      wid = max (wid, l[i].str_for_help ().length ());
-    }
+    wid = max (wid, l[i].str_for_help ().length ());
 
   for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
     {
index 118b1f43d38aa0400280c1b277779f3d2b7f925c..f5ccafee74e866d540d927d211cb4ef821e3c3d6 100644 (file)
@@ -147,9 +147,7 @@ binary_search (Array<T> const &table,
   binary_search_bounds (table, key, compare, &lo, &hi);
 
   if (! (*compare) (key, table[lo]))
-    {
-      return lo;
-    }
+    return lo;
   else
     return -1;              /* not found */
 }
index bf1916a90fc8fbd45cd7a834fe51ba4424bb9742..5f7238173b7059b43601ae2fa06e67437ff0f69a 100644 (file)
@@ -69,9 +69,7 @@ template<class T>
 Cons<T> *last_cons (Cons<T> *head)
 {
   while (head && head->next_)
-    {
-      head = head->next_;
-    }
+    head = head->next_;
   return head;
 }
 
@@ -127,9 +125,7 @@ public:
   {
     Cons<T> **p = &head_;
     for (; *p && i; p = &((*p)->next_))
-      {
-       i--;
-      }
+      i--;
 
     if (*p)
       {
index 6426b90b025cc63755a8c1aa35c95ede91ea953a..4e3323f74889bb6a2a15675294b5408f969c70cd 100644 (file)
@@ -101,7 +101,6 @@ Interval_t<T>::intersect (Interval_t<T> h)
   elem_ref (RIGHT) = min (h.elem (RIGHT), elem (RIGHT));
 }
 
-
 template<class T>
 String
 Interval_t<T>::to_string () const
index 3e2c9bdd75b88ebba2418b922bacd9afc35c84ee..58a78d7892a35173b9092332cd3742006fff4643 100644 (file)
@@ -217,9 +217,7 @@ void
 junk_pointers (Link_array<T> &a)
 {
   for (int i = 0; i < a.size (); i++)
-    {
-      delete a[i];
-    }
+    delete a[i];
   a.clear ();
 }
 
index 60f553b588e338eeeef7159a29bbaef9fb29df1e..d5147f1d7465640f6cbdfa97511f64c43ce0a711 100644 (file)
@@ -203,13 +203,13 @@ token (FILE *stream)
   int ch, idx;
 
   /* skip over white space */
-  while ((ch = fgetc (stream)) == ' ' || ch == lineterm ||
-        ch == lineterm_alt ||
-        ch == ',' || ch == '\t' || ch == ';');
+  while ((ch = fgetc (stream)) == ' ' || ch == lineterm
+        || ch == lineterm_alt
+        || ch == ',' || ch == '\t' || ch == ';');
 
   idx = 0;
-  while (idx < MAX_NAME - 1 &&
-        ch != EOF && ch != ' ' && ch != lineterm && ch != lineterm_alt
+  while (idx < MAX_NAME - 1
+        && ch != EOF && ch != ' ' && ch != lineterm && ch != lineterm_alt
         && ch != '\t' && ch != ':' && ch != ';')
     {
       ident[idx++] = ch;
@@ -217,8 +217,8 @@ token (FILE *stream)
     } /* while */
 
   if (ch == EOF && idx < 1) return ((char *)NULL);
-  if (idx >= 1 && ch != ':' ) ungetc (ch, stream);
-  if (idx < 1 ) ident[idx++] = ch;     /* single-character token */
+  if (idx >= 1 && ch != ':') ungetc (ch, stream);
+  if (idx < 1) ident[idx++] = ch;      /* single-character token */
   ident[idx] = 0;
 
   return (ident);      /* returns pointer to the token */
@@ -236,11 +236,11 @@ linetoken (FILE *stream)
 {
   int ch, idx;
 
-  while ((ch = fgetc (stream)) == ' ' || ch == '\t' );
+  while ((ch = fgetc (stream)) == ' ' || ch == '\t');
 
   idx = 0;
-  while (idx < MAX_NAME - 1 &&
-        ch != EOF && ch != lineterm && ch != lineterm_alt)
+  while (idx < MAX_NAME - 1
+        && ch != EOF && ch != lineterm && ch != lineterm_alt)
     {
       ident[idx++] = ch;
       ch = fgetc (stream);
index 7b60880e7d901d40f4779fb4c47f9cc2fda72062..906c948c9f905c0c725a0e9a81e45d4bb7f6cf46 100644 (file)
@@ -48,9 +48,7 @@ void
 Polynomial::differentiate ()
 {
   for (int i = 1; i <= degree (); i++)
-    {
-      coefs_[i - 1] = coefs_[i] * i;
-    }
+    coefs_[i - 1] = coefs_[i] * i;
   coefs_.pop ();
 }
 
index f1fdb8a67fbc3c068a25e3408b5be399a7cca31d..af4d9931bdb027acea187ba446e2ab6953913ac3 100644 (file)
@@ -177,13 +177,13 @@ String_convert::unsigned2hex (unsigned u, int length_i, char fill_char)
 #endif
 
   str = to_string (fill_char, length_i - str.length ()) + str;
-  while ((str.length () > length_i) && (str[ 0 ] == 'f' ) )
+  while ((str.length () > length_i) && (str[ 0 ] == 'f'))
     str = str.cut_string (2, INT_MAX);
 
   return str;
 }
 
-String 
+String
 String_convert::int2hex (int i, int length_i, char fill_char)
 {
   return unsigned2hex ((unsigned)i, length_i, fill_char);
@@ -192,7 +192,7 @@ String_convert::int2hex (int i, int length_i, char fill_char)
 Byte
 String_convert::nibble2hex_byte (Byte byte)
 {
-  if ((byte & 0x0f) <= 9 )
+  if ((byte & 0x0f) <= 9)
     return (byte & 0x0f) + '0';
   else
     return (byte & 0x0f) - 10 + 'a';
@@ -305,7 +305,7 @@ String_convert::precision_string (double x, int n)
     str = "0." + to_string ('0', -dot) + str;
   else if (dot >= str.length ())
     str += to_string ('0', dot - str.length ());
-  else if (( dot > 0) && (dot < str.length ()))
+  else if ((dot > 0) && (dot < str.length ()))
     str = str.left_string (dot) + "." + str.cut_string (dot, INT_MAX);
   else
     assert (0);
@@ -343,5 +343,5 @@ String_convert::long_string (long l)
 String
 String_convert::pad_to (String s, int n)
 {
-  return s + to_string (' ' , max (n - s.length (), 0));
+  return s + to_string (' ', max (n - s.length (), 0));
 }
index 24ba1e2feaa242127a9d359c541afccb49042551..c4c7d49abf39b1c617b4dbf918ca317ba8ab4ef6 100644 (file)
@@ -131,7 +131,6 @@ String::to_bytes () const
   return strh_.to_bytes ();
 }
 
-
 Byte *
 String::get_bytes ()
 {
index eb4efce0e920032df870ed61b1f8c8975f799380..d81d9a3c361d04d66622f5a7f4ca4a535d1fde2d 100644 (file)
@@ -83,7 +83,6 @@ public:
 
   Array<Accidental_entry> accidentals_;
   Link_array<Spanner> ties_;
-
 };
 
 /*
@@ -205,19 +204,13 @@ number_accidentals_from_sig (bool *different, SCM sig, Pitch *pitch,
 
   if (from_same_octave != SCM_BOOL_F
       && recent_enough (bar_number, from_same_octave, laziness))
-    {
-      previous_alteration = from_same_octave;
-    }
+    previous_alteration = from_same_octave;
   else if (ignore_octave
           && from_other_octaves != SCM_BOOL_F
           && recent_enough (bar_number, from_other_octaves, laziness))
-    {
-      previous_alteration = from_other_octaves;
-    }
+    previous_alteration = from_other_octaves;
   else if (from_key_signature != SCM_BOOL_F)
-    {
-      previous_alteration = from_key_signature;
-    }
+    previous_alteration = from_key_signature;
 
   int num = 1;
   if (is_tied (previous_alteration))
@@ -449,9 +442,7 @@ Accidental_engraver::make_suggested_accidental (Music *note,
 
   Side_position_interface::add_support (a, note_head);
   if (Grob *stem = unsmob_grob (a->get_object ("stem")))
-    {
-      Side_position_interface::add_support (a, stem);
-    }
+    Side_position_interface::add_support (a, stem);
 
   a->set_parent (note_head, X_AXIS);
   return a;
index 5265461bee104393176a05423f21f22acbdb97b9..63e5f7934265565165abec73ace13f2da2e32af4 100644 (file)
@@ -57,9 +57,7 @@ Accidental_placement::add_accidental (Grob *me, Grob *a)
   SCM key = scm_from_int (n);
   SCM entry = scm_assq (key, accs);
   if (entry == SCM_BOOL_F)
-    {
-      entry = SCM_EOL;
-    }
+    entry = SCM_EOL;
   else
     entry = scm_cdr (entry);
 
@@ -113,9 +111,7 @@ Accidental_placement::get_relevant_accidental_extent (Grob *me,
 
   Interval extent;
   for (int i = 0; i < which->size (); i++)
-    {
-      extent.unite (which->elem (i)->extent (item_col, X_AXIS));
-    }
+    extent.unite (which->elem (i)->extent (item_col, X_AXIS));
 
   if (!extent.is_empty ())
     {
@@ -302,9 +298,7 @@ Accidental_placement::position_accidentals (Grob *me)
     }
 
   for (int i = note_cols.size (); i--;)
-    {
-      heads.concat (extract_grob_array (note_cols[i], "note-heads"));
-    }
+    heads.concat (extract_grob_array (note_cols[i], "note-heads"));
 
   heads.default_sort ();
   heads.uniq ();
index ad781baeded6b98f5c16adedb6bb91ef9f2ca7b5..bd02de206705d25a6bb2f16725d332135e065de6 100644 (file)
@@ -120,9 +120,7 @@ Accidental_interface::accurate_boxes (Grob *a, Grob **common)
   Offset o (a->relative_coordinate (common[X_AXIS], X_AXIS),
            a->relative_coordinate (common[Y_AXIS], Y_AXIS));
   for (int i = boxes.size (); i--;)
-    {
-      boxes[i].translate (o);
-    }
+    boxes[i].translate (o);
 
   return boxes;
 }
index b7fe37c47593abdeb124e8577c2540c607792cbd..adbe9d199cf14d5a19f118ef6f360f827ae15986 100644 (file)
@@ -120,9 +120,7 @@ Align_interface::align_elements_to_extents (Grob *me, Axis a)
   if (a == Y_AXIS
       && me_spanner
       && me_spanner->get_bound (LEFT)->break_status_dir () == CENTER)
-    {
-      me_spanner->warning (_ ("vertical alignment called before line-breaking. Only do cross-staff spanners with PianoStaff."));
-    }
+    me_spanner->warning (_ ("vertical alignment called before line-breaking. Only do cross-staff spanners with PianoStaff."));
 
   me->set_property ("positioning-done", SCM_BOOL_T);
 
index 803598ff3f3484d054522ed6ed419c0332972722..7fdd2fadf0b9c976ba0cca1b78aa2c9ea136c6ad 100644 (file)
@@ -91,9 +91,7 @@ Ambitus_engraver::process_music ()
    * be placed after the rest.
    */
   if (!ambitus_)
-    {
-      create_ambitus ();
-    }
+    create_ambitus ();
 }
 
 void
index 5c82930b4f14fdd8d49a64077c21fddadec0ba29..b488e1be6468fe3d94d8a43cbc9d4511a8f45a6a 100644 (file)
@@ -44,9 +44,7 @@ bool
 Arpeggio_engraver::try_music (Music *m)
 {
   if (!arpeggio_event_)
-    {
-      arpeggio_event_ = m;
-    }
+    arpeggio_event_ = m;
   return true;
 }
 
@@ -72,27 +70,21 @@ Arpeggio_engraver::acknowledge_rhythmic_head (Grob_info info)
       We can't catch local key items (accidentals) from Voice context,
       see Local_key_engraver
     */
-    {
-      Side_position_interface::add_support (arpeggio_, info.grob ());
-    }
+    Side_position_interface::add_support (arpeggio_, info.grob ());
 }
 
 void
 Arpeggio_engraver::acknowledge_note_column (Grob_info info)
 {
   if (arpeggio_)
-    {
-      info.grob ()->set_object ("arpeggio", arpeggio_->self_scm ());
-    }
+    info.grob ()->set_object ("arpeggio", arpeggio_->self_scm ());
 }
 
 void
 Arpeggio_engraver::process_music ()
 {
   if (arpeggio_event_)
-    {
-      arpeggio_ = make_item ("Arpeggio", arpeggio_event_->self_scm ());
-    }
+    arpeggio_ = make_item ("Arpeggio", arpeggio_event_->self_scm ());
 }
 
 void
index a2757706a2ec46e91e993d00b4b38109a9c7007d..53f70cdf6b79912b2478980cfec8103134a29aaf 100644 (file)
@@ -65,9 +65,7 @@ Arpeggio::print (SCM smob)
   SCM ad = me->get_property ("arpeggio-direction");
   Direction dir = CENTER;
   if (is_direction (ad))
-    {
-      dir = to_dir (ad);
-    }
+    dir = to_dir (ad);
 
   Stencil mol;
   Font_metric *fm = Font_interface::get_default_font (me);
index 2a90c3e3c50b8a8a982c6b3c4666530aa7c64530..cdf0ad31df7a5076a773d2b40030ad5aa17d47c6 100644 (file)
@@ -240,9 +240,7 @@ void
 Auto_beam_engraver::end_beam ()
 {
   if (stems_->size () < 2)
-    {
-      junk_beam ();
-    }
+    junk_beam ();
   else
     {
       finished_beam_ = create_beam ();
@@ -304,16 +302,13 @@ Auto_beam_engraver::finalize ()
 }
 
 
-
 void
 Auto_beam_engraver::acknowledge_beam (Grob_info info)
 {
   (void)info;
   check_bar_property ();
   if (stems_)
-    {
-      end_beam ();
-    }
+    end_beam ();
 }
 
 void
index 3d6889c6ac3d9c828f57d6ba745756917c574cdf..b5b64edbbdb840753c2bf63ec2064919014317d7 100644 (file)
@@ -61,7 +61,6 @@ Axis_group_interface::relative_group_extent (Link_array<Grob> const &elts,
   return r;
 }
 
-
 MAKE_SCHEME_CALLBACK (Axis_group_interface, group_extent_callback, 2);
 SCM
 Axis_group_interface::group_extent_callback (SCM element_smob, SCM scm_axis)
index 8ae2c2ff05e970dae1a9b0516f2e029aa0ebb0a7..a0a9ccdae41c322b9fb3101f6cb0c94e54ec6a96 100644 (file)
@@ -75,13 +75,9 @@ Bar_line::compound_barline (Grob *me, String str, Real h,
     str = "|:";
 
   if (str == "")
-    {
-      return Lookup::blank (Box (Interval (0, 0), Interval (-h / 2, h / 2)));
-    }
+    return Lookup::blank (Box (Interval (0, 0), Interval (-h / 2, h / 2)));
   else if (str == "|")
-    {
-      return thin;
-    }
+    return thin;
   else if (str == "|." || (h == 0 && str == ":|"))
     {
       m.add_at_edge (X_AXIS, LEFT, thick, 0, 0);
index 698b4bb7a70e73df00712077076b82eb7dab3493..9f4fa955a5fe6f7ef11b3bc53e2eda026aa5ed6d 100644 (file)
@@ -126,9 +126,7 @@ void
 Beam_engraver::process_music ()
 {
   if (beam_ && !to_boolean (get_property ("allowBeamBreak")))
-    {
-      get_score_engraver ()->forbid_breaks ();
-    }
+    get_score_engraver ()->forbid_breaks ();
 
   if (start_ev_)
     {
index b72da881f69d408b391709a7ab29aa597223a4c0..0ee1a01b4145d5b3371635e1a718a590fe7d9da9 100644 (file)
@@ -25,9 +25,7 @@ get_detail (SCM alist, SCM sym, Real def)
   SCM entry = scm_assq (sym, alist);
 
   if (scm_is_pair (entry))
-    {
-      return robust_scm2double (scm_cdr (entry), def);
-    }
+    return robust_scm2double (scm_cdr (entry), def);
   return def;
 }
 
@@ -374,10 +372,9 @@ Beam::score_stem_lengths (Link_array<Grob> const &stems,
 
   Direction d = DOWN;
   do
-    {
-      score[d] /= max (count[d], 1);
-    }
-  while (flip (&d) != DOWN);
+    score[d] /= max (count[d], 1);
+  while (flip (&d) != DOWN)
+    ;
 
   return score[LEFT] + score[RIGHT];
 }
@@ -402,9 +399,7 @@ Beam::score_slopes_dy (Real yl, Real yr,
   */
   if (fabs (dy / dx) > parameters->ROUND_TO_ZERO_SLOPE
       && sign (dy_damp) != sign (dy))
-    {
-      dem += parameters->DAMPING_DIRECTION_PENALTY;
-    }
+    dem += parameters->DAMPING_DIRECTION_PENALTY;
 
   dem += parameters->MUSICAL_DIRECTION_FACTOR *max (0.0, (fabs (dy) - fabs (dy_mus)));
 
index 23311ef5517fcd06f37289e882a87b4494c5f8f1..e0a5fe51c1e6bda1b7ba038c64008f8cd405fe1c 100644 (file)
@@ -78,9 +78,7 @@ Beam::get_beam_translation (Grob *me)
       return scm_to_double (s);
     }
   else
-    {
-      return 0.81;
-    }
+    return 0.81;
 }
 
 /* Maximum beam_count. */
index 4cc9390996f5b933d7b59868d8ee12014cb04fa6..f71ce8cfb261b891b725cee6c16672fa174fdeee 100644 (file)
@@ -74,10 +74,9 @@ Beaming_info_list::beamify (Moment &beat_length, bool subdivide)
   Direction d = LEFT;
 
   do
-    {
-      splits[d].beamify (beat_length, subdivide);
-    }
-  while (flip (&d) != LEFT);
+    splits[d].beamify (beat_length, subdivide);
+  while (flip (&d) != LEFT)
+    ;
 
   int middle_beams = (split ? 1
                      : min (splits[RIGHT].beam_extend_count (LEFT),
index 26ad982419ac2f344db62fd40b61a63e2e572a75..96b37a8705ffe8800c3b5a3168ebbcaa3452915f 100644 (file)
@@ -91,9 +91,7 @@ Bezier::curve_coordinate (Real t, Axis a) const
   Real one_min_tj[4];
   one_min_tj[0] = 1;
   for (int i = 1; i < 4; i++)
-    {
-      one_min_tj[i] = one_min_tj[i - 1] * (1 - t);
-    }
+    one_min_tj[i] = one_min_tj[i - 1] * (1 - t);
 
   Real r = 0.0;
   for (int j = 0; j < 4; j++)
@@ -114,9 +112,7 @@ Bezier::curve_point (Real t) const
   Real one_min_tj[4];
   one_min_tj[0] = 1;
   for (int i = 1; i < 4; i++)
-    {
-      one_min_tj[i] = one_min_tj[i - 1] * (1 - t);
-    }
+    one_min_tj[i] = one_min_tj[i - 1] * (1 - t);
 
   Offset o;
   for (int j = 0; j < 4; j++)
index 93aca0ad2bec4cc891f869750ec384980721cc5a..2c726df90de1f2a677826866578ab877d50ca336 100644 (file)
@@ -43,13 +43,13 @@ Binary_source_file::quote_input (char const *pos_str0) const
 
   String str = pre_string
     + to_string ('\n')
-    + to_string (' ', pre_string.length () + 1) 
+    + to_string (' ', pre_string.length () + 1)
     + post_string;
   return str;
 }
 
 int
-Binary_source_file::get_line (char constpos_str0) const
+Binary_source_file::get_line (char const *pos_str0) const
 {
   if (!contains (pos_str0))
     return 0;
@@ -60,10 +60,9 @@ Binary_source_file::get_line (char const* pos_str0) const
 U8
 Binary_source_file::get_U8 ()
 {
-  return * (U8*)forward_str0 (1);
+  return *(U8 *)forward_str0 (1);
 }
 
-
 U16
 Binary_source_file::get_U16 ()
 {
index 631798e9cd0aa168f358d905a51feea0d91364c7..0c3106e3fa2037ff9c8240eff1f4154331e34225 100644 (file)
@@ -75,8 +75,7 @@ Book::add_score (SCM s)
 }
 
 /* Concatenate all score outputs into a Paper_book
-
-*/
+ */
 Paper_book *
 Book::process (Output_def *default_paper,
               Output_def *default_layout)
index 360eb3f4df254188d624ab21f9d2dfea6dae8e10..7c41cd27febea5bb14dde93e1ee9775caaed9184 100644 (file)
@@ -67,9 +67,7 @@ Break_algorithm::generate_spacing_problem (Link_array<Grob> const &curline,
     sort out how interfacing this should work;
   */
   if (line.is_empty ())
-    {
-      sp->line_len_ = -1;
-    }
+    sp->line_len_ = -1;
   else
     sp->line_len_ = line.length ();
 
index c7fd035c3bcd0d2b74c2db9d18c0f6283698b4fe..9778f3076b849be498ff439e15af107f33d4a640 100644 (file)
@@ -50,9 +50,7 @@ Break_align_interface::self_align_callback (SCM element_smob, SCM axis)
   Item *item = dynamic_cast<Item *> (me);
   Direction bsd = item->break_status_dir ();
   if (bsd == LEFT)
-    {
-      me->set_property ("self-alignment-X", scm_from_int (RIGHT));
-    }
+    me->set_property ("self-alignment-X", scm_from_int (RIGHT));
 
   /*
     Force break alignment itself to be done first, in the case
@@ -258,9 +256,7 @@ Break_align_interface::do_alignment (Grob *grob)
     return;
 
   if (me->break_status_dir () == LEFT)
-    {
-      alignment_off = -total_extent[RIGHT] - extra_right_space;
-    }
+    alignment_off = -total_extent[RIGHT] - extra_right_space;
   else if (edge_idx < 0)
     alignment_off = -total_extent[LEFT];
 
index 670f7e567b4d3022da3b14746525420948c9be8c..5f6edb9cebbb37cddba8e1e7842509c95d897740 100644 (file)
@@ -160,9 +160,7 @@ substitute_grob_array (Grob_array *grob_arr, Grob_array *new_arr)
 
   new_grobs->set_size (ptr - array);
   if (new_arr == grob_arr)
-    {
-      new_arr->set_array (*new_grobs);
-    }
+    new_arr->set_array (*new_grobs);
 }
 
 /*
@@ -221,9 +219,7 @@ spanner_system_range (Spanner *sp)
   Slice rv;
 
   if (System *st = sp->get_system ())
-    {
-      rv = Slice (st->get_rank (), st->get_rank ());
-    }
+    rv = Slice (st->get_rank (), st->get_rank ());
   else
     {
       if (sp->broken_intos_.size ())
index 6343dffa8c82cf59ec5a4be6dfe9b521d0d8c10f..ac24dcb7de88ac8379076cef9de0c0a2e4f2c142 100644 (file)
@@ -45,9 +45,7 @@ Breathing_sign::divisio_minima (SCM smob)
   Real thickness = Staff_symbol_referencer::line_thickness (me);
   thickness *= robust_scm2double (me->get_property ("thickness"), 1.0);
   if (Staff_symbol_referencer::get_staff_symbol (me))
-    {
-      staff_size = (Staff_symbol_referencer::line_count (me) - 1) * staff_space;
-    }
+    staff_size = (Staff_symbol_referencer::line_count (me) - 1) * staff_space;
   else
     staff_size = 0.0;
 
@@ -78,9 +76,7 @@ Breathing_sign::divisio_maior (SCM smob)
   thickness *= robust_scm2double (me->get_property ("thickness"), 1.0);
 
   if (Staff_symbol_referencer::get_staff_symbol (me))
-    {
-      staff_size = (Staff_symbol_referencer::line_count (me) - 1) * staff_space;
-    }
+    staff_size = (Staff_symbol_referencer::line_count (me) - 1) * staff_space;
   else
     staff_size = 0.0;
 
@@ -118,9 +114,7 @@ Breathing_sign::divisio_maxima (SCM smob)
   thickness *= robust_scm2double (me->get_property ("thickness"), 1.0);
 
   if (Staff_symbol_referencer::get_staff_symbol (me))
-    {
-      staff_size = (Staff_symbol_referencer::line_count (me) - 1) * staff_space;
-    }
+    staff_size = (Staff_symbol_referencer::line_count (me) - 1) * staff_space;
   else
     staff_size = 0.0;
 
@@ -148,9 +142,7 @@ Breathing_sign::finalis (SCM smob)
   thickness *= robust_scm2double (me->get_property ("thickness"), 1.0);
 
   if (Staff_symbol_referencer::get_staff_symbol (me))
-    {
-      staff_size = (Staff_symbol_referencer::line_count (me) - 1) * staff_space;
-    }
+    staff_size = (Staff_symbol_referencer::line_count (me) - 1) * staff_space;
   else
     staff_size = 0.0;
 
index 0149be93472a7786a8b244471158dc59f1b9dad3..9547d7abff2413924c1cc414472f05e9433690ae 100644 (file)
@@ -91,9 +91,7 @@ Chord_tremolo_engraver::try_music (Music *m)
       int elt_count = body_is_sequential_ ? scm_ilength (body->get_property ("elements")) : 1;
 
       if (body_is_sequential_ && elt_count != 2)
-       {
-         m->origin ()->warning (_f ("expect 2 elements for chord tremolo, found %d", elt_count));
-       }
+       m->origin ()->warning (_f ("expect 2 elements for chord tremolo, found %d", elt_count));
 
       if (elt_count <= 0)
        elt_count = 1;
@@ -153,9 +151,7 @@ Chord_tremolo_engraver::acknowledge_stem (Grob_info info)
        Stem::set_beaming (s, flags_, LEFT);
 
       if (Stem::duration_log (s) != 1)
-       {
-         beam_->set_property ("gap-count", scm_from_int (flags_ - total_duration_flags_));
-       }
+       beam_->set_property ("gap-count", scm_from_int (flags_ - total_duration_flags_));
 
       if (info.music_cause ()->is_mus_type ("rhythmic-event"))
        Beam::add_stem (beam_, s);
index 8ac60b91a98a69236b55d05302b373ec1103274c..fa54f7a8dc047cf6de9fee6d1a113d1ce7defd18 100644 (file)
@@ -85,9 +85,7 @@ Clef_engraver::acknowledge_bar_line (Grob_info info)
 {
   Item *item = dynamic_cast<Item *> (info.grob ());
   if (item && scm_is_string (get_property ("clefGlyph")))
-    {
-      create_clef ();
-    }
+    create_clef ();
 }
 
 void
@@ -174,17 +172,13 @@ Clef_engraver::stop_translation_timestep ()
     {
       SCM vis = 0;
       if (to_boolean (clef_->get_property ("non-default")))
-       {
-         vis = get_property ("explicitClefVisibility");
-       }
+       vis = get_property ("explicitClefVisibility");
 
       if (vis)
        {
          clef_->set_property ("break-visibility", vis);
          if (octavate_)
-           {
-             octavate_->set_property ("break-visibility", vis);
-           }
+           octavate_->set_property ("break-visibility", vis);
        }
 
       clef_ = 0;
index ccd52d3dd2e0bee9942bc4fcfd46d2aa5dcd4d14..e8d9980f3b37471b0a46f3f49c1edf30eb47fc3b 100644 (file)
@@ -97,9 +97,7 @@ Cluster_spanner_engraver::process_music ()
     }
 
   if (beacon_ && !spanner_)
-    {
-      spanner_ = make_spanner ("ClusterSpanner", cluster_notes_[0]->self_scm ());
-    }
+    spanner_ = make_spanner ("ClusterSpanner", cluster_notes_[0]->self_scm ());
 
   if (beacon_ && spanner_)
     {
index f6ca03ab359efbff6f217b748f9973b67689ce53..10b408a88fcaaaa54c15bec78efb4934804dcbd9 100644 (file)
@@ -39,9 +39,7 @@ brew_cluster_piece (Grob *me, Array<Offset> bottom_points, Array<Offset> top_poi
   String shape;
 
   if (scm_is_symbol (shape_scm))
-    {
-      shape = ly_symbol2string (shape_scm);
-    }
+    shape = ly_symbol2string (shape_scm);
   else
     {
       programming_error ("#'style should be symbol.");
@@ -111,9 +109,7 @@ brew_cluster_piece (Grob *me, Array<Offset> bottom_points, Array<Offset> top_poi
       out.add_stencil (Lookup::round_filled_polygon (points, blotdiameter));
     }
   else
-    {
-      me->warning (_f ("unknown cluster style `%s'", shape.to_str0 ()));
-    }
+    me->warning (_f ("unknown cluster style `%s'", shape.to_str0 ()));
   return out;
 }
 
index c7dc0a3a7c7a2461ddbbb4356d6fa8c78c4db772..f868d48ce320b3fabb5d3ef05329d50e385c85e3 100644 (file)
@@ -87,9 +87,7 @@ if (incr_scm != SCM_EOL) /* (Paper_column::is_musical (l)) */
     ly_display_scm (lc->self_scm ());
     Real distance;
     if (incr_scm != SCM_EOL)
-      {
-       distance = scm_to_double (incr_scm);
-      }
+      distance = scm_to_double (incr_scm);
     else
       {
        me->warning (_ ("distance undefined, assuming 0.1"));
@@ -146,9 +144,7 @@ Coherent_ligature_engraver::get_set_column (Item *item, Paper_column *column)
        }
     }
   else
-    {
-      get_set_column (parent, column);
-    }
+    get_set_column (parent, column);
 }
 
 /*
index 53f2044b80d3b3f0918eb110d18aa3800110bc02..ed0d351345386c7670fe79097ff1295774a5c8d9 100644 (file)
@@ -31,9 +31,7 @@ Collision_engraver::process_acknowledged ()
   if (col_ || note_columns_.size () < 2)
     return;
   if (!col_)
-    {
-      col_ = make_item ("NoteCollision", SCM_EOL);
-    }
+    col_ = make_item ("NoteCollision", SCM_EOL);
 
   for (int i = 0; i < note_columns_.size (); i++)
     Note_collision_interface::add_column (col_, note_columns_[i]);
index dbd7936e494daf3901f64d4d87c2199580798422..b594e5be61b128ec17d139c773201eb804fd9341 100644 (file)
@@ -21,7 +21,6 @@
 #include "duration.hh"
 #include "pitch.hh"
 
-
 /*
   TODO: make matching rest engraver.
 */
@@ -98,9 +97,7 @@ Completion_heads_engraver::try_music (Music *m)
       return true;
     }
   else if (m->is_mus_type ("busy-playing-event"))
-    {
-      return note_events_.size () && is_first_;
-    }
+    return note_events_.size () && is_first_;
 
   return false;
 }
@@ -170,9 +167,7 @@ Completion_heads_engraver::process_music ()
   Duration note_dur;
   Duration *orig = 0;
   if (left_to_do_)
-    {
-      note_dur = find_nearest_duration (left_to_do_);
-    }
+    note_dur = find_nearest_duration (left_to_do_);
   else
     {
       orig = unsmob_duration (note_events_[0]->get_property ("duration"));
@@ -191,9 +186,7 @@ Completion_heads_engraver::process_music ()
     }
 
   if (orig)
-    {
-      left_to_do_ = orig->get_length ();
-    }
+    left_to_do_ = orig->get_length ();
 
   if (orig && note_dur.get_length () != orig->get_length ())
     {
@@ -270,9 +263,7 @@ Completion_heads_engraver::process_music ()
   */
   if (orig
       && now_mom ().grace_part_)
-    {
-      left_to_do_ = Rational (0, 0);
-    }
+    left_to_do_ = Rational (0, 0);
 }
 
 void
@@ -287,9 +278,7 @@ Completion_heads_engraver::stop_translation_timestep ()
   dots_.clear ();
 
   for (int i = scratch_note_events_.size (); i--;)
-    {
-      scratch_note_events_[i]->unprotect ();
-    }
+    scratch_note_events_[i]->unprotect ();
 
   scratch_note_events_.clear ();
 }
index b0eb1c344f0ae8576979a390f473733dbbcb59ae..101696f288a284f043960dcad32e97ffbd1a99b5 100644 (file)
@@ -111,9 +111,7 @@ Context_def::add_context_mod (SCM mod)
     sym = scm_string_to_symbol (sym);
 
   if (ly_symbol2scm ("default-child") == tag)
-    {
-      default_child_ = sym;
-    }
+    default_child_ = sym;
   else if (ly_symbol2scm ("consists") == tag
           || ly_symbol2scm ("consists-end") == tag
           || ly_symbol2scm ("remove") == tag)
index 192001015c0a8e7e3c29bb7ee26fc465ad13ad8d..dbdde16827084bc43a461b12baeed9a60b55779b 100644 (file)
@@ -164,9 +164,7 @@ updated_grob_properties (Context *tg, SCM sym)
 
   SCM based_on = scm_cdr (props);
   if (based_on == daddy_props)
-    {
-      return scm_car (props);
-    }
+    return scm_car (props);
   else
     {
       SCM copy = daddy_props;
index 2e2c2e8873052bc93da23e5fc58e89008f8fe9ea..dce243596e039f8abd974635cd2f6960ddcae2ea 100644 (file)
@@ -253,9 +253,7 @@ Context::get_context_key (String type, String id)
 
   int disambiguation_count = 0;
   if (context_counts_.find (now_key) != context_counts_.end ())
-    {
-      disambiguation_count = context_counts_[now_key];
-    }
+    disambiguation_count = context_counts_[now_key];
 
   context_counts_[now_key] = disambiguation_count + 1;
 
@@ -273,9 +271,7 @@ Context::get_grob_key (String name)
 
   int disambiguation_count = 0;
   if (grob_counts_.find (name) != grob_counts_.end ())
-    {
-      disambiguation_count = grob_counts_[name];
-    }
+    disambiguation_count = grob_counts_[name];
   grob_counts_[name] = disambiguation_count + 1;
 
   Object_key *k = new Lilypond_grob_key (get_key (),
@@ -337,15 +333,11 @@ Context::where_defined (SCM sym, SCM *value) const
 {
 #ifndef NDEBUG
   if (profile_property_accesses)
-    {
-      note_property_access (&context_property_lookup_table, sym);
-    }
+    note_property_access (&context_property_lookup_table, sym);
 #endif
 
   if (properties_dict ()->try_retrieve (sym, value))
-    {
-      return (Context *)this;
-    }
+    return (Context *)this;
 
   return (daddy_context_) ? daddy_context_->where_defined (sym, value) : 0;
 }
@@ -358,9 +350,7 @@ Context::internal_get_property (SCM sym) const
 {
 #ifndef NDEBUG
   if (profile_property_accesses)
-    {
-      note_property_access (&context_property_lookup_table, sym);
-    }
+    note_property_access (&context_property_lookup_table, sym);
 #endif
 
   SCM val = SCM_EOL;
@@ -494,9 +484,7 @@ Context::now_mom () const
 {
   Context const *p = this;
   while (p->daddy_context_)
-    {
-      p = p->daddy_context_;
-    }
+    p = p->daddy_context_;
 
   return p->now_mom ();
 }
@@ -592,9 +580,7 @@ Context::clear_key_disambiguations ()
   grob_counts_.clear ();
   context_counts_.clear ();
   for (SCM s = context_list_; scm_is_pair (s); s = scm_cdr (s))
-    {
-      unsmob_context (scm_car (s))->clear_key_disambiguations ();
-    }
+    unsmob_context (scm_car (s))->clear_key_disambiguations ();
 }
 
 /*
index 5ebb39c6cabf3ba749425033fd5e39e6eb6362df..56347d07a45dcd412652d6c79f51edc44696ec98 100644 (file)
@@ -128,9 +128,7 @@ void
 Custos_engraver::finalize ()
 {
   for (int i = custodes_.size (); i--;)
-    {
-      custodes_[i]->suicide ();
-    }
+    custodes_[i]->suicide ();
   custodes_.clear ();
 }
 
index 55bad6226bcf734393e06ec85dd0dbf1b9264fe1..515e04f761f76b285b7ce8de638dfc3cc6b81889 100644 (file)
@@ -33,13 +33,9 @@ Custos::print (SCM smob)
   SCM scm_style = me->get_property ("style");
   String style;
   if (scm_is_symbol (scm_style))
-    {
-      style = ly_symbol2string (scm_style);
-    }
+    style = ly_symbol2string (scm_style);
   else
-    {
-      style = "mensural";
-    }
+    style = "mensural";
 
   /*
    * Shall we use a common custos font character regardless if on
@@ -68,13 +64,9 @@ Custos::print (SCM smob)
     font_char += "d";
 
   if (adjust)
-    {
-      font_char += (((pos ^ sz) & 0x1) == 0) ? "1" : "0";
-    }
+    font_char += (((pos ^ sz) & 0x1) == 0) ? "1" : "0";
   else
-    {
-      font_char += "2";
-    }
+    font_char += "2";
 
   Stencil stencil
     = Font_interface::get_default_font (me)->find_by_name (font_char);
index a2c0e2804b2360de7986b1a02ba49710d18783bf..d29df4fdc764dff3ff7a04b54df5fbaf091e32b8 100644 (file)
@@ -58,9 +58,7 @@ Dot_column_engraver::acknowledge_rhythmic_head (Grob_info info)
   if (d)
     {
       if (!dotcol_)
-       {
-         dotcol_ = make_item ("DotColumn", SCM_EOL);
-       }
+       dotcol_ = make_item ("DotColumn", SCM_EOL);
 
       Dot_column::add_head (dotcol_, info.grob ());
     }
index 1121ff04be81b0afa0d80700ec00584412c031fc..0acae3b414c9acabdb4a777106b6c72e7b9b2faa 100644 (file)
@@ -277,9 +277,7 @@ Dot_column::do_shifts (Grob *me)
 
   for (Dot_configuration::const_iterator i (cfg.begin ());
        i != cfg.end (); i++)
-    {
-      Staff_symbol_referencer::set_position (i->second.dot_, i->first);
-    }
+    Staff_symbol_referencer::set_position (i->second.dot_, i->first);
 
   return SCM_UNSPECIFIED;
 }
index e52e0a7ad9956c48b0bbfac2cb837974b462d15c..28bc190410485799b7a5cbd490b69f04536cc10b 100644 (file)
@@ -68,9 +68,7 @@ Drum_note_performer::stop_translation_timestep ()
   // --> grace notes effectively do not get delayed
   Moment now = now_mom ();
   for (int i = 0; i < notes_.size (); i++)
-    {
-      play_element (notes_[i]);
-    }
+    play_element (notes_[i]);
   notes_.clear ();
   note_evs_.clear ();
 }
index 1a93d23a125cb5d2d68346841ef637ea2451d386..b6021539d25c9f7bd8954a1cf904871205ee6848 100644 (file)
@@ -374,9 +374,7 @@ void
 Dynamic_engraver::acknowledge_slur (Grob_info info)
 {
   if (line_spanner_)
-    {
-      Side_position_interface::add_support (line_spanner_, info.grob ());
-    }
+    Side_position_interface::add_support (line_spanner_, info.grob ());
 }
 
 void
@@ -415,9 +413,7 @@ Dynamic_engraver::acknowledge_note_column (Grob_info info)
     }
 
   if (finished_cresc_ && !finished_cresc_->get_bound (RIGHT))
-    {
-      finished_cresc_->set_bound (RIGHT, info.grob ());
-    }
+    finished_cresc_->set_bound (RIGHT, info.grob ());
 }
 
 void
index a786372441601d9cbfcb70efb2106f7961971d26..bd24ffbab2f699a4646bc8c04b7776f1100ca881 100644 (file)
@@ -42,27 +42,23 @@ Note_head::brew_ez_stencil (SCM smob)
       charstr = scm_makfrom0str (s);
     }
 
-  
   SCM letter
-    = Text_interface::interpret_string (me->get_layout()->self_scm (),
+    = Text_interface::interpret_string (me->get_layout ()->self_scm (),
                                        Font_interface::text_font_alist_chain (me),
                                        charstr);
-  
+
   Stencil l (*unsmob_stencil (letter));
   l.align_to (X_AXIS, CENTER);
   l.align_to (Y_AXIS, CENTER);
 
-  
-  l = Stencil (Box (), l.expr ()); 
+  l = Stencil (Box (), l.expr ());
   Real ss = Staff_symbol_referencer::staff_space (me);
   Real lt = Staff_symbol_referencer::line_thickness (me);
 
   Real radius = (ss + lt) / 2.0;
-  Real stem_thick = 1.3 * lt; 
+  Real stem_thick = 1.3 * lt;
   if (Grob *stem = unsmob_grob (me->get_object ("stem")))
-    {
-      stem_thick = Stem::thickness (stem);
-    }
+    stem_thick = Stem::thickness (stem);
 
   int black = (log >= 2);
 
@@ -77,9 +73,7 @@ Note_head::brew_ez_stencil (SCM smob)
                                  SCM_BOOL_T));
   Stencil white_head;
   if (black)
-    {
-      l = l.in_color (1, 1, 1);
-    }
+    l = l.in_color (1, 1, 1);
   else
     {
       white_head = Stencil (extent,
index 0054eb913a90b271bdc1cf9d9672ed055ebd6b85..ff632c7317f09d2dcdad3e2f21cd4cb6f79093a8 100644 (file)
@@ -133,7 +133,6 @@ ADD_TRANSLATOR_GROUP (Engraver_group_engraver,
                      /* read */ "",
                      /* write */ "");
 
-
 void
 Engraver_group_engraver::derived_mark () const
 {
index dc1a240e46076d1656429847fa55a4b750755de8..de656168cb0ce98ab6442aadf44b1b5de9913c3c 100644 (file)
@@ -17,9 +17,7 @@ String
 map_file_name (String s)
 {
   if (file_name_map_global.find (s) != file_name_map_global.end ())
-    {
-      s = file_name_map_global[s];
-    }
+    s = file_name_map_global[s];
   return s;
 }
 
index 83c85691663ee26fec47fd16fb6288ee51ed7c88..6fa52ea3bc6df3111f97ce4fabf9f574168a0e7e 100644 (file)
@@ -46,9 +46,7 @@ void
 Fingering_engraver::acknowledge_stem (Grob_info inf)
 {
   for (int i = 0; i < fingerings_.size (); i++)
-    {
-      Side_position_interface::add_support (fingerings_[i], inf.grob ());
-    }
+    Side_position_interface::add_support (fingerings_[i], inf.grob ());
 }
 
 void
index 97dd639dd94f04a0bd29ec3c32357ccc5685797a..3fa42745f518683af0d26c1ccc27cbd0781d0e29 100644 (file)
@@ -35,9 +35,7 @@ Moment
 Folded_repeat_iterator::pending_moment () const
 {
   if (main_iter_)
-    {
-      return main_iter_->pending_moment ();
-    }
+    return main_iter_->pending_moment ();
   else
     return main_length_mom_ + alternative_iter_->pending_moment ();
 }
@@ -72,9 +70,7 @@ Folded_repeat_iterator::process (Moment m)
     }
 
   if (!main_iter_ && !alternative_iter_)
-    {
-      enter_alternative ();
-    }
+    enter_alternative ();
 
   if (alternative_iter_)
     {
@@ -121,9 +117,7 @@ Music_iterator *
 Folded_repeat_iterator::try_music_in_children (Music *m) const
 {
   if (main_iter_)
-    {
-      return main_iter_->try_music (m);
-    }
+    return main_iter_->try_music (m);
   if (alternative_iter_)
     return alternative_iter_->try_music (m);
   return 0;
index 46a38b9048649d7633df349a28b195d459612fb2..cd21688ad7b0e8e5250c3df315aa74d7193c7c37 100644 (file)
@@ -27,7 +27,6 @@ init_fontconfig ()
   if (!FcInit ())
     error (_ ("initializing FontConfig failed"));
 
-
   font_config_global = FcConfigGetCurrent ();
   Array<String> dirs;
   struct stat statbuf;
index 7d0ea7c6e22c25ab7ac209dfc7594ac37b520f5b..61030405fb7786ec9feb535b5fa5d5a901738374 100644 (file)
@@ -77,9 +77,7 @@ get_font_by_design_size (Output_def *layout, Real requested,
 #endif
     }
   else
-    {
-      fm = unsmob_metrics (scm_force (scm_c_vector_ref (font_vector, i)));
-    }
+    fm = unsmob_metrics (scm_force (scm_c_vector_ref (font_vector, i)));
 
   return find_scaled_font (layout, fm, requested / size);
 }
@@ -114,9 +112,7 @@ select_encoded_font (Output_def *layout, SCM chain)
 #if HAVE_PANGO_FT2
   if (scm_is_string (name)
       && is_pango_format_global)
-    {
-      return select_pango_font (layout, chain);
-    }
+    return select_pango_font (layout, chain);
   else
 #endif
     if (scm_is_string (name))
index 6d57d47769a31df6db0540c5755f77a66c9de236..d0804297916f6921ac7c6b4dbc34183795a430d3 100644 (file)
@@ -233,7 +233,7 @@ LY_DEFINE (ly_output_formats, "ly:output-formats",
 
   SCM lst = SCM_EOL;
   int output_formats_count = output_formats.size ();
-  for (int i = 0; i < output_formats_count; i ++)
+  for (int i = 0; i < output_formats_count; i++)
     lst = scm_cons (scm_makfrom0str (output_formats[i].to_str0 ()), lst);
 
   return lst;
@@ -250,9 +250,7 @@ LY_DEFINE (ly_wchar_to_utf_8, "ly:wide-char->utf-8",
   char *p = buf;
 
   if (wide_char < 0x0080)
-    {
-      *p++ = (char)wide_char;
-    }
+    *p++ = (char)wide_char;
   else if (wide_char < 0x0800)
     {
       *p++ = (char) (((wide_char >> 6)) | 0xC0);
index 424d8664f51a7ec386ea0f72cbd223bb46736261..1f3407cd3d6d12f12464bb5596ab22ba74dc7ee0 100644 (file)
@@ -53,9 +53,7 @@ void
 Glissando_engraver::process_music ()
 {
   if (event_)
-    {
-      line_ = make_spanner ("Glissando", event_->self_scm ());
-    }
+    line_ = make_spanner ("Glissando", event_->self_scm ());
 }
 
 void
@@ -73,9 +71,7 @@ void
 Glissando_engraver::stop_translation_timestep ()
 {
   if (last_line_ && last_line_->get_bound (RIGHT))
-    {
-      last_line_ = 0;
-    }
+    last_line_ = 0;
   if (line_)
     {
       if (last_line_)
index 8a534ef3ca670018ddafe70f0d88a5bc264e3380..3ecc3b9aafa77057379a1c97c314f643ae9b6eba 100644 (file)
@@ -29,9 +29,7 @@ Global_context::Global_context (Output_def *o, Moment final, Object_key *key)
 
   Context_def *globaldef = unsmob_context_def (definition_);
   if (!globaldef)
-    {
-      programming_error ("no `Global' context found");
-    }
+    programming_error ("no `Global' context found");
   else
     globaldef->apply_default_property_operations (this);
   accepts_list_ = scm_list_1 (ly_symbol2scm ("Score"));
index 40710457400ee2126acad0c6d152f18ee6c4b1e0..bb43513e939f0315bf04c79da308d8cf22607e8f 100644 (file)
@@ -210,9 +210,7 @@ provide_context_info (Array<Grob_info> primitives)
 
       if (prefix_set & PES_OR_FLEXA)
        if (!i) // ligature may not start with 2nd head of pes or flexa
-         {
-           primitive->warning (_ ("can't apply `\\~' on first head of ligature"));
-         }
+         primitive->warning (_ ("can't apply `\\~' on first head of ligature"));
        else if (pitch > prev_pitch) // pes
          {
            prev_context_info |= PES_LOWER;
@@ -224,9 +222,7 @@ provide_context_info (Array<Grob_info> primitives)
            context_info |= FLEXA_RIGHT;
          }
        else // (pitch == prev_pitch)
-         {
-           primitive->warning (_ ("can't apply `\\~' on heads with identical pitch"));
-         }
+         primitive->warning (_ ("can't apply `\\~' on heads with identical pitch"));
       if (prev_prefix_set & DEMINUTUM)
        context_info |= AFTER_DEMINUTUM;
 
index f139d2a5ce2a3c20f2792714ce981bd897288907..524be6bf56ec13386ce48b128d895981132fd338 100644 (file)
@@ -29,9 +29,7 @@ Grid_point_engraver::process_music ()
       Moment now = now_mom ();
 
       if (!now.main_part_.mod_rat (mom->main_part_))
-       {
-         make_item ("GridPoint", SCM_EOL);
-       }
+       make_item ("GridPoint", SCM_EOL);
     }
 }
 
index 5ee86a1d1a00fba4b1449f906f55858e24a4efa9..05e6a3425de80465206a89994f6ad994f6a2f4ee 100644 (file)
@@ -105,8 +105,6 @@ grob_list_to_grob_array (SCM lst)
   SCM arr_scm = Grob_array::make_array ();
   Grob_array *ga = unsmob_grob_array (arr_scm);
   for (SCM s = lst; scm_is_pair (s); s = scm_cdr (s))
-    {
-      ga->add (unsmob_grob (scm_car (s)));
-    }
+    ga->add (unsmob_grob (scm_car (s)));
   return arr_scm;
 }
index d40552b6ae60dbbca4aa92af35bd85c526297906..42455fd11a6d791abe4a89551cd2a25e5909ed83 100644 (file)
@@ -93,9 +93,7 @@ Grob_pq_engraver::stop_translation_timestep ()
   SCM start_busy = get_property ("busyGrobs");
   SCM busy = start_busy;
   while (scm_is_pair (busy) && *unsmob_moment (scm_caar (busy)) == now)
-    {
-      busy = scm_cdr (busy);
-    }
+    busy = scm_cdr (busy);
 
   started_now_.sort (Grob_pq_entry::compare);
   SCM lst = SCM_EOL;
index 8cb3243f4bf454d32ee777712b57f8a781a72b26..bf1663e530e8527094dfc28b96af89bc3ea96cb5 100644 (file)
@@ -42,9 +42,7 @@ Grob::add_to_list_property (SCM sym, SCM thing)
     = scm_sloppy_assq (sym, mutable_property_alist_);
 
   if (handle != SCM_BOOL_F)
-    {
-      scm_set_cdr_x (handle, scm_cons (thing, scm_cdr (handle)));
-    }
+    scm_set_cdr_x (handle, scm_cons (thing, scm_cdr (handle)));
   else
     {
       /*
@@ -60,7 +58,6 @@ Grob::add_to_list_property (SCM sym, SCM thing)
     }
 }
 
-
 extern void check_interfaces_for_property (Grob const *me, SCM sym);
 
 void
@@ -97,15 +94,12 @@ Grob::internal_set_property (SCM sym, SCM v)
 //#define PROFILE_PROPERTY_ACCESSES
 
 
-
 SCM
 Grob::internal_get_property (SCM sym) const
 {
 #ifndef NDEBUG
   if (profile_property_accesses)
-    {
-      note_property_access (&grob_property_lookup_table, sym);
-    }
+    note_property_access (&grob_property_lookup_table, sym);
 #endif
 
   SCM s = scm_sloppy_assq (sym, mutable_property_alist_);
@@ -126,7 +120,6 @@ Grob::internal_get_property (SCM sym) const
   return (s == SCM_BOOL_F) ? SCM_EOL : scm_cdr (s);
 }
 
-
 void
 Grob::internal_set_object (SCM s, SCM v)
 {
index 344612c8f83d1fa44b337e2a5927be742be45e8d..4480d4f990b209200c72e8a20677ec00e639793b 100644 (file)
@@ -249,7 +249,6 @@ LY_DEFINE (ly_grob_key, "ly:grob-key",
   return me->get_key ()->self_scm ();
 }
 
-
 LY_DEFINE (ly_grob_default_font, "ly:grob-default-font",
           1, 0, 0, (SCM grob),
           "Return the default font for grob @var{gr}.")
index 4ace057b8851f136d6afc7fe49fcac2243d479dd..1343cea45381eb8044323807ee226ef94c453fb2 100644 (file)
@@ -66,15 +66,11 @@ Grob::Grob (SCM basicprops,
     We always get a new key object for a new grob.
   */
   if (key_)
-    {
-      ((Object_key *)key_)->unprotect ();
-    }
+    ((Object_key *)key_)->unprotect ();
 
   SCM meta = get_property ("meta");
   if (scm_is_pair (meta))
-    {
-      interfaces_ = scm_cdr (scm_assoc (ly_symbol2scm ("interfaces"), meta));
-    }
+    interfaces_ = scm_cdr (scm_assoc (ly_symbol2scm ("interfaces"), meta));
 
   /* TODO:
 
@@ -142,9 +138,7 @@ Grob::Grob (Grob const &s, int copy_index)
 
   smobify_self ();
   if (key_)
-    {
-      ((Object_key *)key_)->unprotect ();
-    }
+    ((Object_key *)key_)->unprotect ();
 }
 
 Grob::~Grob ()
@@ -170,9 +164,7 @@ robust_relative_extent (Grob *me, Grob *refp, Axis a)
 {
   Interval ext = me->extent (refp, a);
   if (ext.is_empty ())
-    {
-      ext.add_point (me->relative_coordinate (refp, a));
-    }
+    ext.add_point (me->relative_coordinate (refp, a));
 
   return ext;
 }
index 1b3fbd4a201a792517c7c62e4dbdd9beb73579ce..6e9591130ce35bb23f53abf373dd153a1c906e5d 100644 (file)
@@ -39,9 +39,7 @@ Hairpin::after_line_breaking (SCM smob)
   if (broken[LEFT]
       && ly_is_equal (bounds[RIGHT]->get_column ()->get_property ("when"),
                      bounds[LEFT]->get_property ("when")))
-    {
-      me->suicide ();
-    }
+    me->suicide ();
   return SCM_UNSPECIFIED;
 }
 
index a96fe9a226da537aebbe1f82da05e83a1f6f4f73..28043337ff6e5b79665b1946144f703eeeea4069 100644 (file)
@@ -38,9 +38,7 @@ Hara_kiri_group_spanner::consider_suicide (Grob *me)
 
   if (!to_boolean (me->get_property ("remove-first"))
       && broken_spanner_index (sp) == 0)
-    {
-      return;
-    }
+    return;
 
   Link_array<Grob> childs;
   Axis_group_interface::get_children (me, &childs);
index 4046ab06d0a822dc2d7175a2e518c0ca7ab95e1e..b773242809d6affde510471309c282faef570a26 100644 (file)
@@ -104,18 +104,14 @@ void
 Hyphen_engraver::process_music ()
 {
   if (ev_)
-    {
-      hyphen_ = make_spanner ("LyricHyphen", ev_->self_scm ());
-    }
+    hyphen_ = make_spanner ("LyricHyphen", ev_->self_scm ());
 }
 
 void
 Hyphen_engraver::stop_translation_timestep ()
 {
   if (finished_hyphen_ && finished_hyphen_->get_bound (RIGHT))
-    {
-      finished_hyphen_ = 0;
-    }
+    finished_hyphen_ = 0;
 
   if (finished_hyphen_ && hyphen_)
     {
index a8993b93713dd4dbaf9b914c861d3062dd0558ac..0ab69e1aafcd030230c9b632e7dc7014741a12ba 100644 (file)
@@ -42,7 +42,6 @@ protected:
   */
   SCM interfaces_;
 
-
   /* BARF */
   friend class Spanner;
   friend SCM ly_grob_properties (SCM);
index 0f92293a4d25b99b48bcd1b40c55b09f73ebde51..eaa638ee00aa1c5dbad34051245cb3e9540a3fba 100644 (file)
@@ -171,5 +171,4 @@ inline SCM ly_cdr (SCM x) { return SCM_CDR (x); }
 inline bool ly_is_pair (SCM x) { return SCM_I_CONSP (x); }
 
 
-
 #endif /* LILY_GUILE_HH */
index 5e7d39e78ad7145729818f2f96f11566feba4372..76275cfab9224f5b3153cc137cd178099a458413 100644 (file)
@@ -175,5 +175,4 @@ typedef void (*Engraver_void_function_engraver_grob_info) (Engraver *, Grob_info
 typedef void (*Translator_void_method_ptr) (Translator *);
 
 
-
 #endif /* LILY_PROTO_HH */
index ba13af355e2540c5290934738f6e6f76f75ab9db..217bc4aaf1aebdae78f13ed33a68a8d5c54371bf 100644 (file)
@@ -36,6 +36,5 @@ Link_array<Item> internal_extract_item_array (Grob const *elt, SCM symbol);
 #define extract_item_set(grob, prop, set)                              \
   Link_array<Item> set (internal_extract_item_array (grob, ly_symbol2scm (prop)))
 
-
 #endif /* POINTER_GROUP_INTERFACE_HH */
 
index c307d8812244dfe3a859d7a6a86f30a8b82da5c1..20233e7ab4e45fbb8b082c2ac2af9d8c6d24efea 100644 (file)
@@ -20,5 +20,4 @@ extern bool profile_property_accesses;
 SCM ly_get_option (SCM);
 SCM ly_set_option (SCM, SCM);
 
-
 #endif /* SCM_OPTION_HH */
index bf6e37168f33022734cf617408833940b089167f..7a669e113bd1993822aae1f1a1ed4307ce764b7c 100644 (file)
@@ -83,7 +83,8 @@ void recurse_over_translators (Context *c, Translator_method ptr,
 void precomputed_recurse_over_translators (Context *c, Translator_precompute_index idx, Direction dir);
 Translator_group *get_translator_group (SCM sym);
 
-#define ADD_TRANSLATOR_GROUP(classname, desc, grobs, accepted, read, write)
+#define foobar
+#define ADD_TRANSLATOR_GROUP(classname, desc, grobs, accepted, read, write) foobar
 
 DECLARE_UNSMOB (Translator_group, translator_group);
 
index 462a287f55465deab43e977b4d890e5252f8f5fe..6895d6890b2f92375b22033dad27762349c4146b 100644 (file)
@@ -105,6 +105,5 @@ generic_get_acknowledger (SCM sym,
   ADD_SCM_INIT_FUNC (CLASS ## NAME ## _ack_adder_initclass, CLASS ## NAME ## _ack_adder);
 
 
-
 #endif /* TRANSLATOR_ICC */
 
index a5a6a7c2898cb4c96c7d17755e9c2383b1095af3..b0d2557da82346e0e53898d1b3414fd6f7f24502 100644 (file)
@@ -128,9 +128,7 @@ Key_engraver::acknowledge_clef (Grob_info info)
   (void)info;
   SCM c = get_property ("createKeyOnClefChange");
   if (to_boolean (c))
-    {
-      create_key (false);
-    }
+    create_key (false);
 }
 
 void
@@ -138,9 +136,7 @@ Key_engraver::acknowledge_bar_line (Grob_info info)
 {
   (void)info;
   if (scm_is_pair (get_property ("keySignature")))
-    {
-      create_key (true);
-    }
+    create_key (true);
 }
 
 void
index f9afd63b274aaa38c22438902bde2b51cafded07..50fd46b171ec156e2aeaf386ea44a75fd391a7ce 100644 (file)
@@ -89,9 +89,7 @@ bool
 Key_performer::try_music (Music *ev)
 {
   if (!key_ev_)
-    {
-      key_ev_ = ev;
-    }
+    key_ev_ = ev;
 
   return true;
 }
index 62f3a82a7cab310eef17294935bf75b4d217142c..d374c59b2a3a0d88a6beff90ccc9b815502e680e 100644 (file)
@@ -93,13 +93,9 @@ Key_signature_interface::print (SCM smob)
   SCM scm_style = me->get_property ("style");
   String style;
   if (scm_is_symbol (scm_style))
-    {
-      style = ly_symbol2string (scm_style);
-    }
+    style = ly_symbol2string (scm_style);
   else
-    {
-      style = "";
-    }
+    style = "";
 
   SCM newas = me->get_property ("alteration-alist");
   Stencil mol;
@@ -124,9 +120,7 @@ Key_signature_interface::print (SCM smob)
       Stencil acc (fm->find_by_name ("accidentals." + font_char));
 
       if (acc.is_empty ())
-       {
-         me->warning (_f ("accidental `%s' not found", font_char));
-       }
+       me->warning (_f ("accidental `%s' not found", font_char));
       else
        {
          SCM what = scm_caar (s);
index 378ad4e1683cfc9057b185d5647ef153faace639..70c84e59e2a6bfc9719f08dd62d41a171ba51444 100644 (file)
@@ -16,9 +16,7 @@ int tabcmp (Keyword_ent const &p1, Keyword_ent const &p2)
 Keyword_table::Keyword_table (Keyword_ent *tab)
 {
   while (tab->name_)
-    {
-      table_.push (*tab++);
-    }
+    table_.push (*tab++);
 
   table_.sort (tabcmp);
 }
index 0d53cbb3b7fad2302b462a22b5ba70f699b7dbde..cd975b71e98c8f72244ee7e380b44b9210f03ee3 100644 (file)
@@ -147,9 +147,7 @@ Ligature_engraver::process_music ()
        }
 
       if (!last_bound_)
-       {
-         events_drul_[STOP]->origin ()->warning (_ ("no right bound"));
-       }
+       events_drul_[STOP]->origin ()->warning (_ ("no right bound"));
       else
        ligature_->set_bound (RIGHT, last_bound_);
 
@@ -181,15 +179,11 @@ Ligature_engraver::process_music ()
       brew_ligature_primitive_proc
        = ligature_->get_property ("ligature-primitive-callback");
       if (brew_ligature_primitive_proc == SCM_EOL)
-       {
-         programming_error ("Ligature_engraver: ligature-primitive-callback undefined");
-       }
+       programming_error ("Ligature_engraver: ligature-primitive-callback undefined");
 
       Grob *bound = unsmob_grob (get_property ("currentMusicalColumn"));
       if (!bound)
-       {
-         events_drul_[START]->origin ()->warning (_ ("no left bound"));
-       }
+       events_drul_[START]->origin ()->warning (_ ("no left bound"));
       else
        ligature_->set_bound (LEFT, bound);
 
index d223d59612c67ba24969d745beef901c0fc4421f..f0f90afa65fbb698989fa382c52fd322d78e478d 100644 (file)
@@ -145,7 +145,7 @@ ly_scm2newstr (SCM str, size_t *lenp)
 
       if (lenp)
        *lenp = len;
-      
+
       return new_str;
     }
   return 0;
@@ -154,7 +154,7 @@ ly_scm2newstr (SCM str, size_t *lenp)
 SCM
 index_get_cell (SCM s, Direction d)
 {
-  
+
   assert (d);
   return (d == LEFT) ? scm_car (s) : scm_cdr (s);
 }
@@ -168,7 +168,7 @@ index_set_cell (SCM s, Direction d, SCM v)
     scm_set_cdr_x (s, v);
   return s;
 }
-  
+
 bool
 is_number_pair (SCM p)
 {
@@ -329,7 +329,6 @@ ly_deep_copy (SCM src)
   return src;
 }
 
-
 /* looks the key up in the cdrs of the alist-keys
    - ignoring the car and ignoring non-pair keys.
    Returns first match found, i.e.
@@ -686,9 +685,7 @@ ly_alist_vals (SCM alist)
 {
   SCM x = SCM_EOL;
   for (SCM p = alist; scm_is_pair (p); p = scm_cdr (p))
-    {
-      x = scm_cons (scm_cdar (p), x);
-    }
+    x = scm_cons (scm_cdar (p), x);
   return x;
 }
 
index 8a331e263aefe913812490e1a7c1b87af0f4f284..ad16d150e52c680d8fddaac034f0dc4259a14555 100644 (file)
@@ -144,9 +144,7 @@ Lily_lexer::add_scope (SCM module)
     start_module_ = scm_current_module ();
 
   for (SCM s = scopes_; scm_is_pair (s); s = scm_cdr (s))
-    {
-      ly_use_module (module, scm_car (s));
-    }
+    ly_use_module (module, scm_car (s));
   scopes_ = scm_cons (module, scopes_);
 
   set_current_scope ();
@@ -269,7 +267,7 @@ Lily_lexer::escaped_char (char c) const
 Input
 Lily_lexer::here_input () const
 {
-  return Input(*lexloc);
+  return Input (*lexloc);
 }
 
 void
index cc9fce2f569c9ba6c08d86b46f36d9c27dd98b37..4e3d6c58cba621597db4fdc90382938f8dd44246 100644 (file)
@@ -85,9 +85,7 @@ void
 Lily_parser::parse_file (String init, String name, String out_name)
 {
   if (output_backend_global == "tex")
-    {
-      try_load_text_metrics (out_name);
-    }
+    try_load_text_metrics (out_name);
 
   // TODO: use $parser 
   lexer_->set_identifier (ly_symbol2scm ("parser"),
index 3996b42c5ebfe8252f720725d963bd9115575e5f..80db99522595fec08e13bef902572dd7f2e30ef3 100644 (file)
@@ -21,7 +21,7 @@ Lilypond_version::Lilypond_version (String str)
 {
   Array<String> version;
   version = String_convert::split (str, '.');
-  
+
   major_ = version[0].to_int ();
   minor_ = version[1].to_int ();
   patch_ = 0;
index 14efd34fe54c8e105685be2b79e6e53ac50a4f9a..91e67d1510e1fa09368bd0de640c1f234c602c5d 100644 (file)
@@ -96,9 +96,7 @@ Lookup::dashed_slur (Bezier b, Real thick, Real dash_period, Real dash_fraction)
   Real off = dash_period - on;
 
   for (int i = 4; i--;)
-    {
-      l = scm_cons (ly_offset2scm (b.control_[i]), l);
-    }
+    l = scm_cons (ly_offset2scm (b.control_[i]), l);
 
   SCM at = (scm_list_n (ly_symbol2scm ("dashed-slur"),
                        scm_from_double (thick),
@@ -172,13 +170,9 @@ Stencil
 Lookup::round_filled_box (Box b, Real blotdiameter)
 {
   if (b.x ().length () < blotdiameter)
-    {
-      blotdiameter = b.x ().length ();
-    }
+    blotdiameter = b.x ().length ();
   if (b.y ().length () < blotdiameter)
-    {
-      blotdiameter = b.y ().length ();
-    }
+    blotdiameter = b.y ().length ();
 
   SCM at = (scm_list_n (ly_symbol2scm ("round-filled-box"),
                        scm_from_double (-b[X_AXIS][LEFT]),
@@ -381,9 +375,7 @@ Lookup::slur (Bezier curve, Real curvethick, Real linethick)
   int indices[] = {5, 6, 7, 4, 1, 2, 3, 0};
   SCM list = SCM_EOL;
   for (int i = 8; i--;)
-    {
-      list = scm_cons (scontrols[indices[i]], list);
-    }
+    list = scm_cons (scontrols[indices[i]], list);
 
   SCM at = (scm_list_n (ly_symbol2scm ("bezier-sandwich"),
                        ly_quote_scm (list),
@@ -662,7 +654,6 @@ Lookup::repeat_slash (Real w, Real s, Real t)
   Offset p1 (0, 0);
   Offset p2 (w, w * s);
 
-
   return Lookup::round_filled_polygon (points, blotdiameter);
 #endif
 
index 87ac7987887b0dbce285485fab3570fde2187daa..afa97ae663f6afdd7366e275d98b7ce8dbd6f12c 100644 (file)
@@ -81,7 +81,6 @@ ly_use_module (SCM mod, SCM used)
 
 #define FUNC_NAME __FUNCTION__
 
-
 static SCM
 accumulate_symbol (void *closure, SCM key, SCM val, SCM result)
 {
@@ -136,7 +135,6 @@ ly_reexport_module (SCM mod)
   ly_export (mod, ly_module_symbols (mod));
 }
 
-
 #ifdef MODULE_GC_KLUDGE
 static SCM
 redefine_keyval (void *closure, SCM key, SCM val, SCM result)
index d2f3a66436c379cc78539044c6bd5010c37b8aa6..8aba4701fe4fa6906b9ebd36e2afcd29ffb294da 100644 (file)
@@ -307,11 +307,11 @@ dir_name (String const file_name)
 #endif
 
 #ifdef __MINGW32__
-#  include <winbase.h>
+#include <winbase.h>
 #endif
 
 static void
-setup_paths (char constargv0)
+setup_paths (char const *argv0)
 {
   prefix_directory = LILYPOND_DATADIR;
 
@@ -396,9 +396,7 @@ setup_paths (char const* argv0)
   struct stat statbuf;
   String builddir = prefix_directory + "/mf/out/";
   if (stat (builddir.to_str0 (), &statbuf) == 0)
-    {
-      dirs.push (builddir.to_str0 ());
-    }
+    dirs.push (builddir.to_str0 ());
   else
     {
       dirs.push (prefix_directory + "/fonts/otf/");
@@ -507,7 +505,6 @@ do_chroot_jail ()
 }
 #endif
 
-
 static void
 main_with_guile (void *, int, char **)
 {
@@ -670,7 +667,7 @@ parse_argv (int argc, char **argv)
          warranty ();
          exit (0);
          break;
-         
+
        case 'b':
          output_backend_global = option_parser->optional_argument_str0_;
          break;
@@ -678,7 +675,7 @@ parse_argv (int argc, char **argv)
        case 'f':
          output_format_global = option_parser->optional_argument_str0_;
          break;
-         
+
        case 'H':
          dump_header_fieldnames_global
            .push (option_parser->optional_argument_str0_);
index fbd407c513219be6be51cf7b2f2958090b23b9d3..e7b6bea5ea7ecd782edbf0e0bc46658b634f3bf7 100644 (file)
@@ -42,9 +42,7 @@ void
 Measure_grouping_engraver::acknowledge_note_column (Grob_info gi)
 {
   if (grouping_)
-    {
-      Side_position_interface::add_support (grouping_, gi.grob ());
-    }
+    Side_position_interface::add_support (grouping_, gi.grob ());
 }
 
 void
index 9918b5051b05a2c81e42e6d0c9282000f98e09ad..5bb983d37f8e0dd6e1ea003622d2d32a01c68390 100644 (file)
@@ -38,13 +38,9 @@ Measure_grouping::print (SCM grob)
     TODO: use line interface
   */
   if (which == ly_symbol2scm ("bracket"))
-    {
-      m = Lookup::bracket (X_AXIS, iv, t, -height, t);
-    }
+    m = Lookup::bracket (X_AXIS, iv, t, -height, t);
   else if (which == ly_symbol2scm ("triangle"))
-    {
-      m = Lookup::triangle (iv, t, height);
-    }
+    m = Lookup::triangle (iv, t, height);
 
   m.align_to (Y_AXIS, DOWN);
   m.translate_axis (- me->relative_coordinate (common, X_AXIS), X_AXIS);
index fbe0aa3befd50d6c04d3900be0dada668fcab603..ca2ea36638aa35f3b5b3d8349f14426dad9eb738 100644 (file)
@@ -29,9 +29,7 @@ bool
 Melisma_translator::try_music (Music *m)
 {
   if (m->is_mus_type ("melisma-playing-event"))
-    {
-      return melisma_busy (context ());
-    }
+    return melisma_busy (context ());
   else if (m->is_mus_type ("melisma-span-event"))
     {
       event_ = m;
index f7396f582d1843c4075e855ce713314ea01fa636..add51960b9b2a3fe990b43cc0ddecc195eec33b1 100644 (file)
@@ -106,9 +106,7 @@ internal_brew_primitive (Grob *me)
   Real width = 0.0;
   Real staff_space = Staff_symbol_referencer::staff_space (me);
   if (primitive & MLP_ANY)
-    {
-      thickness = robust_scm2double (me->get_property ("thickness"), .14);
-    }
+    thickness = robust_scm2double (me->get_property ("thickness"), .14);
 
   if (primitive & MLP_FLEXA)
     {
@@ -118,9 +116,7 @@ internal_brew_primitive (Grob *me)
        = robust_scm2double (me->get_property ("flexa-width"), 2.0 * staff_space);
     }
   if (primitive & MLP_SINGLE_HEAD)
-    {
-      width = robust_scm2double (me->get_property ("head-width"), staff_space);
-    }
+    width = robust_scm2double (me->get_property ("head-width"), staff_space);
 
   switch (primitive & MLP_ANY)
     {
@@ -193,9 +189,7 @@ internal_brew_primitive (Grob *me)
          out.add_stencil (join);
        }
       else
-       {
-         programming_error (_f ("Mensural_ligature: (join_right == 0)"));
-       }
+       programming_error (_f ("Mensural_ligature: (join_right == 0)"));
     }
 
 #if 0 /* what happend with the ledger lines? */
index 4d712f7ed3b37bc649d36d88d2ca768216ccdf9e..e7c3539f16c7d0c2a2962910bdd62cc7c99bcb07 100644 (file)
@@ -28,9 +28,7 @@ get_tempo (Output_def *def,
       wholes_per_min /= 4;
     }
   else
-    {
-      wholes_per_min /= *w;
-    }
+    wholes_per_min /= *w;
 
   int beats_per_min = int ((wholes_per_min / one_beat_mom).main_part_);
   return int (beats_per_min);
index 501bb66f2dbdc384b02858aa0b74f2417e5d140e..4e6605d5308f5f4817b13f1155062c795c1a5db6 100644 (file)
@@ -116,7 +116,7 @@ Midi_header::Midi_header (int format_i, int tracks_i, int clocks_per_4_i)
 
   String format_string = String_convert::int2hex (format_i, 4, '0');
   str += String_convert::hex2bin (format_string);
-       
+
   String tracks_string = String_convert::int2hex (tracks_i, 4, '0');
   str += String_convert::hex2bin (tracks_string);
 
@@ -203,7 +203,7 @@ Midi_key::to_string () const
   return String_convert::hex2bin (str);
 }
 
-Midi_time_signature::Midi_time_signature (Audio_time_signaturea)
+Midi_time_signature::Midi_time_signature (Audio_time_signature *a)
 {
   audio_ = a;
   clocks_per_1_ = 18;
@@ -217,13 +217,13 @@ Midi_time_signature::to_string () const
 
   String str = "ff5804";
   str += String_convert::int2hex (num, 2, '0');
-  str += String_convert::int2hex (intlog2 (den) , 2, '0');
+  str += String_convert::int2hex (intlog2 (den), 2, '0');
   str += String_convert::int2hex (clocks_per_1_, 2, '0');
   str += String_convert::int2hex (8, 2, '0');
   return String_convert::hex2bin (str);
 }
 
-Midi_note::Midi_note (Audio_notea)
+Midi_note::Midi_note (Audio_note *a)
 {
   audio_ = a;
   dynamic_byte_ = 0x7f;
@@ -388,7 +388,7 @@ Midi_tempo::to_string () const
   return String_convert::hex2bin (str);
 }
 
-Midi_text::Midi_text (Audio_texta)
+Midi_text::Midi_text (Audio_text *a)
 {
   audio_ = a;
 }
index af634bf2c09ddb0d48caa3e30c4fb3168c8bdfaa..87a1b581d3f7d99dba15e837e304ff33eea51749 100644 (file)
@@ -64,7 +64,7 @@ Midi_stream::operator << (Midi_item const &midi_c_r)
   return operator << (str);
 }
 
-Midi_stream&
+Midi_stream &
 Midi_stream::operator << (int i)
 {
   // output binary string ourselves
index 57e5ac499390b7de56901e2f661e46bd3a729749..21eee4e3f97ea3e126276879247da5b92839d870 100644 (file)
@@ -131,9 +131,7 @@ Midi_walker::output_event (Moment now_mom, Midi_item *l)
     start with graces
   */
   if (delta_t < Moment (0))
-    {
-      delta_t = Moment (0);
-    }
+    delta_t = Moment (0);
 
   track_->add (delta_t, l);
 }
index 3001ed89f7023bac38f47f6473e21d0e99a6ed34..5a616198aad4bf9b830d702f00b228f059999c08 100644 (file)
@@ -115,60 +115,60 @@ Modified_font_metric::tex_kludge (String text) const
          /* Accent marks use width of base letter */
          if (i +1 < text.length ())
            {
-             if (text[i + 1]=='\'' || text[i + 1]=='`' || text[i+1]=='"'
-                 || text[i+1]=='^')
+             if (text[i + 1]=='\'' || text[i + 1]=='`' || text[i + 1]=='"'
+                 || text[i + 1]=='^')
                {
                  i++;
                  break;
                }
              /* For string width \\ is a \ and \_ is a _. */
-             if (text[i + 1]=='\\' || text[i+1]=='_')        
+             if (text[i + 1]=='\\' || text[i + 1]=='_')
                break;
            }
-         
-         for (i++; (i < text.length ()) && !isspace (text[i]) 
+
+         for (i++; (i < text.length ()) && !isspace (text[i])
                 && text[i]!='{' && text[i]!='}'; i++)
            ;
-         
+
          /* Compensate for the auto-increment in the outer loop. */
          i--;
          break;
 
-       case '{':  // Skip '{' and '}'
+       case '{': // Skip '{' and '}'
        case '}':
          break;
-       
-       default: 
+
+       default:
          Box b = get_ascii_char ((unsigned char)text[i]);
-         
+
          /* Use the width of 'x' for unknown characters */
          if (b[X_AXIS].length () == 0)
            b = get_ascii_char ((unsigned char)'x');
-         
+
          w += b[X_AXIS].length ();
          ydims.unite (b[Y_AXIS]);
          break;
        }
     }
-  
+
   if (ydims.is_empty ())
     ydims = Interval (0, 0);
-  
+
   return Box (Interval (0, w), ydims);
 }
 
 Stencil
 Modified_font_metric::text_stencil (String text) const
 {
-  Box b; 
-  if (Pango_font * pf = dynamic_cast<Pango_font*> (orig_))
+  Box b;
+  if (Pango_font *pf = dynamic_cast<Pango_font *> (orig_))
     {
       Stencil stc = pf->text_stencil (text);
 
       Box b = stc.extent_box ();
 
       b.scale (magnification_);
-      Stencil scaled(b, stc.expr());
+      Stencil scaled (b, stc.expr ());
       return scaled;
     }
 
@@ -182,7 +182,7 @@ Modified_font_metric::text_dimension (String text) const
   Box b = lookup_tex_text_dimension (orig_, stext);
   if (!b[Y_AXIS].is_empty ())
     {
-      b.scale (magnification_); 
+      b.scale (magnification_);
       return b;
     }
 
index a8d23fa42834703763745b400638ef56eb01aa27..90c3a2da2c47550f01f005a75c8285a3e1ebc6e1 100644 (file)
@@ -158,9 +158,7 @@ Moment::to_string () const
 {
   String s = main_part_.to_string ();
   if (grace_part_)
-    {
-      s += "G" + grace_part_.to_string ();
-    }
+    s += "G" + grace_part_.to_string ();
   return s;
 }
 
index ec69a437d312330adebb9d05d52db50164a0851d..f5b782d0ad9cd67e6efc5ba2c25516817d6181d4 100644 (file)
@@ -186,9 +186,7 @@ void
 Multi_measure_rest_engraver::start_translation_timestep ()
 {
   if (now_mom ().main_part_ >= stop_moment_.main_part_)
-    {
-      rest_ev_ = 0;
-    }
+    rest_ev_ = 0;
 
   Moment mp (robust_scm2moment (get_property ("measurePosition"), Moment (0)));
 
@@ -212,9 +210,7 @@ Multi_measure_rest_engraver::start_translation_timestep ()
       SCM sml = get_property ("measureLength");
       Rational ml = (unsmob_moment (sml)) ? unsmob_moment (sml)->main_part_ : Rational (1);
       if (ml >= Rational (2))
-       {
-         last_rest_->set_property ("use-breve-rest", SCM_BOOL_T);
-       }
+       last_rest_->set_property ("use-breve-rest", SCM_BOOL_T);
 
       mmrest_ = 0;
       numbers_.clear ();
index f7741706849709bba3e861c9a9fc4b014e6aaf26..bacb18e3c1c517114833e5471a8d85436bef0d7c 100644 (file)
@@ -100,9 +100,7 @@ Multi_measure_rest::print (SCM smob)
   int measures = 0;
   SCM m (me->get_property ("measure-count"));
   if (scm_is_number (m))
-    {
-      measures = scm_to_int (m);
-    }
+    measures = scm_to_int (m);
 
   mol.translate_axis (x_off, X_AXIS);
   return mol.smobbed_copy ();
@@ -114,9 +112,7 @@ Multi_measure_rest::symbol_stencil (Grob *me, Real space)
   int measures = 0;
   SCM m (me->get_property ("measure-count"));
   if (scm_is_number (m))
-    {
-      measures = scm_to_int (m);
-    }
+    measures = scm_to_int (m);
   if (measures <= 0)
     return Stencil ();
 
@@ -162,9 +158,7 @@ Multi_measure_rest::symbol_stencil (Grob *me, Real space)
        }
     }
   else
-    {
-      return church_rest (me, musfont, measures, space);
-    }
+    return church_rest (me, musfont, measures, space);
 }
 
 /*
index b016e6e5aaea52b1099198446ec2e6ffbde426ed..022573f675f2026cf3595d7d6e1e358412fb493b 100644 (file)
@@ -238,9 +238,7 @@ bool
 is_child_context (Context *me, Context *child)
 {
   while (child && child != me)
-    {
-      child = child->get_parent_context ();
-    }
+    child = child->get_parent_context ();
 
   return child == me;
 }
index 114f42e645fbddea0045ae256d48b3cee16d5e19..f796a451bcd2865f656d3cf5edab3328f24ef9af 100644 (file)
@@ -42,9 +42,7 @@ LY_DEFINE (ly_music_set_property, "ly:music-set-property!",
 
   bool ok = type_check_assignment (sym, val, ly_symbol2scm ("music-type?"));
   if (ok)
-    {
-      sc->internal_set_property (sym, val);
-    }
+    sc->internal_set_property (sym, val);
 
   return SCM_UNSPECIFIED;
 }
index 33cd06ca5fe9fa2e2c58b328baca92614a2cabc4..906419405fed1cdf41b3bc22818eeaf7f88cce81 100644 (file)
@@ -119,9 +119,7 @@ Music_sequence::minimum_start (SCM l)
   Moment m;
 
   for (SCM s = l; scm_is_pair (s); s = scm_cdr (s))
-    {
-      m = min (m, unsmob_music (scm_car (s))->start_mom ());
-    }
+    m = min (m, unsmob_music (scm_car (s))->start_mom ());
   return m;
 }
 
index e8e054311d5f12be0ae5e20af6232b1ec873c2b7..8ab9028da0944fa10db69672fd792c1b549d4e59 100644 (file)
@@ -36,13 +36,9 @@ Music::name () const
 {
   SCM nm = get_property ("name");
   if (scm_is_symbol (nm))
-    {
-      return ly_symbol2string (nm);
-    }
+    return ly_symbol2string (nm);
   else
-    {
-      return classname (this);
-    }
+    return classname (this);
 }
 
 Music::Music (SCM init)
@@ -54,9 +50,7 @@ Music::Music (SCM init)
 
   length_callback_ = get_property ("length-callback");
   if (!ly_is_procedure (length_callback_))
-    {
-      length_callback_ = duration_length_callback_proc;
-    }
+    length_callback_ = duration_length_callback_proc;
 
   start_callback_ = get_property ("start-callback");
 }
@@ -256,9 +250,7 @@ Music::transpose (Pitch delta)
   */
   SCM pa = get_property ("pitch-alist");
   if (scm_is_pair (pa))
-    {
-      set_property ("pitch-alist", ly_transpose_key_alist (pa, delta.smobbed_copy ()));
-    }
+    set_property ("pitch-alist", ly_transpose_key_alist (pa, delta.smobbed_copy ()));
 }
 
 IMPLEMENT_TYPE_P (Music, "ly:music?");
@@ -332,8 +324,6 @@ Music::duration_length_callback (SCM m)
 
   Moment mom;
   if (d)
-    {
-      mom = d->get_length ();
-    }
+    mom = d->get_length ();
   return mom.smobbed_copy ();
 }
index 5cde4e519a2e69cfe3b0704ce65017a5db6bf18a..dc55d8e7f3d51464774914918317f88ba365465c 100644 (file)
@@ -79,9 +79,7 @@ New_fingering_engraver::acknowledge_rhythmic_head (Grob_info inf)
       if (m->is_mus_type ("fingering-event"))
        add_fingering (inf.grob (), m, note_ev);
       else if (m->is_mus_type ("text-script-event"))
-       {
-         m->origin ()->warning (_ ("can't add text scripts to individual note heads"));
-       }
+       m->origin ()->warning (_ ("can't add text scripts to individual note heads"));
       else if (m->is_mus_type ("script-event"))
        add_script (inf.grob (), m, note_ev);
       else if (m->is_mus_type ("string-number-event"))
@@ -204,9 +202,7 @@ New_fingering_engraver::position_scripts (SCM orientations,
     positioning the fingerings, setting both X and Y coordinates.
   */
   for (int i = 0; i < scripts->size (); i++)
-    {
-      (*scripts)[i].position_ = scm_to_int ((*scripts)[i].head_->get_property ("staff-position"));
-    }
+    (*scripts)[i].position_ = scm_to_int ((*scripts)[i].head_->get_property ("staff-position"));
 
   for (int i = scripts->size (); i--;)
     for (int j = heads_.size (); j--;)
index 2e2c167e5d9db74fb67f8c46985de7ff765e4698..cbb4d07a7479500e65addc75bc41ead3373e71b6 100644 (file)
@@ -335,9 +335,7 @@ Note_collision_interface::do_shifts (Grob *me)
     }
 
   for (int i = 0; i < amounts.size (); i++)
-    {
-      done[i]->translate_axis (amounts[i] - left_most, X_AXIS);
-    }
+    done[i]->translate_axis (amounts[i] - left_most, X_AXIS);
 }
 
 Drul_array < Link_array<Grob>
index 98b58a6f91f2dd2ed1260784db3b156c8a60e245..10707aeaa9b9621f77eb26a10455ef9c67e72ddd 100644 (file)
@@ -34,9 +34,7 @@ internal_print (Grob *me, String *font_char)
 {
   SCM style = me->get_property ("style");
   if (!scm_is_symbol (style))
-    {
-      style = ly_symbol2scm ("default");
-    }
+    style = ly_symbol2scm ("default");
 
   SCM log = scm_from_int (Note_head::get_balltype (me));
   String suffix = to_string (min (robust_scm2int (me->get_property ("duration-log"), 2), 2));
@@ -69,9 +67,7 @@ internal_print (Grob *me, String *font_char)
       out = Stencil (Box (Interval (0, 0), Interval (0, 0)), SCM_EOL);
     }
   else
-    {
-      *font_char = idx;
-    }
+    *font_char = idx;
 
   return out;
 }
index 1e16c1414c369969f092903d64c55ffcbcb4dc9a..c5731ab396150f8ed63d70850e8ab15a143a1fe6 100644 (file)
@@ -80,9 +80,7 @@ Note_heads_engraver::process_music ()
 #if 0 /* TODO: should have a mechanism to switch off these warnings. */
 
       if (!pit)
-       {
-         ev->origin ()->warning (_ ("NoteEvent without pitch"));
-       }
+       ev->origin ()->warning (_ ("NoteEvent without pitch"));
 #endif
 
       int pos = pit ? pit->steps () : 0;
@@ -110,9 +108,7 @@ Note_heads_engraver::process_music ()
              && scm_is_symbol (scm_vector_ref (shape_vector, scm_from_int (delta))))
            style = scm_vector_ref (shape_vector, scm_from_int (delta));
          if (scm_is_symbol (style))
-           {
-             note->set_property ("style", style);
-           }
+           note->set_property ("style", style);
        }
 
       notes_.push (note);
index 6409c77d5bacb0e26ed2fe9ef20766ec0af2a9c6..a8326dab36277406c3ac2a5a183b959c48d30add 100644 (file)
@@ -67,9 +67,7 @@ Note_performer::stop_translation_timestep ()
   // --> grace notes effectively do not get delayed
   Moment now = now_mom ();
   for (int i = 0; i < notes_.size (); i++)
-    {
-      play_element (notes_[i]);
-    }
+    play_element (notes_[i]);
   notes_.clear ();
   note_evs_.clear ();
 }
index 6f264a7135f4eda38d5ff05b58f26396af07fa9a..2bc95d7650420fee548c938ddb913c8e1b7ee79b 100644 (file)
@@ -136,7 +136,6 @@ Note_spacing::get_spacing (Grob *me, Item *right_col,
          */
          + max (0.0, -extents[RIGHT][LEFT] - (base_space - increment))));
 
-
   /*
     We don't do complicated stuff: (base_space - increment) is the
     normal amount of white, which also determines the amount of
@@ -220,9 +219,7 @@ Note_spacing::right_column (Grob *me)
     }
 
   if (!mincol)
-    {
-      return 0;
-    }
+    return 0;
 
   return mincol;
 }
index 8ba5a8c36c8af7654f92940b23cffae5769792eb..c1ba935b44db9eb145687ceb5afe0e3e0b169dfd 100644 (file)
@@ -20,9 +20,7 @@ Object_key_dumper::mark_smob (SCM smob)
   for (Key_to_key_map::const_iterator i (dumper->serialized_keys_.begin ());
        i != dumper->serialized_keys_.end ();
        i++)
-    {
-      scm_gc_mark ((*i).first->self_scm ());
-    }
+    scm_gc_mark ((*i).first->self_scm ());
   return SCM_EOL;
 }
 
@@ -83,13 +81,9 @@ SCM
 Object_key_dumper::dump_key (Object_key const *key)
 {
   if (key_serial_numbers_.find (key) != key_serial_numbers_.end ())
-    {
-      return key_serial (key_serial_numbers_[key]);
-    }
+    return key_serial (key_serial_numbers_[key]);
   else if (Object_key const *serialized = serialized_keys_[key])
-    {
-      return key_serial (key_serial_numbers_[ serialized_keys_ [serialized] ]);
-    }
+    return key_serial (key_serial_numbers_[ serialized_keys_ [serialized] ]);
 
   return serialize_key (key);
 }
index b9baee4564e1345317b9ed52fa46fe29fe028481..3a984b37e3f1cd7213c8c60e70a456546eb33aa2 100644 (file)
@@ -19,9 +19,7 @@ Object_key_undumper::mark_smob (SCM smob)
   Object_key_undumper *undumper = (Object_key_undumper *) SCM_CELL_WORD_1 (smob);
   for (Int_to_key_map::const_iterator i (undumper->keys_.begin ());
        i != undumper->keys_.end (); i++)
-    {
-      scm_gc_mark ((*i).second->self_scm ());
-    }
+    scm_gc_mark ((*i).second->self_scm ());
 
   return SCM_BOOL_F;
 }
index 0535cb625e00d28fab1427577506c7659ee9ba12..cd0c67c0572959f0a356dff016ed95399d1e67a1 100644 (file)
@@ -35,9 +35,7 @@ load_table (char const *tag_str, FT_Face face, FT_ULong *length)
       return buffer;
     }
   else
-    {
-      programming_error ("Cannot find OpenType table.");
-    }
+    programming_error ("Cannot find OpenType table.");
 
   return 0;
 }
index ca142d16e453ba4f3e55d901e52a5a126f779d6f..f2f5af875566020976ef1eeac6a8d42307a4627f 100644 (file)
@@ -184,7 +184,7 @@ Pango_font::pango_item_string_stencil (PangoItem *item, String str, Real dx) con
     {
       ((Pango_font *) this)->register_font_file (file_name, ps_name);
       pango_fc_font_unlock_face (fcfont);
-       
+
       SCM expr = scm_list_5 (ly_symbol2scm ("glyph-string"),
                             scm_makfrom0str (ps_name.to_str0 ()),
                             scm_from_double (size),
index 7ca70983ffea86189b9f429459dadbdd46170d2b..31f9f79e772eed906cd3de3c116b1cd2a177875a 100644 (file)
@@ -69,14 +69,10 @@ symbol_to_pango_style (SCM style)
 {
   PangoStyle pstyle = PANGO_STYLE_NORMAL;
   if (style == ly_symbol2scm ("italic"))
-    {
-      pstyle = PANGO_STYLE_ITALIC;
-    }
+    pstyle = PANGO_STYLE_ITALIC;
   else if (style == ly_symbol2scm ("oblique")
           || style == ly_symbol2scm ("slanted"))
-    {
-      pstyle = PANGO_STYLE_OBLIQUE;
-    }
+    pstyle = PANGO_STYLE_OBLIQUE;
 
   return pstyle;
 }
@@ -86,9 +82,7 @@ symbol_to_pango_variant (SCM variant)
 {
   PangoVariant pvariant = PANGO_VARIANT_NORMAL;
   if (variant == ly_symbol2scm ("caps"))
-    {
-      pvariant = PANGO_VARIANT_SMALL_CAPS;
-    }
+    pvariant = PANGO_VARIANT_SMALL_CAPS;
   return pvariant;
 }
 
@@ -97,25 +91,15 @@ symbol_to_pango_weight (SCM weight)
 {
   PangoWeight pw = PANGO_WEIGHT_NORMAL;
   if (weight == ly_symbol2scm ("bold"))
-    {
-      pw = PANGO_WEIGHT_BOLD;
-    }
+    pw = PANGO_WEIGHT_BOLD;
   if (weight == ly_symbol2scm ("heavy"))
-    {
-      pw = PANGO_WEIGHT_HEAVY;
-    }
+    pw = PANGO_WEIGHT_HEAVY;
   if (weight == ly_symbol2scm ("ultrabold"))
-    {
-      pw = PANGO_WEIGHT_ULTRABOLD;
-    }
+    pw = PANGO_WEIGHT_ULTRABOLD;
   if (weight == ly_symbol2scm ("light"))
-    {
-      pw = PANGO_WEIGHT_LIGHT;
-    }
+    pw = PANGO_WEIGHT_LIGHT;
   if (weight == ly_symbol2scm ("ultralight"))
-    {
-      pw = PANGO_WEIGHT_ULTRALIGHT;
-    }
+    pw = PANGO_WEIGHT_ULTRALIGHT;
 
   return pw;
 }
index 680deae2bf7ed41ec8c450fca576b431b444a189..256aa430b995caf973e4953b3513e36b8e96236a 100644 (file)
@@ -96,14 +96,10 @@ Paper_column_engraver::set_columns (Paper_column *new_command,
   command_column_ = new_command;
   musical_column_ = new_musical;
   if (new_command)
-    {
-      context ()->set_property ("currentCommandColumn", new_command->self_scm ());
-    }
+    context ()->set_property ("currentCommandColumn", new_command->self_scm ());
 
   if (new_musical)
-    {
-      context ()->set_property ("currentMusicalColumn", new_musical->self_scm ());
-    }
+    context ()->set_property ("currentMusicalColumn", new_musical->self_scm ());
 
   system_->add_column (command_column_);
   system_->add_column (musical_column_);
index d86caaa735b14395648abe0b6e1f45a89557b89b..1ae46fee1128a9dd865843f5f12d9f70d415855e 100644 (file)
@@ -96,9 +96,7 @@ Paper_column::is_musical (Grob *me)
   SCM m = me->get_property ("shortest-starter-duration");
   Moment s (0);
   if (unsmob_moment (m))
-    {
-      s = *unsmob_moment (m);
-    }
+    s = *unsmob_moment (m);
   return s != Moment (0);
 }
 
index 6b7a1917a7b515dbf018ee1a0cc6f477ab544097..eb338d2f7e9a8bd832424a024e4ce4601ed779c2 100644 (file)
@@ -76,9 +76,7 @@ find_pango_font (Output_def *layout, SCM descr, Real factor)
   SCM size_key = scm_from_double (factor);
   SCM handle = scm_assoc (size_key, sizes);
   if (scm_is_pair (handle))
-    {
-      return unsmob_metrics (scm_cdr (handle));
-    }
+    return unsmob_metrics (scm_cdr (handle));
 
   PangoFontDescription *description
     = pango_font_description_from_string (scm_i_string_chars (descr));
index 3c2f531e0344e5d05a5d43caa9fd19df2d7c8fe5..706ef0a1f7329009bebe6faf9e3aa5d37901fc31 100644 (file)
@@ -10,7 +10,6 @@
 #include "warn.hh"
 #include "stencil.hh"
 
-
 LY_DEFINE (ly_make_paper_outputter, "ly:make-paper-outputter",
           2, 0, 0, (SCM port, SCM format),
           "Create an outputter that evaluates within "
index 8dad52aba35278ca3685808d62a62f1f221d100b..a8c2a4d0ab69612429614784ff99142045cbfcd7 100644 (file)
@@ -40,9 +40,7 @@ Percent_repeat_item_interface::x_percent (Grob *me, int count,
   Stencil s = brew_slash (me);
 
   for (int i = count; i--;)
-    {
-      m.add_at_edge (X_AXIS, RIGHT, s, -slash_neg_kern, 0);
-    }
+    m.add_at_edge (X_AXIS, RIGHT, s, -slash_neg_kern, 0);
   Stencil d1 = Font_interface::get_default_font (me)->find_by_name ("dots.dot");
   Stencil d2 = d1;
   d1.translate_axis (0.5, Y_AXIS);
index 645262f9df1072b04cccffe80700fee2f882e9cd..2894b0435e345d9f7d0943fc299d4180f2117687 100644 (file)
@@ -22,4 +22,3 @@ LY_DEFINE (ly_performance_write, "ly:performance-write",
   return SCM_UNSPECIFIED;
 }
 
-
index ca2d061d85c60cd4587fe1e6f6fea57e257ec8cd..087522ebb4456c1debec539cbb5ca573a95a0e87 100644 (file)
@@ -128,7 +128,7 @@ Performance::output_header_track (Midi_stream &midi_stream)
   Audio_text track_name_a (Audio_text::TRACK_NAME, "Track "
                           + String_convert::int2dec (0, 0, '0'));
   Midi_text track_name (&track_name_a);
-                       
+
   midi_track.add (Moment (0), &track_name);
 
   // Some sequencers read track 0 last.
@@ -143,9 +143,7 @@ void
 Performance::add_element (Audio_element *p)
 {
   if (Audio_staff *s = dynamic_cast<Audio_staff *> (p))
-    {
-      audio_staffs_.push (s);
-    }
+    audio_staffs_.push (s);
   audio_element_list_ = new Killing_cons<Audio_element> (p, audio_element_list_);
 }
 
index 4af36099383b03ba6653c29bb4be935cc48fc8e5..d5961f12f5464e1c3bc728a3aa0aaf901425be05 100644 (file)
@@ -58,14 +58,11 @@ pfb2pfa (Byte const *pfb, int length)
              sprintf (outp, "%02x", *p++);
              outp += 2;
              if (! (i % 32))
-               {
-                 *outp++ = '\n';
-               }
+               *outp++ = '\n';
            }
 
          olen = outp - out;
        }
-
     }
   out[olen] = 0;
 
@@ -97,7 +94,6 @@ LY_DEFINE (ly_pfb_to_pfa, "ly:pfb->pfa",
   return pfa_scm;
 }
 
-
 LY_DEFINE (ly_otf_to_cff, "ly:otf->cff",
           1, 0, 0, (SCM otf_file_name),
           "Convert the contents of a OTF file to CFF file, returning it as "
index a557a8dca9ce140b64ccd6f7f3f5f62dcf76ce22..5fb5c37321c9681bcbadc48159ca26b0d7bfb7ab 100644 (file)
@@ -233,9 +233,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 ("can't find start of piano pedal: `%s'", p->name_));
-           }
+           p->event_drul_[STOP]->origin ()->warning (_f ("can't find start of piano pedal: `%s'", p->name_));
          else
            s = scm_cadr (strings);
          p->start_ev_ = p->event_drul_[START];
@@ -246,9 +244,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 ("can't find start of piano pedal: `%s'", p->name_));
-           }
+           p->event_drul_[STOP]->origin ()->warning (_f ("can't find start of piano pedal: `%s'", p->name_));
          else
            s = scm_caddr (strings);
          p->start_ev_ = 0;
@@ -481,17 +477,13 @@ Piano_pedal_engraver::typeset_all (Pedal_info *p)
     p->finished_bracket_ = 0;
 
   if (p->item_)
-    {
-      p->item_ = 0;
-    }
+    p->item_ = 0;
 
   if (p->finished_bracket_)
     {
       Grob *r = p->finished_bracket_->get_bound (RIGHT);
       if (!r)
-       {
-         p->finished_bracket_->set_bound (RIGHT, unsmob_grob (get_property ("currentMusicalColumn")));
-       }
+       p->finished_bracket_->set_bound (RIGHT, unsmob_grob (get_property ("currentMusicalColumn")));
 
       p->finished_bracket_ = 0;
     }
index fe0bcff1f0a3c56fff4d2da9be07e9f54727c955..1feec9835924edc2db00820edf68b16eef182a82 100644 (file)
@@ -77,9 +77,7 @@ Piano_pedal_performer::create_audio_elements ()
       if (p->event_drul_[STOP])
        {
          if (!p->start_event_)
-           {
-             p->event_drul_[STOP]->origin ()->warning (_f ("can't find start of piano pedal: `%s'", String (p->name_)));
-           }
+           p->event_drul_[STOP]->origin ()->warning (_f ("can't find start of piano pedal: `%s'", String (p->name_)));
          else
            {
              Audio_piano_pedal *a = new Audio_piano_pedal;
index f6ce236706b2e76db904a8f62440a9b120108a73..e3869bb6f96ff38eb23206c706e5a3d715f132a8 100644 (file)
@@ -22,9 +22,7 @@ Pitch_squash_engraver::acknowledge_note_head (Grob_info i)
 {
   SCM newpos = get_property ("squashedPosition");
   if (scm_is_number (newpos))
-    {
-      i.grob ()->set_property ("staff-position", newpos);
-    }
+    i.grob ()->set_property ("staff-position", newpos);
 }
 
 Pitch_squash_engraver::Pitch_squash_engraver ()
index 74b4c2e0e2b90cdcfc2b83979fdcfd9546311665..4d60fec90533e86cde4136ca05c3efd941597758 100644 (file)
@@ -61,9 +61,7 @@ internal_extract_item_array (Grob const *elt, SCM symbol)
   Grob_array *arr = unsmob_grob_array (elt->internal_get_object (symbol));
   Link_array<Item> items;
   for (int i = 0; arr && i < arr->size (); i++)
-    {
-      items.push (arr->item (i));
-    }
+    items.push (arr->item (i));
 
   return items;
 }
index e0509e56a2f8b8476355899f1c01b049e6d15770..e599501422ab30d14cdbf94863a03a908426b5e9 100644 (file)
@@ -21,7 +21,6 @@ LY_DEFINE (ly_context_property_lookup_stats, "ly:context-property-lookup-stats",
     : scm_c_make_hash_table (1);
 }
 
-
 LY_DEFINE (ly_property_lookup_stats, "ly:grob-property-lookup-stats",
           0, 0, 0, (),
           "")
index c1d4d572b3b2d9516abb15a318569a918157c4fc..de93d2dd76c25fc052f7e6cde092ec7912b519d3 100644 (file)
@@ -119,7 +119,7 @@ get_help_string ()
       opt_help.substitute (String ("\n"),
                           String ("\n")
                           + String_convert::char_string (' ', HELP_INDENT));
-      
+
       opts.push (opt_spec + opt_help + "\n");
     }
 
@@ -168,9 +168,7 @@ LY_DEFINE (ly_set_option, "ly:set-option", 1, 1, 0, (SCM var, SCM val),
                   __FUNCTION__, "symbol");
 
   if (ly_symbol2scm ("help") == var)
-    {
-      ly_option_usage ();
-    }
+    ly_option_usage ();
 
   if (val == SCM_UNDEFINED)
     val = SCM_BOOL_T;
@@ -184,9 +182,7 @@ LY_DEFINE (ly_set_option, "ly:set-option", 1, 1, 0, (SCM var, SCM val),
 
   SCM handle = scm_hashq_get_handle (option_hash_, var);
   if (handle == SCM_BOOL_F)
-    {
-      warning (_f ("no such internal option: %s", varstr.to_str0 ()));
-    }
+    warning (_f ("no such internal option: %s", varstr.to_str0 ()));
 
   internal_set_option (var, val);
   return SCM_UNSPECIFIED;
index fd7498d7bef44d9ac7b409b918e790536ac26f8e..2eecb72fe4c930a20f994a0b6d8d58f7c262861e 100644 (file)
@@ -117,9 +117,7 @@ Quote_iterator::construct_children ()
       quote_outlet_.set_context (cue_context);
     }
   else
-    {
-      quote_outlet_.set_context (get_outlet ());
-    }
+    quote_outlet_.set_context (get_outlet ());
 
   event_vector_ = get_music ()->get_property ("quoted-events");
 
index 183f7e88c01d5d54742e5facc2d9fcd404c1c328..b765d40236fae8116f2150ed7abb30e789dac62b 100644 (file)
@@ -102,9 +102,7 @@ Repeat_acknowledge_engraver::process_music ()
   if (!scm_is_string (wb) || ly_is_equal (db, wb))
     {
       if (s != "" || (volta_found && !scm_is_string (wb)))
-       {
-         context ()->set_property ("whichBar", scm_makfrom0str (s.to_str0 ()));
-       }
+       context ()->set_property ("whichBar", scm_makfrom0str (s.to_str0 ()));
     }
 }
 
index ee586efc89dea052e81bb2ee2897141f32e86909..34b8e56c04f200b6268b80ff1610c29341051a2f 100644 (file)
@@ -48,9 +48,7 @@ Repeated_music::relative_callback (SCM music, SCM pitch)
       return last.smobbed_copy ();
     }
   else
-    {
-      return me->generic_to_relative_octave (p).smobbed_copy ();
-    }
+    return me->generic_to_relative_octave (p).smobbed_copy ();
 }
 
 Moment
@@ -97,9 +95,7 @@ Repeated_music::body_get_length (Music *me)
 {
   Moment m = 0;
   if (Music *body = unsmob_music (me->get_property ("element")))
-    {
-      m = body->get_length ();
-    }
+    m = body->get_length ();
   return m;
 }
 
@@ -149,9 +145,7 @@ Repeated_music::minimum_start (SCM m)
   if (body)
     return body->start_mom ().smobbed_copy ();
   else
-    {
-      return Music_sequence::minimum_start (me->get_property ("elements")).smobbed_copy ();
-    }
+    return Music_sequence::minimum_start (me->get_property ("elements")).smobbed_copy ();
 }
 
 MAKE_SCHEME_CALLBACK (Repeated_music, first_start, 1);
index 4d7ad3348630919c5223ba4a9ac1d1fd2ca7de1e..e7d8db4a2d62985754372b6334ac762bbda86e82 100644 (file)
@@ -201,9 +201,7 @@ Rest_collision::do_shift (Grob *me)
        Rests and notes.
       */
       if (rests.size () > 1)
-       {
-         warning (_ ("too many colliding rests"));
-       }
+       warning (_ ("too many colliding rests"));
       Grob *rcol = 0;
       Direction dir = CENTER;
 
index efeb00b41b27a7ffb388abab03789b15ea32f74c..e36525262bac19a1aea33a3a3ce7b82a529dfbec 100644 (file)
@@ -31,9 +31,7 @@ Rest::after_line_breaking (SCM smob)
        me->translate_axis (ss, Y_AXIS);
     }
   else
-    {
-      me->translate_axis (ss / 2, Y_AXIS);
-    }
+    me->translate_axis (ss / 2, Y_AXIS);
 
   Grob *d = unsmob_grob (me->get_object ("dot"));
   if (d && bt > 4) // UGH.
index 6392a52147e8f5c014af21bb2f66d3508c452422..c7d8165312e8499d65b918d956f34700f7b33d80 100644 (file)
@@ -38,9 +38,7 @@ void
 Score_performer::play_element (Audio_element *p)
 {
   if (Audio_item *i = dynamic_cast<Audio_item *> (p))
-    {
-      audio_column_->add_audio_item (i);
-    }
+    audio_column_->add_audio_item (i);
   performance_->add_element (p);
 }
 
index 0b6253c4c7d7f8f72fcc3663fab1f2dc17d265c9..5e9c668093bc9e6a6331576521480690c684b3a8 100644 (file)
@@ -56,9 +56,7 @@ void
 Script_column_engraver::process_acknowledged ()
 {
   if (!scol_ && scripts_.size () > 1)
-    {
-      scol_ = make_item ("ScriptColumn", SCM_EOL);
-    }
+    scol_ = make_item ("ScriptColumn", SCM_EOL);
 
   if (scol_)
     {
index 759e8849d84c2f89cb8fee5d6889dbdefc60b74c..7b8ce78cc63534c8f50bdefca894ea9e5ce8da61 100644 (file)
@@ -102,9 +102,7 @@ Separating_line_group_engraver::finalize ()
 
   if (last_spacings_.staff_spacing_
       && last_spacings_.staff_spacing_->get_column () == column)
-    {
-      last_spacings_.staff_spacing_->suicide ();
-    }
+    last_spacings_.staff_spacing_->suicide ();
 }
 
 void
@@ -193,9 +191,7 @@ void
 Separating_line_group_engraver::stop_translation_timestep ()
 {
   if (break_item_)
-    {
-      Separating_group_spanner::add_spacing_unit (sep_span_, break_item_);
-    }
+    Separating_group_spanner::add_spacing_unit (sep_span_, break_item_);
 
   if (Item *sp = current_spacings_.staff_spacing_)
     {
@@ -209,16 +205,12 @@ Separating_line_group_engraver::stop_translation_timestep ()
     }
 
   if (!current_spacings_.is_empty ())
-    {
-      last_spacings_ = current_spacings_;
-    }
+    last_spacings_ = current_spacings_;
 
   current_spacings_.clear ();
 
   if (musical_item_)
-    {
-      Separating_group_spanner::add_spacing_unit (sep_span_, musical_item_);
-    }
+    Separating_group_spanner::add_spacing_unit (sep_span_, musical_item_);
 
   musical_item_ = 0;
 }
index fce28831cceb44318ea02ee9625074e20799ed56..4b80e14793806f5ef21eda6d9fcd7604e40320ed 100644 (file)
@@ -67,9 +67,7 @@ Separation_item::width (Grob *me)
 {
   SCM sw = me->get_property ("X-extent");
   if (is_number_pair (sw))
-    {
-      return ly_scm2interval (sw);
-    }
+    return ly_scm2interval (sw);
 
   Item *item = dynamic_cast<Item *> (me);
   Paper_column *pc = item->get_column ();
index 0f9b4295495c87b979104646fec05772a36e2705..6174c202f13ce37883218313f2bdf91a3d4167f1 100644 (file)
@@ -123,9 +123,7 @@ Sequential_iterator::construct_children ()
     }
 
   while (iter_ && !iter_->ok ())
-    {
-      next_element (true);
-    }
+    next_element (true);
 
   last_mom_ = Moment (-1);
   here_mom_ = get_music ()->start_mom ();
@@ -232,9 +230,7 @@ Sequential_iterator::pending_moment () const
   Grace_fixup *gf = get_grace_fixup ();
   if (gf
       && gf->length_ + iter_->music_start_mom () == cp)
-    {
-      return here_mom_ + gf->length_ + Moment (0, gf->grace_start_);
-    }
+    return here_mom_ + gf->length_ + Moment (0, gf->grace_start_);
 
   /*
     Fix-up a grace note at  the start of the music.
index a4dc76cf8e3b0880bae22d5f36f9cbdc399c55f3..0acb79da215d8626140a98c025950967928e6f3c 100644 (file)
@@ -39,16 +39,12 @@ Side_position_interface::get_direction (Grob *me)
   Direction relative_dir = Direction (1);
   SCM reldir = me->get_property ("side-relative-direction");   // should use a lambda.
   if (is_direction (reldir))
-    {
-      relative_dir = to_dir (reldir);
-    }
+    relative_dir = to_dir (reldir);
 
   SCM other_elt = me->get_object ("direction-source");
   Grob *e = unsmob_grob (other_elt);
   if (e)
-    {
-      return (Direction) (relative_dir * get_grob_direction (e));
-    }
+    return (Direction) (relative_dir * get_grob_direction (e));
 
   return CENTER;
 }
index c38d1e52edc06c77c4029e538dd855232b88efa4..ec9f4ac35d65b986f450cf24982a1c736c222129 100644 (file)
@@ -73,21 +73,15 @@ LY_DEFINE (ly_solve_spring_rod_problem, "ly:solve-spring-rod-problem",
   SCM force_return = SCM_BOOL_F;
   if (!isinf (spacer.force_)
       && (spacer.is_active () || is_ragged))
-    {
-      force_return = scm_from_double (spacer.force_);
-    }
+    force_return = scm_from_double (spacer.force_);
 
   if (is_ragged
       && posns.top () > spacer.line_len_)
-    {
-      force_return = SCM_BOOL_F;
-    }
+    force_return = SCM_BOOL_F;
 
   SCM retval = SCM_EOL;
   for (int i = posns.size (); i--;)
-    {
-      retval = scm_cons (scm_from_double (posns[i]), retval);
-    }
+    retval = scm_cons (scm_from_double (posns[i]), retval);
 
   retval = scm_cons (force_return, retval);
   return retval;
index 10758ff5bb0a09084a0d0b3922a080ca7a148b28..a37f040c86206122844051bc5fd343db864c16e3 100644 (file)
@@ -134,9 +134,7 @@ Simple_spacer::active_blocking_force () const
   Real bf = -infinity_f;
   for (int i = 0; i < springs_.size (); i++)
     if (springs_[i].is_active_)
-      {
-       bf = max (bf, springs_[i].block_force_);
-      }
+      bf = max (bf, springs_[i].block_force_);
   return bf;
 }
 
@@ -356,9 +354,7 @@ Simple_spacer::add_spring (Real ideal, Real inverse_hooke)
     }
 
   if (!inverse_hooke)
-    {
-      desc.is_active_ = false;
-    }
+    desc.is_active_ = false;
   else
     {
       /*
@@ -387,13 +383,9 @@ Simple_spacer_wrapper::add_columns (Link_array<Grob> const &icols)
 
   for (int i = 0; i < icols.size (); i++)
     if (scm_is_pair (icols[i]->get_object ("between-cols")))
-      {
-       loose_cols_.push (icols[i]);
-      }
+      loose_cols_.push (icols[i]);
     else
-      {
-       cols.push (icols[i]);
-      }
+      cols.push (icols[i]);
 
   spaced_cols_ = cols;
   for (int i = 0; i < cols.size () - 1; i++)
index 01099b1f7b7c739955dbf9c1d34870031ee00f60..92115d3904018dd4f1c135080ba117fc363bfa73 100644 (file)
@@ -105,9 +105,7 @@ void
 Slash_repeat_engraver::start_translation_timestep ()
 {
   if (stop_mom_ == now_mom ())
-    {
-      repeat_ = 0;
-    }
+    repeat_ = 0;
   beat_slash_ = 0;
 }
 
index 937a4fb02a7ea982c3af96bcda45c262080969e1..4e14589d81e8b54e419f21a47f03a9688b854e72 100644 (file)
@@ -131,9 +131,7 @@ Slur_configuration::generate_curve (Slur_score_state const &state,
       max_h = len / 3.0;
     }
   else
-    {
-      max_h = sqrt (max_h);
-    }
+    max_h = sqrt (max_h);
 
   Real eccentricity = robust_scm2double (state.slur_->get_property ("eccentricity"), 0);
 
index 2595521ed0e4b25629cc63be81082e65a600c96f..b5a91f467867cba24bbce69eb5123992614720ac 100644 (file)
@@ -375,13 +375,9 @@ set_slur_control_points (Grob *me)
   Bezier best;
 
   if (is_number_pair (end_ys))
-    {
-      best = state.configurations_[state.get_closest_index (end_ys)]->curve_;
-    }
+    best = state.configurations_[state.get_closest_index (end_ys)]->curve_;
   else
-    {
-      best = state.get_best_curve ();
-    }
+    best = state.get_best_curve ();
 
   SCM controls = SCM_EOL;
   for (int i = 4; i--;)
@@ -614,7 +610,6 @@ Slur_score_state::move_away_from_staffline (Real y,
   return y;
 }
 
-
 Array<Offset>
 Slur_score_state::generate_avoid_offsets () const
 {
index e2ec5d5638124b947cd9cf0c936ebe1e86dff775..e984567be520ed5663c4bad95f44777896e7a251 100644 (file)
@@ -23,9 +23,7 @@ protect_smob (SCM smob, SCM *prot_cons)
 {
   SCM s = scm_cdr (smob_protection_list);
   while (scm_is_pair (s) && scm_car (s) == SCM_UNDEFINED)
-    {
-      s = scm_cdr (s);
-    }
+    s = scm_cdr (s);
 
   SCM prot = scm_cons (smob, s);
   scm_set_cdr_x (smob_protection_list,
@@ -39,9 +37,7 @@ unprotect_smob (SCM *prot_cons)
   SCM next = scm_cdr (*prot_cons);
 
   if (next == SCM_EOL)
-    {
-      scm_set_car_x (*prot_cons, SCM_UNDEFINED);
-    }
+    scm_set_car_x (*prot_cons, SCM_UNDEFINED);
   else
     {
       scm_set_car_x (*prot_cons, SCM_UNDEFINED);
index fe152dc226d21d031b0e311ee47afca95277e184..af9005e9e7aafb915d22015a68795cee6e3317f4 100644 (file)
@@ -117,10 +117,10 @@ Source_file::init_port ()
 int
 Source_file::tell () const
 {
-  return pos_str0_ - contents_str0_; 
+  return pos_str0_ - contents_str0_;
 }
 
-std::istream*
+std::istream *
 Source_file::get_istream ()
 {
   if (!istream_)
@@ -152,7 +152,6 @@ Source_file::file_line_column_string (char const *context_str0) const
     }
 }
 
-
 String
 Source_file::quote_input (char const *pos_str0) const
 {
@@ -201,7 +200,7 @@ Source_file::line_slice (char const *pos_str0) const
        break;
       }
 
-  char constend_str0 = pos_str0;
+  char const *end_str0 = pos_str0;
   while (end_str0 < eof_C_)
     if (*end_str0++ == '\n')
       {
@@ -213,7 +212,7 @@ Source_file::line_slice (char const *pos_str0) const
 }
 
 String
-Source_file::line_string (char constpos_str0) const
+Source_file::line_string (char const *pos_str0) const
 {
   if (!contains (pos_str0))
     return "";
@@ -271,11 +270,11 @@ Source_file::get_counts (char const *pos_str0,
        thislen = 1;
 
       if (thislen == 1 && line_chars[0] == '\t')
-       (*column) = (*column / 8 + 1) * 8;  
+       (*column) = (*column / 8 + 1) * 8;
       else
-       (*column) ++;
+       (*column)++;
 
-      (*line_char) ++;
+      (*line_char)++;
       /* Advance past this character. */
       line_chars += thislen;
       left -= thislen;
@@ -329,7 +328,7 @@ Source_file::to_str0 () const
 }
 
 void
-Source_file::set_pos (char const * pos_str0)
+Source_file::set_pos (char const *pos_str0)
 {
   if (contains (pos_str0))
     pos_str0_ = pos_str0;
index f3a48914837853d155e8338cf3cfd7d10ae39cb5..6ae304dfa3d4007844a781dcfebd42731c0b323a 100644 (file)
@@ -49,9 +49,7 @@ Spaceable_grob::add_rod (Grob *me, Grob *p, Real d)
     }
 
   if (Paper_column::get_rank (p) < Paper_column::get_rank (me))
-    {
-      programming_error ("Adding reverse rod");
-    }
+    programming_error ("Adding reverse rod");
 
   mins = scm_cons (scm_cons (p->self_scm (), newdist), mins);
   me->set_object ("minimum-distances", mins);
index 2565d61adbfa398865bc82ccc96d6d5178bccea0..58d821a99ed939aeba32088348328af03590a7fc 100644 (file)
@@ -89,9 +89,7 @@ is_loose_column (Grob *l, Grob *c, Grob *r, Spacing_options const *options)
   */
   if (! ((Paper_column::is_musical (l_neighbor) || Item::is_breakable (l_neighbor))
         && (Paper_column::is_musical (r_neighbor) || Item::is_breakable (r_neighbor))))
-    {
-      return false;
-    }
+    return false;
 
   /*
     A rather hairy check, but we really only want to move around
@@ -207,9 +205,7 @@ Spacing_spanner::prune_loose_columns (Grob *me, Link_array<Grob> *cols,
                      dists[d] = max (dists[d], fixed_space);
                    }
                  else
-                   {
-                     programming_error ("Subversive spacing wish");
-                   }
+                   programming_error ("Subversive spacing wish");
                }
            }
          while (flip (&d) != LEFT);
@@ -295,9 +291,7 @@ Spacing_spanner::set_explicit_neighbor_columns (Link_array<Grob> const &cols)
        }
 
       if (rn_arr->size ())
-       {
-         cols[i]->set_object ("right-neighbors", right_neighbors);
-       }
+       cols[i]->set_object ("right-neighbors", right_neighbors);
     }
 }
 
index 2992c88593e7e397864e212c5356e990f168abcd..4bf6d551d838487d46fa4366643dc33deca4367a 100644 (file)
 #include "staff-spacing.hh"
 #include "spacing-interface.hh"
 
-
 Rational
 Spacing_spanner::effective_shortest_duration (Grob *me, Link_array<Grob> const &all)
 {
   SCM preset_shortest = me->get_property ("common-shortest-duration");
   Rational global_shortest;
   if (unsmob_moment (preset_shortest))
-    {
-      global_shortest = unsmob_moment (preset_shortest)->main_part_;
-    }
+    global_shortest = unsmob_moment (preset_shortest)->main_part_;
   else
     {
       global_shortest = Spacing_spanner::find_shortest (me, all);
@@ -249,9 +246,7 @@ Spacing_spanner::musical_column_spacing (Grob *me,
   Real compound_fixed_note_space = 0.0;
 
   if (options->stretch_uniformly_)
-    {
-      compound_note_space = base_note_space;
-    }
+    compound_note_space = base_note_space;
   else
     {
       int wish_count = 0;
@@ -414,9 +409,7 @@ Spacing_spanner::breakable_column_spacing (Grob *me, Item *l, Item *r,
     }
 
   if (options->stretch_uniformly_ && l->break_status_dir () != RIGHT)
-    {
-      compound_fixed = 0.0;
-    }
+    compound_fixed = 0.0;
 
   assert (!isinf (compound_space));
   compound_space = max (compound_space, compound_fixed);
@@ -447,8 +440,7 @@ ADD_INTERFACE (Spacing_spanner, "spacing-spanner-interface",
 
               "grace-space-factor spacing-increment base-shortest-duration strict-note-spacing "
               "shortest-duration-space common-shortest-duration uniform-stretching "
-              "packed-spacing "
-              );
+              "packed-spacing ");
 
 ADD_INTERFACE (Spacing_interface, "spacing-interface",
               "Something to do with line breaking and spacing. "
index cbf77b26739cf7bebf4ebd4b5f8207c9468e5928..72cdfbad8501cf44387eaf3978bc6f0d9087469c 100644 (file)
@@ -42,9 +42,7 @@ void
 Span_arpeggio_engraver::acknowledge_arpeggio (Grob_info info)
 {
   if (info.origin_contexts (this).size ()) // huh? what's this test for? 
-    {
-      arpeggios_.push (info.grob ());
-    }
+    arpeggios_.push (info.grob ());
 }
 
 void
@@ -59,9 +57,7 @@ Span_arpeggio_engraver::process_acknowledged ()
   */
   if (!span_arpeggio_ && arpeggios_.size () > 1
       && to_boolean (get_property ("connectArpeggios")))
-    {
-      span_arpeggio_ = make_item ("Arpeggio", SCM_EOL);
-    }
+    span_arpeggio_ = make_item ("Arpeggio", SCM_EOL);
 }
 
 void
index c668844ce3f2d35ae899ce2d5be5d9c10b59cbc7..9a3312daa0f490cfd5c1cce4b5bd5368b3285d5b 100644 (file)
@@ -173,9 +173,7 @@ Span_bar::evaluate_empty (Grob *me)
 
   extract_grob_set (me, "elements", elements);
   if (elements.is_empty ())
-    {
-      me->suicide ();
-    }
+    me->suicide ();
 }
 
 void
@@ -189,9 +187,7 @@ Span_bar::evaluate_glyph (Grob *me)
   extract_grob_set (me, "elements", elements);
   for (int i = elements.size ();
        i-- && !scm_is_string (gl);)
-    {
-      gl = elements[i]->get_property ("glyph");
-    }
+    gl = elements[i]->get_property ("glyph");
 
   if (!scm_is_string (gl))
     {
@@ -201,17 +197,11 @@ Span_bar::evaluate_glyph (Grob *me)
 
   String type = ly_scm2string (gl);
   if (type == "|:")
-    {
-      type = ".|";
-    }
+    type = ".|";
   else if (type == ":|")
-    {
-      type = "|.";
-    }
+    type = "|.";
   else if (type == ":|:")
-    {
-      type = ".|.";
-    }
+    type = ".|.";
 
   gl = scm_makfrom0str (type.to_str0 ());
   if (scm_equal_p (me->get_property ("glyph"), gl)
index f9b20d7182f47cb130e66e92ad35c564f5280e5a..96bbcdae979ffa41bbddfb10fcc006aaf9559cb7 100644 (file)
@@ -58,9 +58,7 @@ void
 Span_dynamic_performer::acknowledge_audio_element (Audio_element_info i)
 {
   if (Audio_dynamic *d = dynamic_cast<Audio_dynamic *> (i.elem_))
-    {
-      last_volume_ = d->volume_;
-    }
+    last_volume_ = d->volume_;
 }
 
 void
@@ -105,14 +103,10 @@ Span_dynamic_performer::process_music ()
     }
 
   if (span_events_[STOP])
-    {
-      finished_dynamic_tuples_.top ().audio_->volume_ = last_volume_;
-    }
+    finished_dynamic_tuples_.top ().audio_->volume_ = last_volume_;
 
   if (span_events_[START])
-    {
-      dynamic_tuples_[0].audio_->volume_ = last_volume_;
-    }
+    dynamic_tuples_[0].audio_->volume_ = last_volume_;
 
   span_events_[START] = 0;
   span_events_[STOP] = 0;
index d5eaa3aaa45aefd53be682475f81c7f3d7350c59..2c961fffc17f203d62f069cf526f86adbf57da6c 100644 (file)
@@ -185,9 +185,7 @@ Spanner::set_bound (Direction d, Grob *s)
      We check for System to prevent the column -> line_of_score
      -> column -> line_of_score -> etc situation */
   if (d == LEFT && !dynamic_cast<System *> (this))
-    {
-      set_parent (i, X_AXIS);
-    }
+    set_parent (i, X_AXIS);
 
   /*
     Signal that this column needs to be kept alive. They need to be
@@ -198,9 +196,7 @@ Spanner::set_bound (Direction d, Grob *s)
 
   */
   if (dynamic_cast<Paper_column *> (i))
-    {
-      Pointer_group_interface::add_grob (i, ly_symbol2scm ("bounded-by-me"), this);
-    }
+    Pointer_group_interface::add_grob (i, ly_symbol2scm ("bounded-by-me"), this);
 }
 
 Spanner::Spanner (SCM s, Object_key const *key)
index 45e06833a70c563b9d2c73a0c30478decc3008c1..a7e51ea6293146cb65999bd10b24854f5d69149c 100644 (file)
@@ -138,8 +138,6 @@ void
 Staff_performer::acknowledge_audio_element (Audio_element *p)
 {
   if (Audio_item *ai = dynamic_cast<Audio_item *> (p))
-    {
-      audio_staff_->add_audio_item (ai);
-    }
+    audio_staff_->add_audio_item (ai);
 }
 
index 7a746404e653dcbe4d7670f21feb434941891960..58603069848d47a76fa4f45acdfe6fa1e39aa41e 100644 (file)
@@ -49,9 +49,7 @@ Staff_spacing::next_note_correction (Grob *me,
       max_corr = max (max_corr, (- v[LEFT]));
     }
   if (Grob *a = unsmob_grob (g->get_object ("arpeggio")))
-    {
-      max_corr = max (max_corr, - a->extent (col, X_AXIS)[LEFT]);
-    }
+    max_corr = max (max_corr, - a->extent (col, X_AXIS)[LEFT]);
 
   /*
     Let's decrease the space a little if the problem is not located
@@ -212,18 +210,14 @@ Staff_spacing::get_spacing_params (Grob *me, Real *space, Real *fixed)
       *space = *fixed;
     }
   else if (type == ly_symbol2scm ("extra-space"))
-    {
-      *space = *fixed + distance;
-    }
+    *space = *fixed + distance;
   else if (type == ly_symbol2scm ("semi-fixed-space"))
     {
       *fixed += distance / 2;
       *space = *fixed + distance / 2;
     }
   else if (type == ly_symbol2scm ("minimum-space"))
-    {
-      *space = last_ext[LEFT] + max (last_ext.length (), distance);
-    }
+    *space = last_ext[LEFT] + max (last_ext.length (), distance);
   else if (type == ly_symbol2scm ("minimum-fixed-space"))
     {
       *space = last_ext[LEFT] + max (last_ext.length (), distance);
index a7bbb6194bfcf4d24175e145113dfef15d74fbc6..9df51250c123868075178ba611d981902a9ca601 100644 (file)
@@ -54,18 +54,14 @@ void
 Staff_symbol_engraver::start_spanner ()
 {
   if (!span_)
-    {
-      span_ = make_spanner ("StaffSymbol", SCM_EOL);
-    }
+    span_ = make_spanner ("StaffSymbol", SCM_EOL);
 }
 
 void
 Staff_symbol_engraver::stop_spanner ()
 {
   if (finished_span_ && !finished_span_->get_bound (RIGHT))
-    {
-      finished_span_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn")));
-    }
+    finished_span_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn")));
   finished_span_ = 0;
 }
 
index 37edd6f436c9140125de14f3a3100214e84aa044..80db80ba065d40e7d8689812a7e5b606b1077468 100644 (file)
@@ -81,9 +81,7 @@ Staff_symbol_referencer::get_position (Grob *me)
       return p;
     }
   else if (!st)
-    {
-      return me->relative_coordinate (me->get_parent (Y_AXIS), Y_AXIS) * 2;
-    }
+    return me->relative_coordinate (me->get_parent (Y_AXIS), Y_AXIS) * 2;
   return robust_scm2double (me->get_property ("staff-position"), p);
 }
 
index 34586f5e556592cdb85d84d3ff948988e0d4af70..063c3518352c6be6d54dbd8091e2197c87656d5c 100644 (file)
@@ -58,9 +58,7 @@ void
 Stanza_number_engraver::acknowledge_lyric_syllable (Grob_info inf)
 {
   if (text_)
-    {
-      Side_position_interface::add_support (text_, inf.grob ());
-    }
+    Side_position_interface::add_support (text_, inf.grob ());
 }
 
 void
index 1905736a9d344da0948b103de61759bba9250459..c1ecd82d8573cb409e2b3db427d82763fec97c4b 100644 (file)
@@ -505,9 +505,7 @@ Stem::height (SCM smob, SCM ax)
   */
   Grob *beam = get_beam (me);
   if (beam)
-    {
-      Beam::after_line_breaking (beam->self_scm ());
-    }
+    Beam::after_line_breaking (beam->self_scm ());
 
   SCM mol = me->get_uncached_stencil ();
   Interval iv;
@@ -561,14 +559,10 @@ Stem::flag (Grob *me)
            = Staff_symbol_referencer::on_staffline (me, p) ? "0" : "1";
        }
       else
-       {
-         staffline_offs = "2";
-       }
+       staffline_offs = "2";
     }
   else
-    {
-      staffline_offs = "";
-    }
+    staffline_offs = "";
 
   char dir = (get_direction (me) == UP) ? 'u' : 'd';
   String font_char = flag_style
@@ -607,9 +601,7 @@ Stem::width_callback (SCM e, SCM ax)
   Interval r;
 
   if (is_invisible (me))
-    {
-      r.set_empty ();
-    }
+    r.set_empty ();
   else if (unsmob_grob (me->get_object ("beam")) || abs (duration_log (me)) <= 2)
     {
       r = Interval (-1, 1);
index fe2552fe956bb7705d98535179e4ebb2872e8299..cc046d51c341d78b8141598368d324be17d1ed92 100644 (file)
@@ -335,7 +335,6 @@ LY_DEFINE (ly_filled_box, "ly:round-filled-box",
                                   scm_to_double (blot)).smobbed_copy ();
 }
 
-
 LY_DEFINE (ly_register_stencil_expression, "ly:register-stencil-expression",
           1, 0, 0,
           (SCM symbol),
index 903e864b7ca04aa488565776ea12b63bf11dc5ce..9b050baf9f22ba5897e9f0054d6cee642017eeda 100644 (file)
@@ -190,7 +190,6 @@ Stencil::add_at_edge (Axis a, Direction d, Stencil const &s, Real padding,
   add_stencil (moved_to_edge (a, d, s, padding, minimum));
 }
 
-
 Stencil
 Stencil::in_color (Real r, Real g, Real b) const
 {
index 52cece087f9086f4ed46f4928ad9ae42b12e49ff..1842ffa6f9d7efa65a9f1c1458e18f23c5fa5f2d 100644 (file)
@@ -77,9 +77,7 @@ void
 System_start_delimiter_engraver::finalize ()
 {
   if (delim_)
-    {
-      delim_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn")));
-    }
+    delim_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn")));
 }
 
 #include "translator.icc"
index cc35f4b2644291870512617ed7de562aa42978e5..2fd6a6523adccaec10384fbc7d53c8a2e9d7107b 100644 (file)
@@ -38,10 +38,9 @@ System_start_delimiter::staff_bracket (Grob *me, Real height)
 
   Direction d = DOWN;
   do
-    {
-      bracket.add_at_edge (Y_AXIS, d, tips[d], -overlap, 0.0);
-    }
-  while (flip (&d) != DOWN);
+    bracket.add_at_edge (Y_AXIS, d, tips[d], -overlap, 0.0);
+  while (flip (&d) != DOWN)
+    ;
 
   return bracket;
 }
index e5bc99840eae11e11c9041715d3544abb875c7ec..932e7ce8c631beec322bfd9ce069ac03f7032b51 100644 (file)
@@ -110,9 +110,7 @@ static void
 fixup_refpoints (Link_array<Grob> const &grobs)
 {
   for (int i = grobs.size (); i--;)
-    {
-      grobs[i]->fixup_refpoint ();
-    }
+    grobs[i]->fixup_refpoint ();
 }
 
 SCM
@@ -312,9 +310,7 @@ System::post_processing ()
 
   Interval iv (extent (this, Y_AXIS));
   if (iv.is_empty ())
-    {
-      programming_error ("system with empty extent");
-    }
+    programming_error ("system with empty extent");
   else
     translate_axis (-iv[MAX], Y_AXIS);
 
index ca5c0795f6df900c008640fcf69e64709487b270..2aad5ce6ee4de9535e803fd6e25bbf28a943fdc7 100644 (file)
@@ -58,9 +58,7 @@ Tab_note_heads_engraver::try_music (Music *m)
       return true;
     }
   else if (m->is_mus_type ("busy-playing-event"))
-    {
-      return note_events_.size ();
-    }
+    return note_events_.size ();
 
   return false;
 }
index ce62499400af19ff4efdfb21db68b4c2208c30c5..4787661847d5831eb62fcd24464616521be9a7ab 100644 (file)
@@ -66,9 +66,7 @@ void
 Text_engraver::acknowledge_stem (Grob_info inf)
 {
   for (int i = 0; i < texts_.size (); i++)
-    {
-      Side_position_interface::add_support (texts_[i], inf.grob ());
-    }
+    Side_position_interface::add_support (texts_[i], inf.grob ());
 }
 
 void
index 39f31905704ce720abfbdbb913246372e3e7539c..731488e3134c3f98f9faabc0c303c0b77ce76887 100644 (file)
@@ -57,9 +57,7 @@ Text_spanner_engraver::process_music ()
   if (event_drul_[STOP])
     {
       if (!span_)
-       {
-         event_drul_[STOP]->origin ()->warning (_ ("can't find start of text spanner"));
-       }
+       event_drul_[STOP]->origin ()->warning (_ ("can't find start of text spanner"));
       else
        {
          finished_ = span_;
@@ -71,9 +69,7 @@ Text_spanner_engraver::process_music ()
   if (event_drul_[START])
     {
       if (current_event_)
-       {
-         event_drul_[START]->origin ()->warning (_ ("already have a text spanner"));
-       }
+       event_drul_[START]->origin ()->warning (_ ("already have a text spanner"));
       else
        {
          current_event_ = event_drul_[START];
index a9765c85b50f4e134d20890e283f020e8e9f52ea..33608058a6160403780f101f976e2aab31f33429 100644 (file)
@@ -82,9 +82,7 @@ bool
 Tie_engraver::try_music (Music *mus)
 {
   if (mus->is_mus_type ("tie-event"))
-    {
-      event_ = mus;
-    }
+    event_ = mus;
 
   return true;
 }
@@ -93,9 +91,7 @@ void
 Tie_engraver::process_music ()
 {
   if (event_)
-    {
-      context ()->set_property ("tieMelismaBusy", SCM_BOOL_T);
-    }
+    context ()->set_property ("tieMelismaBusy", SCM_BOOL_T);
 }
 
 void
@@ -130,9 +126,7 @@ Tie_engraver::acknowledge_note_head (Grob_info i)
     }
 
   if (ties_.size () && ! tie_column_)
-    {
-      tie_column_ = make_spanner ("TieColumn", ties_[0]->self_scm ());
-    }
+    tie_column_ = make_spanner ("TieColumn", ties_[0]->self_scm ());
 
   if (tie_column_)
     for (int i = ties_.size (); i--;)
index 314d5c6038df223b97dff32096b5c741b226409e..f49861bcb7f70ab46750008d0e939e8be3ddec20 100644 (file)
@@ -43,9 +43,7 @@ bool
 Tie_performer::try_music (Music *mus)
 {
   if (mus->is_mus_type ("tie-event"))
-    {
-      event_ = mus;
-    }
+    event_ = mus;
 
   return true;
 }
index 1cdfc199ea8e18990eeaf51aa4ef5501a5cbe97b..b73c1bdb73f31101ecc855b2bdf4a1dd2ea47211 100644 (file)
@@ -101,9 +101,7 @@ Timing_translator::start_translation_timestep ()
 
   SCM s = get_property ("measurePosition");
   if (unsmob_moment (s))
-    {
-      measposp = *unsmob_moment (s);
-    }
+    measposp = *unsmob_moment (s);
   else
     {
       measposp = now;
@@ -116,9 +114,7 @@ Timing_translator::start_translation_timestep ()
   SCM barn = get_property ("currentBarNumber");
   int b = 0;
   if (scm_is_number (barn))
-    {
-      b = scm_to_int (barn);
-    }
+    b = scm_to_int (barn);
 
   SCM cad = get_property ("timing");
   bool c = to_boolean (cad);
@@ -143,7 +139,6 @@ ADD_TRANSLATOR (Timing_translator,
                "Normally in @code{Score}.  In order to create polyrhythmic music, "
                "this engraver should be removed from @code{Score} and placed in "
                "@code{Staff}. "
-               "\n\nThis engraver adds the alias @code{Timing} to its containing context."
-               ,
+               "\n\nThis engraver adds the alias @code{Timing} to its containing context.",
 
                "", "", "", "");
index 874402d49011fa9e81cc85bdf523f5ea5ae348e9..728dd00271bb16e63f2e24ea5208661fb10e3cfc 100644 (file)
@@ -22,9 +22,7 @@ LY_DEFINE (get_all_translators, "ly:get-all-translators", 0, 0, 0, (),
   SCM l = global_translator_dict ? global_translator_dict->to_alist () : SCM_EOL;
 
   for (SCM s = l; scm_is_pair (s); s = scm_cdr (s))
-    {
-      scm_set_car_x (s, scm_cdar (s));
-    }
+    scm_set_car_x (s, scm_cdar (s));
 
   return l;
 }
index 0567fa1cc9f25d6ba0be38df5c68daa4b7500c28..5bf64576eb0b647e6fabeb4239b8fad5ef000837 100644 (file)
@@ -114,9 +114,7 @@ precomputed_recurse_over_translators (Context *c, Translator_precompute_index id
 
   for (SCM s = c->children_contexts (); scm_is_pair (s);
        s = scm_cdr (s))
-    {
-      precomputed_recurse_over_translators (unsmob_context (scm_car (s)), idx, dir);
-    }
+    precomputed_recurse_over_translators (unsmob_context (scm_car (s)), idx, dir);
 
   if (dir == UP)
     {
@@ -139,9 +137,7 @@ recurse_over_translators (Context *c, Translator_method ptr, Translator_group_me
 
   for (SCM s = c->children_contexts (); scm_is_pair (s);
        s = scm_cdr (s))
-    {
-      recurse_over_translators (unsmob_context (scm_car (s)), ptr, tg_ptr, dir);
-    }
+    recurse_over_translators (unsmob_context (scm_car (s)), ptr, tg_ptr, dir);
 
   if (dir == UP)
     {
@@ -192,9 +188,7 @@ Translator_group::precomputed_translator_foreach (Translator_precompute_index id
 {
   Array<Translator_method_binding> &bindings (precomputed_method_bindings_[idx]);
   for (int i = 0; i < bindings.size (); i++)
-    {
-      bindings[i].invoke ();
-    }
+    bindings[i].invoke ();
 }
 
 void
index 95f437e1ee182f146130182cfec952c4246b9f96..7ee181dd58af5f38eb163a58bc3816b67e7dea12 100644 (file)
@@ -66,9 +66,7 @@ Trill_spanner_engraver::process_music ()
   if (event_drul_[STOP])
     {
       if (!span_)
-       {
-         event_drul_[STOP]->origin ()->warning (_ ("can't find start of trill spanner"));
-       }
+       event_drul_[STOP]->origin ()->warning (_ ("can't find start of trill spanner"));
       else
        {
          finished_ = span_;
@@ -80,9 +78,7 @@ Trill_spanner_engraver::process_music ()
   if (event_drul_[START])
     {
       if (current_event_)
-       {
-         event_drul_[START]->origin ()->warning (_ ("already have a trill spanner"));
-       }
+       event_drul_[START]->origin ()->warning (_ ("already have a trill spanner"));
       else
        {
          current_event_ = event_drul_[START];
index f329a74d4db08952393a36c2be02bfe7d20e0e32..170fbfb71967e3deb9cfaeeaec41a19a6c2a1027 100644 (file)
@@ -83,7 +83,6 @@ print_header (void *out, FT_Face face)
   lily_cookie_fprintf (out, "end readonly def\n");
 }
 
-
 #define CHUNKSIZE 65534
 
 static void
index 828bc58e37f4ebca3759b060c2790e6e8d360dce..df5b9f30964af62ae2e83a2f719cc5df03cc1e06 100644 (file)
@@ -54,9 +54,7 @@ get_x_bound_item (Grob *me_grob, Direction hdir, Direction my_dir)
   if (Note_column::has_interface (g)
       && Note_column::get_stem (g)
       && Note_column::dir (g) == my_dir)
-    {
-      g = Note_column::get_stem (g);
-    }
+    g = Note_column::get_stem (g);
 
   return g;
 }
@@ -142,17 +140,13 @@ Tuplet_bracket::print (SCM smob)
   */
   SCM bracket = me->get_property ("bracket-visibility");
   if (scm_is_bool (bracket))
-    {
-      bracket_visibility = ly_scm2bool (bracket);
-    }
+    bracket_visibility = ly_scm2bool (bracket);
   else if (bracket == ly_symbol2scm ("if-no-beam"))
     bracket_visibility = !par_beam;
 
   SCM numb = me->get_property ("number-visibility");
   if (scm_is_bool (numb))
-    {
-      number_visibility = ly_scm2bool (numb);
-    }
+    number_visibility = ly_scm2bool (numb);
   else if (numb == ly_symbol2scm ("if-no-beam"))
     number_visibility = !par_beam;
 
@@ -229,9 +223,7 @@ Tuplet_bracket::print (SCM smob)
   */
   if (bracket_visibility && number_visibility
       && mol.extent (X_AXIS).length () > w)
-    {
-      bracket_visibility = false;
-    }
+    bracket_visibility = false;
 
   if (bracket_visibility)
     {
@@ -332,18 +324,16 @@ Tuplet_bracket::make_bracket (Grob *me, // for line properties.
 
   Direction d = LEFT;
   do
-    {
-      straight_corners[d] += -d * shorten[d] / length * dz;
-    }
-  while (flip (&d) != LEFT);
+    straight_corners[d] += -d * shorten[d] / length * dz;
+  while (flip (&d) != LEFT)
+    ;
 
   if (gap.is_empty ())
     gap = Interval (0, 0);
   do
-    {
-      gap_corners[d] = (dz * 0.5) + gap[d] / length * dz;
-    }
-  while (flip (&d) != LEFT);
+    gap_corners[d] = (dz * 0.5) + gap[d] / length * dz;
+  while (flip (&d) != LEFT)
+    ;
 
   Drul_array<Offset> flare_corners = straight_corners;
   do
@@ -403,9 +393,7 @@ Tuplet_bracket::calc_position_and_height (Grob *me_grob, Real *offset, Real *dy)
   Grob *commony = common_refpoint_of_array (columns, me, Y_AXIS);
   commony = common_refpoint_of_array (tuplets, commony, Y_AXIS);
   if (Grob *st = Staff_symbol_referencer::get_staff_symbol (me))
-    {
-      commony = st->common_refpoint (commony, Y_AXIS);
-    }
+    commony = st->common_refpoint (commony, Y_AXIS);
 
   Grob *commonx = common_refpoint_of_array (columns, me, X_AXIS);
   commonx = common_refpoint_of_array (tuplets, commonx, Y_AXIS);
@@ -591,9 +579,7 @@ Tuplet_bracket::after_line_breaking (SCM smob)
   Real offset = 0.0;
   if (!par_beam
       || get_grob_direction (par_beam) != dir)
-    {
-      calc_position_and_height (me, &offset, &dy);
-    }
+    calc_position_and_height (me, &offset, &dy);
   else
     {
       SCM ps = par_beam->get_property ("positions");
@@ -612,13 +598,9 @@ Tuplet_bracket::after_line_breaking (SCM smob)
   SCM rp = me->get_property ("right-position");
 
   if (scm_is_number (lp) && !scm_is_number (rp))
-    {
-      rp = scm_from_double (scm_to_double (lp) + dy);
-    }
+    rp = scm_from_double (scm_to_double (lp) + dy);
   else if (scm_is_number (rp) && !scm_is_number (lp))
-    {
-      lp = scm_from_double (scm_to_double (rp) - dy);
-    }
+    lp = scm_from_double (scm_to_double (rp) - dy);
   else if (!scm_is_number (rp) && !scm_is_number (lp))
     {
       lp = scm_from_double (offset);
@@ -666,7 +648,6 @@ Tuplet_bracket::add_tuplet_bracket (Grob *me, Grob *bracket)
   me->add_dependency (bracket);
 }
 
-
 ADD_INTERFACE (Tuplet_bracket,
               "tuplet-bracket-interface",
               "A bracket with a number in the middle, used for tuplets. "
index 08954e8574197b568db1dfed767589d79e97661b..49bfc8bc3a204322c70fad8b73ae10a784450d2d 100644 (file)
@@ -32,7 +32,6 @@ struct Tuplet_description
   }
 };
 
-
 class Tuplet_engraver : public Engraver
 {
 public:
index 5ee55163f8d928005344391fb4d102782131060f..7819fb380dd1187e484b54ab17dd07a5714ca8b5 100644 (file)
@@ -468,13 +468,9 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
                                              ly_bool2scm (false));
              }
            if (prev_delta_pitch < - 1)
-             {
-               glyph_name = "svaticana.reverse.plica";
-             }
+             glyph_name = "svaticana.reverse.plica";
            else
-             {
-               glyph_name = "svaticana.reverse.vplica";
-             }
+             glyph_name = "svaticana.reverse.vplica";
          }
        else // (prev_delta_pitch == 0)
          {
index fd73f5405a3c0044c631685f3ee250927d5eb3e5..62a72141a1a0f42e2d86d14febce17a0fe37044f 100644 (file)
@@ -78,9 +78,7 @@ vaticana_brew_flexa (Grob *me,
   Real interval;
   SCM flexa_height_scm = me->get_property ("flexa-height");
   if (flexa_height_scm != SCM_EOL)
-    {
-      interval = scm_to_int (flexa_height_scm);
-    }
+    interval = scm_to_int (flexa_height_scm);
   else
     {
       me->warning ("Vaticana_ligature: "
@@ -89,9 +87,7 @@ vaticana_brew_flexa (Grob *me,
     }
 
   if (interval >= 0.0)
-    {
-      me->warning (_ ("ascending vaticana style flexa"));
-    }
+    me->warning (_ ("ascending vaticana style flexa"));
 
   Real width = robust_scm2double (me->get_property ("flexa-width"), 2);
 
@@ -243,9 +239,7 @@ vaticana_brew_primitive (Grob *me)
        = Lookup::blank (Box (Interval (0, 0.5 * flexa_width), Interval (0, 0)));
     }
   else if (!String::compare (glyph_name, "flexa"))
-    {
-      out = vaticana_brew_flexa (me, true, line_thickness);
-    }
+    out = vaticana_brew_flexa (me, true, line_thickness);
   else
     {
       out
index 59aeee40d04c79b67c7dd19068624aa2db2f9fe4..ce9dd788e5f03bd43af3a5c380277d722611f5fb 100644 (file)
@@ -23,7 +23,6 @@ private:
   Grob *system_;
 };
 
-
 Vertically_spaced_contexts_engraver::Vertically_spaced_contexts_engraver ()
 {
   system_ = 0;
index 7185b8fb4b7afc39101786299d4c014fdcba7a0a..c113ee9bad8eef155d8c7e200e22dfe9d3192aa0 100644 (file)
@@ -72,9 +72,7 @@ Volta_engraver::staff_eligible ()
 {
   SCM doit = get_property ("voltaOnThisStaff");
   if (scm_is_bool (doit))
-    {
-      return to_boolean (doit);
-    }
+    return to_boolean (doit);
 
   if (!unsmob_grob (staff_))
     return false;
index c8132638f7d72788f2428c2ae8c7c8a7fc408e68..4df93c8eaa8a281724bf6ccf028bda32a6cdc3b4 100644 (file)
@@ -94,18 +94,14 @@ Volta_repeat_iterator::next_element (bool side_effect)
            }
 
          if (done_count_ == 1 && alt_count_ < rep_count_)
-           {
-             repstr = "1.--" + to_string (rep_count_ - alt_count_ + done_count_) + ".";
-           }
+           repstr = "1.--" + to_string (rep_count_ - alt_count_ + done_count_) + ".";
 
          if (done_count_ <= alt_count_)
            add_repeat_command (scm_list_n (ly_symbol2scm ("volta"),
                                            scm_makfrom0str (repstr.to_str0 ()), SCM_UNDEFINED));
        }
       else
-       {
-         add_repeat_command (ly_symbol2scm ("end-repeat"));
-       }
+       add_repeat_command (ly_symbol2scm ("end-repeat"));
     }
 }
 
index 517a9e7ed964f0f8029b19f42570a058d73541b4..f60cd2c6144831b3e7fee2ae92d10f0b222367e3 100644 (file)
@@ -48,12 +48,15 @@ displayMusic =
                 (display-scheme-music music)
                 music)
 
-%#(use-modules (scm display-lily))
-%displayLilyMusic =
-%#(def-music-function (parser location music) (ly:music?)
-%   (display-lily-init parser)
-%   (display-lily-music music)
-%   music)
+%% FIXME: guile-1.7 required?
+%% # (use-modules (scm display-lily))invalid module name for use-syntax ((srfi srfi-39))
+
+%%#(use-modules (scm display-lily))
+%%displayLilyMusic =
+%%#(def-music-function (parser location music) (ly:music?)
+%%   (display-lily-init parser)
+%%   (display-lily-music music)
+%%   music)
 
 applyoutput =
 #(def-music-function (parser location proc) (procedure?)