]> git.donarmstrong.com Git - lilypond.git/commitdiff
Run fixcc.py with astyle 2.02.
authorGraham Percival <graham@percival-music.ca>
Fri, 10 Aug 2012 14:08:32 +0000 (15:08 +0100)
committerGraham Percival <graham@percival-music.ca>
Fri, 10 Aug 2012 14:08:32 +0000 (15:08 +0100)
31 files changed:
flower/include/direction.hh
flower/include/yaffut.hh
lily/completion-note-heads-engraver.cc
lily/context-mod-scheme.cc
lily/context-scheme.cc
lily/dispatcher-scheme.cc
lily/dispatcher.cc
lily/footnote-engraver.cc
lily/global-context.cc
lily/include/lily-lexer.hh
lily/include/translator.icc
lily/lily-guile.cc
lily/moment-scheme.cc
lily/music.cc
lily/note-collision.cc
lily/one-line-page-breaking.cc
lily/page-layout-problem.cc
lily/parse-scm.cc
lily/part-combine-iterator.cc
lily/phrasing-slur-engraver.cc
lily/pitch-scheme.cc
lily/pure-from-neighbor-engraver.cc
lily/repeat-acknowledge-engraver.cc
lily/rest-collision.cc
lily/rhythmic-music-iterator.cc
lily/slur-engraver.cc
lily/spanner.cc
lily/staff-symbol-engraver.cc
lily/tie-formatting-problem.cc
lily/time-signature.cc
lily/tweak-engraver.cc

index 97c0f6d79bb59ee9f790c250a71f66c120df3a99..dcb794eea169f5225d6a97ac63b4050c8e73c96e 100644 (file)
@@ -80,7 +80,6 @@ flip (Direction *i)
 #define LEFT_and_RIGHT(d) \
   Direction d = LEFT; d != CENTER; d = (d == LEFT ? RIGHT : CENTER)
 
-
 /**
    if d > 0: the max operator
    if d < 0: the min operator
index 38fba30801089b87e10475e282e1ccc8ff88969e..aa54fa66168363eec4fe87484103c1001297f2d6 100644 (file)
@@ -398,7 +398,6 @@ void assert_throw (void (*pf) (), const char *at = "")
 #include <sys/types.h>
 #include <unistd.h>
 
-
 int main (int argc, const char *argv[])
 {
   std::cout << "pid(" << getpid () << ")" << std::endl;
index 973fb4f28dbb14a1ca3d79c8819ee8670f60cd29..e0b57b8248395b8e755f3357a95f63d8f0896d92 100644 (file)
@@ -124,13 +124,13 @@ Completion_heads_engraver::next_moment (Rational const &note_len)
   if (unit)
     {
       Rational const now_unit = e->main_part_ / unit->main_part_;
-      if (now_unit.den() > 1)
+      if (now_unit.den () > 1)
         {
           /*
             within a unit - go to the end of that
           */
           result = unit->main_part_
-            * (Rational (1) - (now_unit - now_unit.trunc_rat ()));
+                   * (Rational (1) - (now_unit - now_unit.trunc_rat ()));
         }
       else
         {
index 9c79c37859b6203b147bca35e225bfada6d4df4f..5479581b1c14f67d174c67eac28c235a03bdcc3e 100644 (file)
@@ -57,14 +57,14 @@ LY_DEFINE (ly_make_context_mod, "ly:make-context-mod",
 }
 
 LY_DEFINE (ly_context_mod_apply_x, "ly:context-mod-apply!",
-          2, 0, 0, (SCM context, SCM mod),
-          "Apply the context modification @var{mod} to @var{context}.")
+           2, 0, 0, (SCM context, SCM mod),
+           "Apply the context modification @var{mod} to @var{context}.")
 {
   LY_ASSERT_SMOB (Context, context, 1);
   LY_ASSERT_SMOB (Context_mod, mod, 2);
 
   apply_property_operations (unsmob_context (context),
-                            unsmob_context_mod (mod)->get_mods ());
+                             unsmob_context_mod (mod)->get_mods ());
   scm_remember_upto_here_1 (context);
   return SCM_UNSPECIFIED;
 }
index 4f3818ecd8a3cf87841fd7d9bccb4c34e7ca3759..64f8dd8e15a0fdb3fbf9d2f8fd1821188395c231 100644 (file)
@@ -213,9 +213,9 @@ LY_DEFINE (ly_context_events_below, "ly:context-events-below",
 }
 
 LY_DEFINE (ly_make_event_class, "ly:make-event-class",
-          2, 0, 0, (SCM context, SCM type),
-          "Make an event class (a list of types) from the given @var{type}"
-          " within the global context containing @var{context}.")
+           2, 0, 0, (SCM context, SCM type),
+           "Make an event class (a list of types) from the given @var{type}"
+           " within the global context containing @var{context}.")
 {
   LY_ASSERT_SMOB (Context, context, 1);
   LY_ASSERT_TYPE (ly_is_symbol, type, 2);
index a87074e799bd6eecfcae58819300390834bf3a22..13854b26d783fc5bde1321064831688d2a57077d 100644 (file)
@@ -92,7 +92,6 @@ LY_DEFINE (ly_listened_event_class_p, "ly:listened-event-class?",
   return scm_from_bool (result);
 }
 
-
 LY_DEFINE (ly_broadcast, "ly:broadcast",
            2, 0, 0, (SCM disp, SCM ev),
            "Send the stream event @var{ev} to the dispatcher @var{disp}.")
index 8e6350f2949432c87e7de0c8eed20480ece2ea3a..0d899f94ba7ea27cfcc0b610ee4bd14d0eecb52f 100644 (file)
@@ -181,9 +181,9 @@ Dispatcher::is_listened_class (SCM cl)
 
 static SCM
 accumulate_types (void * /* closure */,
-                 SCM key,
-                 SCM val,
-                 SCM result)
+                  SCM key,
+                  SCM val,
+                  SCM result)
 {
   if (scm_is_pair (val))
     return scm_cons (key, result);
index 2f2b9577c2b5f3e5a996147c697e585b690063f2..efa7900b00d5f570130f0dd279278c435e0b138a 100644 (file)
@@ -106,10 +106,10 @@ Footnote_engraver::acknowledge_grob (Grob_info info)
   if (mus)
     {
       if (!mus->is_mus_type ("footnote-event"))
-       {
-         mus->origin ()->programming_error (_ ("Must be footnote-event."));
-         return;
-       }
+        {
+          mus->origin ()->programming_error (_ ("Must be footnote-event."));
+          return;
+        }
 
       footnotify (info.grob (), mus->to_event (context ())->unprotect ());
 
@@ -123,16 +123,16 @@ Footnote_engraver::acknowledge_grob (Grob_info info)
       string grobname = info.grob ()->name ();
 
       for (vsize i = 0; i < events_.size (); i++)
-       {
-         SCM name = events_[i]->get_property ("symbol");
-         if (scm_is_symbol (name)
-             && grobname == ly_symbol2string (name))
-           {
-             footnotify (info.grob (), events_[i]->self_scm ());
-             // Event has exhausted its footnote
-             events_[i]->set_property ("symbol", SCM_EOL);
-           }
-       }
+        {
+          SCM name = events_[i]->get_property ("symbol");
+          if (scm_is_symbol (name)
+              && grobname == ly_symbol2string (name))
+            {
+              footnotify (info.grob (), events_[i]->self_scm ());
+              // Event has exhausted its footnote
+              events_[i]->set_property ("symbol", SCM_EOL);
+            }
+        }
     }
 }
 
index 431ffe4de371842899ef7feaf49ce2ccec307c4f..005c54b45e67b97b38e256e1d639eaea638c2e7b 100644 (file)
@@ -55,7 +55,7 @@ Global_context::Global_context (Output_def *o)
   SCM p = get_property ("EventClasses");
 
   ancestor_lookup_ = scm_make_hash_table (scm_length (p));
-  for (;scm_is_pair (p); p = scm_cdr (p))
+  for (; scm_is_pair (p); p = scm_cdr (p))
     scm_hashq_set_x (ancestor_lookup_, scm_caar (p), scm_car (p));
 
   accepts_list_ = scm_list_1 (ly_symbol2scm ("Score"));
index e078c9edc394a02b26ade5b66236f11d419197ac..caa3b4b44b5987f5c094b74a8ad96606a8c4b7d7 100644 (file)
@@ -52,7 +52,7 @@ private:
   int hidden_state_;
   SCM eval_scm (SCM, char extra_token = 0);
 public:
-  SCM eval_scm_token (SCM sval)  { return eval_scm (sval, '#'); }
+  SCM eval_scm_token (SCM sval) { return eval_scm (sval, '#'); }
   SCM extra_tokens_;
   YYSTYPE *lexval_;
   Input *lexloc_;
index fec5aaacb121f76d7e5d8774e4d66d640328f9eb..4ce8f6902e2fb5a451852389ba6869e00d6d9843 100644 (file)
@@ -36,8 +36,8 @@
   static void _ ## T ## _adder ()                                       \
   {                                                                     \
     T *t = new T;                                                       \
-    T::static_description_ =                                           \
-      scm_permanent_object (t->static_translator_description ());      \
+    T::static_description_ =                                            \
+      scm_permanent_object (t->static_translator_description ());       \
     add_translator (t);                                                 \
   }                                                                     \
   SCM T::translator_description () const                                \
index 96097e4cf0058bb8205ad83d9159ba88ce6d5a7e..e8380324fbe40f84311c5592c4100046c99e7194 100644 (file)
@@ -582,8 +582,8 @@ ly_rational2scm (Rational r)
 {
   if (r.is_infinity ())
     {
-      if (r > Rational(0))
-       return scm_inf ();
+      if (r > Rational (0))
+        return scm_inf ();
 
       return scm_difference (scm_inf (), SCM_UNDEFINED);
     }
@@ -598,17 +598,17 @@ ly_scm2rational (SCM r)
   if (scm_is_true (scm_inf_p (r)))
     {
       if (scm_is_true (scm_positive_p (r)))
-       {
-         Rational r;
-         r.set_infinite (1);
-         return r;
-       }
+        {
+          Rational r;
+          r.set_infinite (1);
+          return r;
+        }
       else
-       {
-         Rational r;
-         r.set_infinite (-1);
-         return r;
-       }
+        {
+          Rational r;
+          r.set_infinite (-1);
+          return r;
+        }
     }
 
   return Rational (scm_to_int64 (scm_numerator (r)),
@@ -628,8 +628,8 @@ bool
 ly_is_rational (SCM n)
 {
   return (scm_is_real (n)
-         && (scm_is_true (scm_exact_p (n))
-             || scm_is_true (scm_inf_p (n))));
+          && (scm_is_true (scm_exact_p (n))
+              || scm_is_true (scm_inf_p (n))));
 }
 
 SCM
index 2d81e8075e6c554c8544cfe76a82b0d61f78ab17..e7ed72f093807c0c2be7533eea62736c16c8099d 100644 (file)
@@ -29,14 +29,14 @@ LY_DEFINE (ly_make_moment, "ly:make-moment",
            " a pair of rationals (@var{m},@tie{}@var{g}), where @var{m} is"
            " the timing for the main notes, and @var{g} the timing for"
            " grace notes.  In absence of grace notes, @var{g}@tie{}is zero.\n"
-          "\n"
-          "For compatibility reasons, it is possible to write two"
-          " numbers specifying numerator and denominator instead of"
+           "\n"
+           "For compatibility reasons, it is possible to write two"
+           " numbers specifying numerator and denominator instead of"
            " the rationals.  These forms cannot be mixed, and the two-"
-          "argument form is disambiguated by the sign of the second"
-          " argument: if it is positive, it can only be a denominator"
-          " and not a grace timing."
-)
+           "argument form is disambiguated by the sign of the second"
+           " argument: if it is positive, it can only be a denominator"
+           " and not a grace timing."
+          )
 {
   LY_ASSERT_TYPE (ly_is_rational, m, 1);
   if (SCM_UNBNDP (g))
@@ -46,14 +46,14 @@ LY_DEFINE (ly_make_moment, "ly:make-moment",
     {
       LY_ASSERT_TYPE (ly_is_rational, g, 2);
       if (scm_is_true (scm_positive_p (g)))
-       {
-         LY_ASSERT_TYPE (scm_is_integer, m, 1);
-         LY_ASSERT_TYPE (scm_is_integer, g, 2);
-         return Moment (Rational (scm_to_int64 (m),
-                                  scm_to_int64 (g))).smobbed_copy ();
-       }
+        {
+          LY_ASSERT_TYPE (scm_is_integer, m, 1);
+          LY_ASSERT_TYPE (scm_is_integer, g, 2);
+          return Moment (Rational (scm_to_int64 (m),
+                                   scm_to_int64 (g))).smobbed_copy ();
+        }
       return Moment (ly_scm2rational (m),
-                    ly_scm2rational (g)).smobbed_copy ();
+                     ly_scm2rational (g)).smobbed_copy ();
     }
 
   LY_ASSERT_TYPE (scm_is_integer, m, 1);
@@ -173,7 +173,6 @@ LY_DEFINE (ly_moment_main, "ly:moment-main",
   return ly_rational2scm (unsmob_moment (mom)->main_part_);
 }
 
-
 LY_DEFINE (ly_moment_main_numerator, "ly:moment-main-numerator",
            1, 0, 0, (SCM mom),
            "Extract numerator from main timing.")
index cc814c074b456256eeb8f089781957c178091a46..7a38d7af41d84851151b65e2c5bcbdaa4cc4e010 100644 (file)
@@ -234,7 +234,7 @@ transpose_mutable (SCM alist, Pitch delta)
             m->transpose (delta);
         }
       else if (prop == ly_symbol2scm ("elements")
-              || prop == ly_symbol2scm ("articulations"))
+               || prop == ly_symbol2scm ("articulations"))
         transpose_music_list (val, delta);
       else if (prop == ly_symbol2scm ("pitch-alist")
                && scm_is_pair (val))
@@ -280,7 +280,7 @@ Music::to_event (Context *c) const
     programming_error ("Not a music type");
 
   Stream_event *e = new Stream_event (c->make_event_class (class_name),
-                                     mutable_property_alist_);
+                                      mutable_property_alist_);
   Moment length = get_length ();
   if (length.to_bool ())
     e->set_property ("length", length.smobbed_copy ());
index e1c196650c55148968eea9e7fa95acafc0e1e9b8..3ab245ca5e84591fd924d65cf3334f5b7082e481 100644 (file)
@@ -178,7 +178,7 @@ check_meshing_chords (Grob *me,
   full_collide = full_collide || (close_half_collide
                                   && distant_half_collide)
                  || ( distant_half_collide // like full_ for wholes and longer
-                     && (up_ball_type <= 0 || down_ball_type <= 0));
+                      && (up_ball_type <= 0 || down_ball_type <= 0));
 
   /* Determine which chord goes on the left, and which goes right.
      Up-stem usually goes on the right, but if chords just 'touch' we can put
index 018ef9cff390b4fa9e1b68e9ec0677d22a523b20..213864462fbfcca8f2af61ee8cfbf5ecd5469666 100644 (file)
@@ -55,7 +55,7 @@ One_line_page_breaking::solve ()
     {
       if (Paper_score *ps = system_specs_[i].pscore_)
         {
-          vector<Grob*> cols = ps->root_system ()->used_columns ();
+          vector<Grob *> cols = ps->root_system ()->used_columns ();
 
           // No indent, "infinite" line width, ragged.
           Column_x_positions pos = get_line_configuration (cols, numeric_limits<Real>::max (), 0, true);
index 68f870b2dc7f19959e11ea859d036e49da009d8b..7c9967055146637364524d559b0e11095482e739 100644 (file)
@@ -592,7 +592,7 @@ Page_layout_problem::append_system (System *sys, Spring const &spring, Real inde
       if (sky)
         first_skyline.merge ((*sky)[UP]);
       first_skyline.shift (indent);
-      minimum_distance = first_skyline.distance (bottom_skyline_) - bottom_loose_baseline_ ;
+      minimum_distance = first_skyline.distance (bottom_skyline_) - bottom_loose_baseline_;
     }
   bottom_skyline_ = down_skyline;
   elements_.push_back (Element (elts, minimum_offsets, minimum_distance, padding));
index 3dc07fa3d5c68e5295ebe3c6b1353c383088fa58..44b99db2adbe51f0c6c34e2ab521c5d23a2cbfac 100644 (file)
@@ -68,9 +68,9 @@ internal_ly_parse_scm (Parse_start *ps)
             form = scm_list_1 (c);
         }
       if (multiple)
-       form = scm_list_3 (ly_symbol2scm ("apply"),
-                          ly_symbol2scm ("values"),
-                          form);
+        form = scm_list_3 (ly_symbol2scm ("apply"),
+                           ly_symbol2scm ("values"),
+                           form);
       return scm_cons (form, make_input (ps->start_location_));
     }
 
index 06449fb5dca228c13dd6a9daa0269cbce80c400e..c0c9acc89306268535dca2c3a13b2fc56e0b4d54 100644 (file)
@@ -224,8 +224,8 @@ Part_combine_iterator::kill_mmrest (int in)
   if (!mmrest_event_)
     {
       mmrest_event_ = new Stream_event
-       (handles_[in].get_context ()->make_event_class
-        (ly_symbol2scm ("multi-measure-rest-event")));
+      (handles_[in].get_context ()->make_event_class
+       (ly_symbol2scm ("multi-measure-rest-event")));
       mmrest_event_->set_property ("duration", SCM_EOL);
       mmrest_event_->unprotect ();
     }
@@ -261,7 +261,7 @@ Part_combine_iterator::unisono (bool silent)
           if (!unisono_event_)
             {
               unisono_event_ = new Stream_event
-               (out->make_event_class (ly_symbol2scm ("unisono-event")));
+              (out->make_event_class (ly_symbol2scm ("unisono-event")));
               unisono_event_->unprotect ();
             }
 
@@ -290,8 +290,8 @@ Part_combine_iterator::solo1 ()
           if (!solo_one_event_)
             {
               solo_one_event_ = new Stream_event
-               (first_iter_->get_outlet ()->make_event_class
-                (ly_symbol2scm ("solo-one-event")));
+              (first_iter_->get_outlet ()->make_event_class
+               (ly_symbol2scm ("solo-one-event")));
               solo_one_event_->unprotect ();
             }
 
@@ -317,8 +317,8 @@ Part_combine_iterator::solo2 ()
           if (!solo_two_event_)
             {
               solo_two_event_ = new Stream_event
-               (second_iter_->get_outlet ()->make_event_class
-                (ly_symbol2scm ("solo-two-event")));
+              (second_iter_->get_outlet ()->make_event_class
+               (ly_symbol2scm ("solo-two-event")));
               solo_two_event_->unprotect ();
             }
 
index 5e5e7ced8cfa0650b29a81b80f42cd7487ce7f8a..123878b644b7e753e876af2f3ee18013e6f0547b 100644 (file)
@@ -83,9 +83,9 @@ Phrasing_slur_engraver::Phrasing_slur_engraver ()
 void
 Phrasing_slur_engraver::derived_mark () const
 {
-  for (vsize i=start_events_.size(); i--;)
+  for (vsize i = start_events_.size (); i--;)
     scm_gc_mark (start_events_[i]->self_scm ());
-  for (vsize i=stop_events_.size(); i--;)
+  for (vsize i = stop_events_.size (); i--;)
     scm_gc_mark (stop_events_[i]->self_scm ());
 }
 
@@ -203,7 +203,7 @@ Phrasing_slur_engraver::process_music ()
           for (vsize j = stop_events_.size (); --j > i;)
             {
               if (id == robust_scm2string (stop_events_[j]->get_property ("spanner-id"), ""))
-                stop_events_.erase (stop_events_.begin() + j);
+                stop_events_.erase (stop_events_.begin () + j);
             }
         }
       else
@@ -241,10 +241,11 @@ Phrasing_slur_engraver::process_music ()
 
               Stream_event *c = unsmob_stream_event (slurs_[j]->get_property ("cause"));
 
-              if (!c) {
-                slurs_[j]->programming_error ("phrasing slur without a cause");
-                continue;
-              }
+              if (!c)
+                {
+                  slurs_[j]->programming_error ("phrasing slur without a cause");
+                  continue;
+                }
 
               Direction slur_dir = to_dir (c->get_property ("direction"));
 
index f4231f06859ed305a70a6bdc73d2e0fabb3f6337..0433325523d9c9dbf4e20c9993fed55ee6308043 100644 (file)
@@ -105,7 +105,7 @@ LY_DEFINE (ly_pitch_notename, "ly:pitch-notename",
 }
 
 LY_DEFINE (ly_pitch_tones, "ly:pitch-tones",
-          1, 0, 0, (SCM pp),
+           1, 0, 0, (SCM pp),
            "Calculate the number of tones of@tie{}@var{pp} from"
            " middle@tie{}C as a rational number.")
 {
@@ -113,7 +113,6 @@ LY_DEFINE (ly_pitch_tones, "ly:pitch-tones",
   return ly_rational2scm (unsmob_pitch (pp)->tone_pitch ());
 }
 
-
 LY_DEFINE (ly_pitch_quartertones, "ly:pitch-quartertones",
            1, 0, 0, (SCM pp),
            "Calculate the number of quarter tones of@tie{}@var{pp} from"
index 413bfe5215d2b5c29e8b08e7799981071aa32bab..1018dc54f6efc762aab8e734cdd76f7e7c09b0b7 100644 (file)
@@ -124,12 +124,12 @@ Pure_from_neighbor_engraver::finalize ()
           for (vsize k = 0;
                k < need_pure_heights_from_neighbors[pos[j]].size ();
                k++)
-            if (!in_same_column(need_pure_heights_from_neighbors[pos[j]][k],
-                                pure_relevants_[i]))
+            if (!in_same_column (need_pure_heights_from_neighbors[pos[j]][k],
+                                 pure_relevants_[i]))
               Pointer_group_interface::add_grob
-                (need_pure_heights_from_neighbors[pos[j]][k],
-                 ly_symbol2scm ("neighbors"),
-                 pure_relevants_[i]);
+              (need_pure_heights_from_neighbors[pos[j]][k],
+               ly_symbol2scm ("neighbors"),
+               pure_relevants_[i]);
     }
 
   need_pure_heights_from_neighbors_.clear ();
index 6ebb7199940bb30d66765ec19b5bad54a0feb6ba..6d3234c6c6ce8b6145cfdf685729f1d35ddefdbd 100644 (file)
@@ -105,20 +105,17 @@ Repeat_acknowledge_engraver::process_music ()
         s = robust_scm2string (get_property ("doubleRepeatSegnoType"), ":|S|:");
       else // { segno, start }
         s = robust_scm2string (get_property ("startRepeatSegnoType"), ".S|:");
-    else
-      if (end) // { segno, end }
-        s = robust_scm2string (get_property ("endRepeatSegnoType"), ":|S");
-      else // { segno }
-        s = robust_scm2string (get_property ("segnoType"), "S");
-  else
-    if (start)
-      if (end) // { start, end }
-        s = robust_scm2string (get_property ("doubleRepeatType"), ":|:");
-      else // { start }
-        s = robust_scm2string (get_property ("startRepeatType"), "|:");
-    else
-      if (end) // { end }
-        s = robust_scm2string (get_property ("endRepeatType"), ":|");
+    else if (end) // { segno, end }
+      s = robust_scm2string (get_property ("endRepeatSegnoType"), ":|S");
+    else // { segno }
+      s = robust_scm2string (get_property ("segnoType"), "S");
+  else if (start)
+    if (end) // { start, end }
+      s = robust_scm2string (get_property ("doubleRepeatType"), ":|:");
+    else // { start }
+      s = robust_scm2string (get_property ("startRepeatType"), "|:");
+  else if (end) // { end }
+    s = robust_scm2string (get_property ("endRepeatType"), ":|");
 
   /*
     TODO: line breaks might be allowed if we set whichBar to "".
index 0e7a01c5a7a204ec05f51f38cf0cd4af9a294884..e2b0db5ef2352e6e6d002259d90386bb97579bee 100644 (file)
@@ -149,7 +149,6 @@ Rest_collision::calc_positioning_done (SCM smob)
       for (LEFT_and_RIGHT (d))
         vector_sort (ordered_rests[d], rest_shift_less);
 
-
       for (LEFT_and_RIGHT (d))
         {
           if (ordered_rests[d].size () < 1)
index 951c145ec83c65cee469f4cec50c6c1adafab3a5..b50122e8bb39df97cb7e33e1a6f9fcd642baa86e 100644 (file)
@@ -59,10 +59,10 @@ Rhythmic_music_iterator::process (Moment m)
           SCM unlistened = SCM_EOL;
           for (; scm_is_pair (arts); arts = scm_cdr (arts))
             {
-             SCM art = scm_car (arts);
+              SCM art = scm_car (arts);
 
               if (c->event_source ()->is_listened_class
-                 (unsmob_stream_event (art)->get_property ("class")))
+                  (unsmob_stream_event (art)->get_property ("class")))
                 listened = scm_cons (art, listened);
               else
                 unlistened = scm_cons (art, unlistened);
index 0a36aa10f2afb04439bab69b49c72263871e87ca..03f5a5c430667ca9783b9578c454202aa55d6859 100644 (file)
@@ -84,9 +84,9 @@ Slur_engraver::Slur_engraver ()
 void
 Slur_engraver::derived_mark () const
 {
-  for (vsize i=start_events_.size(); i--;)
+  for (vsize i = start_events_.size (); i--;)
     scm_gc_mark (start_events_[i]->self_scm ());
-  for (vsize i=stop_events_.size(); i--;)
+  for (vsize i = stop_events_.size (); i--;)
     scm_gc_mark (stop_events_[i]->self_scm ());
 }
 
@@ -204,7 +204,7 @@ Slur_engraver::process_music ()
           for (vsize j = stop_events_.size (); --j > i;)
             {
               if (id == robust_scm2string (stop_events_[j]->get_property ("spanner-id"), ""))
-                stop_events_.erase (stop_events_.begin() + j);
+                stop_events_.erase (stop_events_.begin () + j);
             }
         }
       else
@@ -242,10 +242,11 @@ Slur_engraver::process_music ()
 
               Stream_event *c = unsmob_stream_event (slurs_[j]->get_property ("cause"));
 
-              if (!c) {
-                slurs_[j]->programming_error ("slur without a cause");
-                continue;
-              }
+              if (!c)
+                {
+                  slurs_[j]->programming_error ("slur without a cause");
+                  continue;
+                }
 
               Direction slur_dir = to_dir (c->get_property ("direction"));
 
index eeff11bba7186a0d0360e886c959d0b93e2334c1..af2ea7137f0d9ab4dbddc9127d6dfc03f549e180 100644 (file)
@@ -328,7 +328,7 @@ Spanner::derived_mark () const
   for (LEFT_and_RIGHT (d))
     if (spanned_drul_[d])
       scm_gc_mark (spanned_drul_[d]->self_scm ());
-    ;
+  ;
 
   for (vsize i = broken_intos_.size (); i--;)
     scm_gc_mark (broken_intos_[i]->self_scm ());
index 66ee8002a76ca376410033e6a043c4c355dfec1f..1ca6a4dce1f57ad256f472bba2c0eda6a960a602 100644 (file)
@@ -52,10 +52,11 @@ protected:
 void
 Staff_symbol_engraver::derived_mark () const
 {
-  for (LEFT_and_RIGHT (d)) {
-    if (span_events_[d])
-      scm_gc_mark (span_events_[d]->self_scm ());
-  }
+  for (LEFT_and_RIGHT (d))
+    {
+      if (span_events_[d])
+        scm_gc_mark (span_events_[d]->self_scm ());
+    }
 }
 
 Staff_symbol_engraver::~Staff_symbol_engraver ()
index e2c3736f70d380147386b06847db5ee2849df594..f514b390957628461d0fa63940823086d09afdd8 100644 (file)
@@ -497,10 +497,10 @@ Tie_formatting_problem::generate_configuration (int pos, Direction dir,
         size.
 
        */
-      Interval staff_span =
-        Staff_symbol_referencer::staff_span (details_.staff_symbol_referencer_);
+      Interval staff_span
+        Staff_symbol_referencer::staff_span (details_.staff_symbol_referencer_);
       staff_span.widen (-1);
-      bool const within_staff = staff_span.contains(pos);
+      bool const within_staff = staff_span.contains (pos);
       if (head_positions_slice (columns[LEFT]).contains (pos)
           || head_positions_slice (columns[RIGHT]).contains (pos)
           || within_staff)
@@ -721,8 +721,8 @@ Tie_formatting_problem::score_configuration (Tie_configuration *conf) const
   Real top_y = tip_y + conf->dir_ * height;
   Real top_pos = 2 * top_y / details_.staff_space_;
   Real round_top_pos = rint (top_pos);
-  Interval staff_span =
-    Staff_symbol_referencer::staff_span (details_.staff_symbol_referencer_);
+  Interval staff_span
+    Staff_symbol_referencer::staff_span (details_.staff_symbol_referencer_);
   if (Staff_symbol_referencer::on_line (details_.staff_symbol_referencer_,
                                         int (round_top_pos))
       && staff_span[UP] * 0.5 > top_y)
index 082b62a93c0f45bd0d7f786fd4808e22dde1496b..263817c7082fc82b724b9b765965a312487d85ea 100644 (file)
@@ -72,7 +72,7 @@ Time_signature::print (SCM smob)
           Real pos = linepos.front ();
           Real dist = fabs (pos - mid);
           for (std::vector<Real>::const_iterator
-                 i = linepos.begin (), e = linepos.end ();
+               i = linepos.begin (), e = linepos.end ();
                ++i != e;)
             {
               double const d = fabs (*i - mid);
@@ -84,7 +84,7 @@ Time_signature::print (SCM smob)
             }
 
           m.translate_axis
-            (pos * Staff_symbol_referencer::staff_space (me) / 2, Y_AXIS);
+          (pos * Staff_symbol_referencer::staff_space (me) / 2, Y_AXIS);
         }
     }
 
index d1c3c240a4a83fb7ae7fd28ff58cac68ecbca158..d6fb7855224349f018e762cc23aea1c13ed6cc14 100644 (file)
@@ -49,13 +49,15 @@ Tweak_engraver::acknowledge_grob (Grob_info info)
       for (SCM s = ev->get_property ("tweaks");
            scm_is_pair (s); s = scm_cdr (s))
         {
-         if (scm_is_pair (scm_caar (s))) {
-           if (SCM_UNBNDP (grobname))
-             grobname = scm_from_locale_symbol (info.grob ()->name ().c_str ());
-           if (scm_is_eq (scm_caaar (s), grobname))
-             info.grob ()->set_property (scm_cdaar (s), scm_cdar (s));
-         } else if (direct)
-           info.grob ()->set_property (scm_caar (s), scm_cdar (s));
+          if (scm_is_pair (scm_caar (s)))
+            {
+              if (SCM_UNBNDP (grobname))
+                grobname = scm_from_locale_symbol (info.grob ()->name ().c_str ());
+              if (scm_is_eq (scm_caaar (s), grobname))
+                info.grob ()->set_property (scm_cdaar (s), scm_cdar (s));
+            }
+          else if (direct)
+            info.grob ()->set_property (scm_caar (s), scm_cdar (s));
         }
     }
 }