]> git.donarmstrong.com Git - lilypond.git/commitdiff
codingstyle nits: space before ( and after ,
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 27 Jan 2007 13:18:43 +0000 (14:18 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 27 Jan 2007 13:18:43 +0000 (14:18 +0100)
142 files changed:
lily/accidental-placement.cc
lily/align-interface.cc
lily/all-font-metrics-scheme.cc
lily/audio-item.cc
lily/auto-beam-engraver.cc
lily/axis-group-interface-scheme.cc
lily/axis-group-interface.cc
lily/balloon-engraver.cc
lily/balloon.cc
lily/bar-line.cc
lily/bar-number-engraver.cc
lily/beam-engraver.cc
lily/beam.cc
lily/beaming-pattern.cc
lily/bezier-bow.cc
lily/bezier.cc
lily/book-scheme.cc
lily/book.cc
lily/break-alignment-interface.cc
lily/cluster.cc
lily/constrained-breaking.cc
lily/context-def.cc
lily/context-property.cc
lily/context-scheme.cc
lily/context-specced-music-iterator.cc
lily/control-track-performer.cc
lily/dispatcher-scheme.cc
lily/dispatcher.cc
lily/dot-column.cc
lily/dots-engraver.cc
lily/drum-note-performer.cc
lily/duration-scheme.cc
lily/dynamic-performer.cc
lily/enclosing-bracket.cc
lily/engraver-group.cc
lily/figured-bass-continuation.cc
lily/figured-bass-engraver.cc
lily/figured-bass-position-engraver.cc
lily/file-name-map.cc
lily/font-config-scheme.cc
lily/font-metric-scheme.cc
lily/freetype-error.cc
lily/function-documentation.cc
lily/general-scheme.cc
lily/global-context-scheme.cc
lily/grob-array-scheme.cc
lily/grob-interface-scheme.cc
lily/grob-property.cc
lily/grob-scheme.cc
lily/grob-smob.cc
lily/grob.cc
lily/hairpin.cc
lily/horizontal-bracket.cc
lily/input-scheme.cc
lily/instrument-switch-engraver.cc
lily/key-engraver.cc
lily/key-signature-interface.cc
lily/ledger-line-spanner.cc
lily/lily-guile.cc
lily/lily-lexer-scheme.cc
lily/lily-lexer.cc
lily/lily-parser-scheme.cc
lily/line-interface.cc
lily/line-spanner.cc
lily/lyric-combine-music-iterator.cc
lily/main.cc
lily/melody-spanner.cc
lily/midi-chunk.cc
lily/moment-scheme.cc
lily/music-scheme.cc
lily/new-fingering-engraver.cc
lily/note-collision.cc
lily/note-head-scheme.cc
lily/note-head.cc
lily/note-performer.cc
lily/note-spacing.cc
lily/open-type-font-scheme.cc
lily/open-type-font.cc
lily/ottava-bracket.cc
lily/output-def.cc
lily/output-property-engraver.cc
lily/page-spacing.cc
lily/pango-font.cc
lily/paper-book.cc
lily/paper-column-engraver.cc
lily/paper-outputter-scheme.cc
lily/paper-system.cc
lily/parenthesis-engraver.cc
lily/percent-repeat-engraver.cc
lily/percent-repeat-iterator.cc
lily/performance-scheme.cc
lily/piano-pedal-bracket.cc
lily/piano-pedal-performer.cc
lily/pitch-scheme.cc
lily/pitch.cc
lily/prob-scheme.cc
lily/prob.cc
lily/relocate.cc
lily/rest-collision.cc
lily/scale.cc
lily/score-engraver.cc
lily/score-scheme.cc
lily/script-interface.cc
lily/semi-tie-column.cc
lily/semi-tie.cc
lily/separation-item.cc
lily/simple-closure.cc
lily/simple-spacer-scheme.cc
lily/skyline.cc
lily/slur-scoring.cc
lily/slur.cc
lily/smobs.cc
lily/source-file.cc
lily/spacing-spanner.cc
lily/spanner-scheme.cc
lily/spanner.cc
lily/staff-symbol.cc
lily/stem-tremolo.cc
lily/stem.cc
lily/stencil-scheme.cc
lily/stream-event-scheme.cc
lily/system-start-delimiter-engraver.cc
lily/system-start-delimiter.cc
lily/system-start-text.cc
lily/system.cc
lily/tab-harmonic-engraver.cc
lily/tab-staff-symbol-engraver.cc
lily/tie-column.cc
lily/tie-configuration.cc
lily/tie-details.cc
lily/tie-engraver.cc
lily/tie-formatting-problem.cc
lily/tie-performer.cc
lily/tie.cc
lily/time-scaled-music-iterator.cc
lily/translator.cc
lily/ttf.cc
lily/tuplet-bracket.cc
lily/tuplet-engraver.cc
lily/tuplet-number.cc
lily/tweak-engraver.cc
lily/vaticana-ligature-engraver.cc

index 15049f5bc0d076c568cc395608bd46a808407bb4..8e75206dc81bafeb5da5451d625ac70b4d1ca8aa 100644 (file)
@@ -243,7 +243,7 @@ stagger_apes (vector<Accidental_placement_entry*> *apes)
 
 */
 
-MAKE_SCHEME_CALLBACK(Accidental_placement, calc_positioning_done, 1);
+MAKE_SCHEME_CALLBACK (Accidental_placement, calc_positioning_done, 1);
 SCM
 Accidental_placement::calc_positioning_done (SCM smob)
 {
index 09887a7c9fd893581d403f539f87fabc495e3570..4d0c6eb3241bee02a574a42762c106f08c2d32f5 100644 (file)
@@ -48,7 +48,7 @@ Align_interface::calc_positioning_done (SCM smob)
 /*
   merge with align-to-extents?
 */
-MAKE_SCHEME_CALLBACK(Align_interface, stretch_after_break, 1)
+MAKE_SCHEME_CALLBACK (Align_interface, stretch_after_break, 1)
 SCM
 Align_interface::stretch_after_break (SCM grob)
 {
@@ -75,7 +75,7 @@ Align_interface::stretch_after_break (SCM grob)
 
       Direction stacking_dir = robust_scm2dir (me->get_property ("stacking-dir"),
                                               DOWN);
-      Real delta  = extra_space / elems.size() * stacking_dir;
+      Real delta  = extra_space / elems.size () * stacking_dir;
       for (vsize i = 0; i < elems.size (); i++)
        elems[i]->translate_axis (i * delta, Y_AXIS);
     }
index c74f9596b43ff3b2a9549631215384c7f91da9f6..793b4c58757f796f5ff6b07a4123139bf4c8c3dc 100644 (file)
@@ -26,7 +26,7 @@ LY_DEFINE (ly_font_load, "ly:font-load", 1, 0, 0,
           (SCM name),
           "Load the font @var{name}. ")
 {
-  LY_ASSERT_TYPE(scm_is_string, name, 1);
+  LY_ASSERT_TYPE (scm_is_string, name, 1);
   
   Font_metric *fm = all_fonts_global->find_font (ly_scm2string (name));
 
index 41381458f6e4f474a6d5c3167254d465c387d791..9916dd15af5cce2646ceb34cdc2164c30cc20bf0 100644 (file)
@@ -127,7 +127,7 @@ Audio_span_dynamic::render ()
 
   Real total_t = moment_to_real (dynamics_.back ()->get_column ()->when () - start);
   
-  for (vsize i = 1; i < dynamics_.size(); i ++)
+  for (vsize i = 1; i < dynamics_.size (); i ++)
     {
       Moment dt_moment = dynamics_[i]->get_column ()->when ()
        - start;
index d2cef6ae1693ecb2bd9bf8a928958b9978a7fb4a..9f5e53da69fa27b3dfa465fcc17cff9ef45c8c7f 100644 (file)
@@ -185,7 +185,7 @@ Auto_beam_engraver::create_beam ()
       return 0;
 
   /*
-    Can't use make_spanner_from_properties() because we have to use
+    Can't use make_spanner_from_properties () because we have to use
     beam_settings_.
   */
   Spanner *beam = new Spanner (beam_settings_);
index 11306233be02fb1e07f2be1b6f52a9427d8a1c78..3b529ed34e8b73a662081d204ba7b2001a63dd10 100644 (file)
@@ -19,8 +19,8 @@ LY_DEFINE (ly_relative_group_extent, "ly:relative-group-extent",
   Grob_array *ga = unsmob_grob_array (elements);
 
   SCM_ASSERT_TYPE (ga || scm_is_pair (elements), elements, SCM_ARG1, __FUNCTION__, "list or Grob_array");
-  LY_ASSERT_SMOB(Grob, common, 2);
-  LY_ASSERT_TYPE(is_axis, axis, 3);
+  LY_ASSERT_SMOB (Grob, common, 2);
+  LY_ASSERT_TYPE (is_axis, axis, 3);
 
   vector<Grob*> elts;
   if (!ga)
index 23c30872474d31267c92d093122dd1be452d6a1b..bd53cbd2c3010fd123ceba132a98a146ec8cad27 100644 (file)
@@ -294,7 +294,7 @@ Axis_group_interface::calc_pure_elts_and_common (Grob *me)
   return common;
 }
 
-MAKE_SCHEME_CALLBACK(Axis_group_interface,calc_x_common, 1);
+MAKE_SCHEME_CALLBACK (Axis_group_interface, calc_x_common, 1);
 SCM
 Axis_group_interface::calc_x_common (SCM grob)
 {
@@ -305,7 +305,7 @@ Axis_group_interface::calc_x_common (SCM grob)
   return common->self_scm ();
 }
 
-MAKE_SCHEME_CALLBACK(Axis_group_interface,calc_y_common, 1);
+MAKE_SCHEME_CALLBACK (Axis_group_interface, calc_y_common, 1);
 SCM
 Axis_group_interface::calc_y_common (SCM grob)
 {
index 6239b9e31c9ed0c8038368973b71f95f0bbb1d3d..b1497ef4038341109283bcd980ea8e4ab82f477e 100644 (file)
 
 class Balloon_engraver : public Engraver
 {
-  TRANSLATOR_DECLARATIONS(Balloon_engraver);
+  TRANSLATOR_DECLARATIONS (Balloon_engraver);
 
-  DECLARE_TRANSLATOR_LISTENER(annotate_output);
-  DECLARE_ACKNOWLEDGER(grob);
+  DECLARE_TRANSLATOR_LISTENER (annotate_output);
+  DECLARE_ACKNOWLEDGER (grob);
   vector<Stream_event *> events_;
 
   void stop_translation_timestep ();
@@ -77,9 +77,9 @@ Balloon_engraver::acknowledge_grob (Grob_info info)
 
 
   
-ADD_ACKNOWLEDGER(Balloon_engraver,grob);
+ADD_ACKNOWLEDGER (Balloon_engraver, grob);
   
-ADD_TRANSLATOR(Balloon_engraver,
+ADD_TRANSLATOR (Balloon_engraver,
               "Create balloon texts",
               "BalloonTextItem ",
               /*read*/ "",
index 739fffcaf77ece7a1c6fa1bcbd5a8fb78397deca..afaaad8e3713140a71835985f30cfd670c4244a6 100644 (file)
@@ -30,7 +30,7 @@ Balloon_interface::print (SCM smob)
 
   Grob *p = me->get_parent (X_AXIS);
   
-  Offset off(me->relative_coordinate (p, X_AXIS),
+  Offset off (me->relative_coordinate (p, X_AXIS),
             me->relative_coordinate (p, Y_AXIS));
 
   Box b (p->extent (p, X_AXIS),
index 75dbc6c1be36779ab174971dd9a7cafc6f46aca4..78012a55a1a5d6630416b327daa2c5ecc71fa20e 100644 (file)
@@ -201,7 +201,7 @@ Bar_line::dashed_bar_line (Grob *me, Real h, Real thick)
          Real bot_y = max ((i - dash_size) * half_space,
                            -(count-1) * half_space - line_thick/2);
 
-         bar.add_stencil (Lookup::round_filled_box (Box (Interval (0,thick),
+         bar.add_stencil (Lookup::round_filled_box (Box (Interval (0, thick),
                                                          Interval (bot_y, top_y)),
                                                     blot));
        }
@@ -234,7 +234,7 @@ Bar_line::dashed_bar_line (Grob *me, Real h, Real thick)
       s.translate (Offset (thick/2, -h/2));
       return s;
     }
-  return Stencil();
+  return Stencil ();
 }
 
 
index ecc83ac756b6bfa315c6f788897d4f1d93bd67d1..3693f97b3e286095f23a10cb94a38334d486432c 100644 (file)
@@ -116,8 +116,8 @@ Bar_number_engraver::create_items ()
 }
 
 
-ADD_ACKNOWLEDGER(Bar_number_engraver,break_aligned);
-ADD_ACKNOWLEDGER(Bar_number_engraver,break_alignment);
+ADD_ACKNOWLEDGER (Bar_number_engraver, break_aligned);
+ADD_ACKNOWLEDGER (Bar_number_engraver, break_alignment);
 
 ADD_TRANSLATOR (Bar_number_engraver,
                /* doc */ "A bar number is created whenever measurePosition "
index 51569b0e270b6582366f4e3cf0b7bb3412a97d9f..90357c5264f0929718127e52518240d3597ac580 100644 (file)
@@ -215,7 +215,7 @@ Beam_engraver::acknowledge_rest (Grob_info info)
   if (beam_
       && !scm_is_number (info.grob ()->get_property_data ("staff-position")))
     {
-      chain_offset_callback (info.grob(),
+      chain_offset_callback (info.grob (),
                             Beam::rest_collision_callback_proc, Y_AXIS);
     }
 }
index 28492eaee14f74722599118a5f344ea4621aea3a..b38cb8baa6bffa750b265a716134e1f292bbb6cf 100644 (file)
@@ -233,7 +233,7 @@ position_with_maximal_common_beams (SCM left_beaming, SCM right_beaming,
   return best_start;
 }
 
-MAKE_SCHEME_CALLBACK(Beam, calc_beaming, 1)
+MAKE_SCHEME_CALLBACK (Beam, calc_beaming, 1)
 SCM
 Beam::calc_beaming (SCM smob)
 {
@@ -405,7 +405,7 @@ Beam::get_beam_segments (Grob *me_grob, Grob **common)
          do
            {
              bool on_bound = (event_dir == LEFT) ? j == 0 :
-               j == segs.size() - 1;
+               j == segs.size () - 1;
 
              bool inside_stem = (event_dir == LEFT)
                        ? segs[j].stem_index_ > 0
@@ -459,7 +459,7 @@ Beam::get_beam_segments (Grob *me_grob, Grob **common)
              if (event_dir == RIGHT)
                {
                  segments.push_back (current);
-                 current = Beam_segment();
+                 current = Beam_segment ();
                }
            }
          while (flip (&event_dir) != LEFT);
@@ -470,7 +470,7 @@ Beam::get_beam_segments (Grob *me_grob, Grob **common)
   return segments;
 }
 
-MAKE_SCHEME_CALLBACK(Beam, print, 1);
+MAKE_SCHEME_CALLBACK (Beam, print, 1);
 SCM
 Beam::print (SCM grob)
 {
@@ -790,7 +790,7 @@ set_minimum_dy (Grob *me, Real *dy)
 
   
 
-MAKE_SCHEME_CALLBACK(Beam, calc_stem_shorten, 1)
+MAKE_SCHEME_CALLBACK (Beam, calc_stem_shorten, 1)
 SCM
 Beam::calc_stem_shorten (SCM smob)
 {
@@ -1152,7 +1152,7 @@ Beam::calc_stem_y (Grob *me, Grob *stem, Grob **common,
   Hmm.  At this time, beam position and slope are determined.  Maybe,
   stem directions and length should set to relative to the chord's
   position of the beam.  */
-MAKE_SCHEME_CALLBACK(Beam, set_stem_lengths, 1); 
+MAKE_SCHEME_CALLBACK (Beam, set_stem_lengths, 1); 
 SCM
 Beam::set_stem_lengths (SCM smob)
 {
index ba5b8a4a72dee519ba9e1f254c61523e698cc6f7..0f6f1e1b8fa46ef192f263494ef9bdbdadd5d734 100644 (file)
@@ -125,7 +125,7 @@ Beaming_pattern::beamify (Beaming_options const &options)
     de_grace ();
 
   if (infos_[0].start_moment_ < Moment (0))
-    for (vsize i = 0; i < infos_.size(); i++)
+    for (vsize i = 0; i < infos_.size (); i++)
       infos_[i].start_moment_ += options.measure_length_;
   
   Moment measure_pos (0);
@@ -134,7 +134,7 @@ Beaming_pattern::beamify (Beaming_options const &options)
   vector<Moment> beat_starts;
 
   SCM grouping = options.grouping_;
-  while (measure_pos <= infos_.back().start_moment_)
+  while (measure_pos <= infos_.back ().start_moment_)
     {
       int count = 2;
       if (scm_is_pair (grouping))
@@ -153,9 +153,9 @@ Beaming_pattern::beamify (Beaming_options const &options)
    
   vsize j = 0;
   vsize k = 0;
-  for (vsize i = 0; i  < infos_.size(); i++)
+  for (vsize i = 0; i  < infos_.size (); i++)
     {
-      while (j + 1 < group_starts.size()
+      while (j + 1 < group_starts.size ()
             && group_starts[j+1] <= infos_[i].start_moment_)
        j++;
 
@@ -163,11 +163,11 @@ Beaming_pattern::beamify (Beaming_options const &options)
        infos_[i].group_start_ = group_starts[j];
       
       infos_[i].beat_length_ = options.beat_length_;  
-      while (k + 1 < beat_starts.size() 
+      while (k + 1 < beat_starts.size () 
             && beat_starts[k+1] <= infos_[i].start_moment_)
        k++;
 
-      if (k < beat_starts.size())
+      if (k < beat_starts.size ())
        infos_[i].beat_start_ = beat_starts[k];
     }
   
index ccb27d58ea7f76e61cb1f4e00d3718d2821d12e6..1e3bb2f517ba0de936371345ae873cf5015ab0cd 100644 (file)
@@ -63,27 +63,27 @@ slur_height (Real width, Real h_inf, Real r_0)
   slurs.  For large slurs, this gives a certain hookiness at the end,
   so we increase the indent.
 
-  indent = G(w)
+  indent = G (w)
 
-  w -> 0,  G(w) -> .33 w
+  w -> 0,  G (w) -> .33 w
 
 
   (due to derivative constraints, we cannot have indent > len/3)
 
-  w -> inf, G(w) -> 2*h_inf
+  w -> inf, G (w) -> 2*h_inf
 
   i.e.
 
 
-  G(0) = 0 , G'(0) 1/3, G(infty) = 2h_inf
+  G (0) = 0 , G'(0) 1/3, G (infty) = 2h_inf
 
   solve from
 
-  G(w) = r  + p/(w+q)
+  G (w) = r  + p/(w+q)
 
   yields
 
-  G(w) = 2 h_inf - max_fraction * q^2/ (w + q)
+  G (w) = 2 h_inf - max_fraction * q^2/ (w + q)
 
   with q = 2 h_inf
 */
index 1808821029595f95bd707a31d9aff26ef087984f..1eaf041b886e8c782efdd802301b0f2ebf78a60a 100644 (file)
@@ -117,7 +117,7 @@ Bezier::curve_point (Real t) const
 }
 
 /*
-  Cache binom(3,j) t^j (1-t)^{3-j}
+  Cache binom (3, j) t^j (1-t)^{3-j}
 */
 struct Polynomial_cache {
   Polynomial terms_[4];
index 516ad6fbe40f2705e235826ec84f4b5de2dbafdc..7bb9ba0c6b15a3347701e1a5a72caff015b6995d 100644 (file)
@@ -46,9 +46,9 @@ LY_DEFINE (ly_book_process, "ly:book-process",
 {
   Book *book = unsmob_book (book_smob);
 
-  LY_ASSERT_SMOB(Book, book_smob, 1);
-  LY_ASSERT_SMOB(Output_def, default_paper, 2);
-  LY_ASSERT_SMOB(Output_def, default_layout, 3);
+  LY_ASSERT_SMOB (Book, book_smob, 1);
+  LY_ASSERT_SMOB (Output_def, default_paper, 2);
+  LY_ASSERT_SMOB (Output_def, default_layout, 3);
 
   Paper_book *pb = book->process (unsmob_output_def (default_paper),
                                  unsmob_output_def (default_layout));
@@ -73,8 +73,8 @@ LY_DEFINE (ly_book_process_to_systems, "ly:book-process-to-systems",
           "output).")
 {
   LY_ASSERT_SMOB (Book, book_smob, 1);
-  LY_ASSERT_SMOB(Output_def, default_paper, 2);
-  LY_ASSERT_SMOB(Output_def, default_layout, 3);
+  LY_ASSERT_SMOB (Output_def, default_paper, 2);
+  LY_ASSERT_SMOB (Output_def, default_layout, 3);
 
   Book *book = unsmob_book (book_smob); 
 
index 01e52ce9cdce87151b731a9301e653813a399af1..bf28d1b57dba46edf8673dac9096578c8e7b0853 100644 (file)
@@ -60,7 +60,7 @@ Book::Book (Book const &s)
       Score *newscore = unsmob_score (scm_car (p))->clone ();
 
       *t = scm_cons (newscore->self_scm (), SCM_EOL);
-      t = SCM_CDRLOC(*t);
+      t = SCM_CDRLOC (*t);
       newscore->unprotect ();
     }
 }
index c2c335434962a6e7b32d268580c276d7701bc5ea..4a2ab62cb73868a083a66170198ad339a953bb84 100644 (file)
@@ -86,7 +86,7 @@ Break_alignment_interface::add_element (Grob *me, Grob *toadd)
   Align_interface::add_element (me, toadd);
 }
 
-MAKE_SCHEME_CALLBACK(Break_alignment_interface, calc_positioning_done, 1)
+MAKE_SCHEME_CALLBACK (Break_alignment_interface, calc_positioning_done, 1)
 SCM
 Break_alignment_interface::calc_positioning_done (SCM smob)
 {
@@ -259,7 +259,7 @@ Break_alignment_interface::calc_positioning_done (SCM smob)
 
 
 
-MAKE_SCHEME_CALLBACK(Break_alignable_interface, self_align_callback, 1)
+MAKE_SCHEME_CALLBACK (Break_alignable_interface, self_align_callback, 1)
 SCM
 Break_alignable_interface::self_align_callback (SCM grob)
 {
@@ -291,7 +291,7 @@ Break_alignable_interface::self_align_callback (SCM grob)
     }  
 
   Direction which_edge = LEFT;
-  if (vsize (last_idx_found + 1) < elements.size())
+  if (vsize (last_idx_found + 1) < elements.size ())
     last_idx_found ++;
   else
     which_edge = RIGHT;
index 54b45ab862b91b8b8ee84a7b4b8832af976a8037..7a84195493df6efd7e3dedbe4562e0e168fb4c49 100644 (file)
@@ -204,7 +204,7 @@ struct Cluster_beacon
 {
 public:
   DECLARE_SCHEME_CALLBACK (height, (SCM));
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
 };
 
 MAKE_SCHEME_CALLBACK (Cluster_beacon, height, 1);
index a4f3ac4b57a286d514518cb62bbe448f723fc80e..1c2d5287c0cfa4f3a29ef9ea279cabce4ba2f8e5 100644 (file)
 #include "warn.hh"
 
 /*
-  We use the following optimal substructure. Let W(A) be our weight function.
+  We use the following optimal substructure. Let W (A) be our weight function.
 
-  Let A_{k,n} = (a_{k,n,1}, ... a_{k,n,k}) be the optimal set of line breaks
-  for k systems and n potential breakpoints. a_{k,n,k} = n (it is the end of
+  Let A_{k, n} = (a_{k, n,1}, ... a_{k, n, k}) be the optimal set of line breaks
+  for k systems and n potential breakpoints. a_{k, n, k} = n (it is the end of
   the piece)
 
   Then A_{k+1, m} is contructed from
-  min_ {k < j < m} ( W(A_{k,j} :: m) )
+  min_ {k < j < m} ( W (A_{k, j} :: m) )
   where by A::m we denote appending m to the list A
 
   Indices in the code:
 
   The above algorithm makes it easy to end at a point before the end of the
-  score (just find A_{k,m} for some m < breaks_.size () - 1). However, we must
+  score (just find A_{k, m} for some m < breaks_.size () - 1). However, we must
   add information for starting at a point after the beginning. One constructor
   allows the specification of a list of starting columns, start_. We then have
   start_.size () different solution arrays. state_[i] is the array for the
        .         .         .     .
        .         .         .       .
   where the X's mark invalid solutions (can't have more systems than
-  breakpoints). Note that each value is of the form a_{x,n,x}. This is because
-  a breakpoint of the form a_{x,n,x-1} will also be called a_{x-1,m,x-1} for
+  breakpoints). Note that each value is of the form a_{x, n, x}. This is because
+  a breakpoint of the form a_{x, n, x-1} will also be called a_{x-1, m, x-1} for
   some m < n. Each cell in the array stores the value of its m (ie. the
   ending breakpoint of the previous line) as "prev_".
 
-  For finding A_{sys, brk}, let "me" be the (sys_count,brk) cell in our
+  For finding A_{sys, brk}, let "me" be the (sys_count, brk) cell in our
   solution array (state_[start][sys * rank + brk]).
 
   Then A_{sys, brk} = A_{sys - 1, me.prev_} :: me
@@ -116,7 +116,7 @@ Constrained_breaking::solve ()
     return get_best_solution (0, VPOS);
 
   resize (systems_);
-  return get_solution(0, VPOS, systems_);
+  return get_solution (0, VPOS, systems_);
 }
 
 Column_x_positions
@@ -127,7 +127,7 @@ Constrained_breaking::space_line (vsize i, vsize j)
   Column_x_positions col;
 
   vector<Grob*> line (all_.begin () + breaks_[i],
-                     all_.begin() + breaks_[j] + 1);
+                     all_.begin () + breaks_[j] + 1);
   Interval line_dims = line_dimensions_int (pscore_->layout (), i);
   bool last = j == breaks_.size () - 1;
   bool ragged = ragged_right || (last && ragged_last);
index a5c13305d42f574c48e561cb6c81c601c4ec9867..f4023a09a110833cb56ad13f83d8c2dbf75a4059 100644 (file)
@@ -87,7 +87,7 @@ Context_def::print_smob (SCM smob, SCM port, scm_print_state*)
 SCM
 Context_def::mark_smob (SCM smob)
 {
-  ASSERT_LIVE_IS_ALLOWED();
+  ASSERT_LIVE_IS_ALLOWED ();
   
   Context_def *me = (Context_def *) SCM_CELL_WORD_1 (smob);
 
index d2210b3e104501becfb5c17dd3cf4121f9a51e67..bc7016babb89df2927b1ae088ee1702a52c9870a 100644 (file)
@@ -144,7 +144,7 @@ execute_general_pushpop_property (Context *context,
 
          /*
            tack onto alist.  We can use set_car, since
-           updated_grob_properties() in child contexts will check
+           updated_grob_properties () in child contexts will check
            for changes in the car.
          */
          if (ok)
index 30a876f36d3fbc44f89b64e3bd04109447d460c3..4ff48155e3877de14239337a36ccbbc3eba1e66c 100644 (file)
@@ -45,7 +45,7 @@ LY_DEFINE (ly_context_grob_definition, "ly:context-grob-definition",
   Context *tr = unsmob_context (context);
   
   LY_ASSERT_SMOB (Context, context, 1);
-  LY_ASSERT_TYPE(ly_is_symbol, name, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, name, 2);
 
   return updated_grob_properties (tr, name);
 }
@@ -60,8 +60,8 @@ LY_DEFINE (ly_context_pushpop_property, "ly:context-pushpop-property",
   Context *tg = unsmob_context (context);
 
   LY_ASSERT_SMOB (Context, context, 1);
-  LY_ASSERT_TYPE(ly_is_symbol, grob, 2);
-  LY_ASSERT_TYPE(ly_is_symbol, eltprop, 3);
+  LY_ASSERT_TYPE (ly_is_symbol, grob, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, eltprop, 3);
 
   execute_pushpop_property (tg, grob, eltprop, val);
 
@@ -73,7 +73,7 @@ LY_DEFINE (ly_context_property, "ly:context-property",
           "Return the value of @var{name} from context @var{c}")
 {
   LY_ASSERT_SMOB (Context, c, 1);
-  LY_ASSERT_TYPE(ly_is_symbol, name, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, name, 2);
 
   Context *t = unsmob_context (c);
   return t->internal_get_property (name);
@@ -85,7 +85,7 @@ LY_DEFINE (ly_context_set_property_x, "ly:context-set-property!",
           "to @var{val}.")
 {
   LY_ASSERT_SMOB (Context, context, 1);
-  LY_ASSERT_TYPE(ly_is_symbol, name, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, name, 2);
 
   Context *tr = unsmob_context (context);
 
@@ -100,7 +100,7 @@ LY_DEFINE (ly_context_property_where_defined, "ly:context-property-where-defined
           "where @var{name} is defined.")
 {
   LY_ASSERT_SMOB (Context, context, 1);
-  LY_ASSERT_TYPE(ly_is_symbol,name, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, name, 2);
   
   Context *tr = unsmob_context (context);
 
@@ -117,7 +117,7 @@ LY_DEFINE (ly_context_unset_property, "ly:context-unset-property", 2, 0, 0,
           "Unset value of property @var{name} in context @var{context}.")
 {
   LY_ASSERT_SMOB (Context, context, 1);
-  LY_ASSERT_TYPE(ly_is_symbol,name, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, name, 2);
   Context *tr = unsmob_context (context);
   
   tr->unset_property (name);
@@ -145,7 +145,7 @@ LY_DEFINE (ly_context_find, "ly:context-find",
           "Return @code{#f} if not found.")
 {
   LY_ASSERT_SMOB (Context, context, 1);
-  LY_ASSERT_TYPE(ly_is_symbol,name, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, name, 2);
   Context *tr = unsmob_context (context);
 
   while (tr)
index fc4f35d666d11a6d55d38ee4084db131abd35e96..38f5549141d0c86780ceb8e423bfb5963dde3f78 100644 (file)
@@ -32,7 +32,7 @@ Context_specced_music_iterator::construct_children ()
 
   Context *a = 0;
 
-  if (to_boolean (get_music()->get_property ("create-new")))
+  if (to_boolean (get_music ()->get_property ("create-new")))
     a = get_outlet ()->create_unique_context (ct, c_id, ops);
   else
     a = get_outlet ()->find_create_context (ct, c_id, ops);
index 3583d48c5e70d624cdec6646f1294e9850987bd2..3275b467d531006f06bec4223b46aa1e9bc3211d 100644 (file)
@@ -15,7 +15,7 @@ class Control_track_performer : public Performer
   vector<Audio_item*> texts_;
 
   void add_text (Audio_text::Type, string);
-  TRANSLATOR_DECLARATIONS(Control_track_performer);
+  TRANSLATOR_DECLARATIONS (Control_track_performer);
 protected:
 
   virtual void initialize ();
index 00c52aca59b3a2989ac71b2e80f4291176376cb2..e467064bf417080c6d364b55cf01a22982eaf673 100644 (file)
@@ -23,7 +23,7 @@ LY_DEFINE (ly_connect_dispatchers, "ly:connect-dispatchers",
   Dispatcher *f = unsmob_dispatcher (from);
   
   LY_ASSERT_SMOB (Dispatcher, to, 1); 
-  LY_ASSERT_SMOB(Dispatcher, from,  2); 
+  LY_ASSERT_SMOB (Dispatcher, from,  2); 
 
   t->register_as_listener (f);
 
@@ -39,7 +39,7 @@ LY_DEFINE (ly_add_listener, "ly:add-listener",
   Dispatcher *d = unsmob_dispatcher (disp);
 
   LY_ASSERT_SMOB (Listener, list, 1); 
-  LY_ASSERT_SMOB(Dispatcher, disp, 2); 
+  LY_ASSERT_SMOB (Dispatcher, disp, 2); 
   
   for (int arg = SCM_ARG3; scm_is_pair (cl); cl = scm_cdr (cl), arg++)
     {
@@ -61,7 +61,7 @@ LY_DEFINE (ly_broadcast, "ly:broadcast",
  
   LY_ASSERT_SMOB (Dispatcher, disp, 1);
 
-  LY_ASSERT_SMOB(Stream_event, ev, 2); 
+  LY_ASSERT_SMOB (Stream_event, ev, 2); 
   d->broadcast (e);
   return SCM_UNDEFINED;
 }
index 6107594900b678e8a63d2c140ebfe1b3c3176300..64062139b0d133ce598da861aefb9fc3b100ec96 100644 (file)
@@ -100,10 +100,10 @@ Dispatcher::dispatch (SCM sev)
   */
   struct { int prio; SCM list; } lists[num_classes+1];
   int i = 0;
-  for (SCM cl = class_list; scm_is_pair(cl); cl = scm_cdr (cl))
+  for (SCM cl = class_list; scm_is_pair (cl); cl = scm_cdr (cl))
     {
       SCM list = scm_hashq_ref (listeners_, scm_car (cl), SCM_EOL);
-      if (!scm_is_pair(list))
+      if (!scm_is_pair (list))
        num_classes--;
       else
        {
@@ -141,9 +141,9 @@ Dispatcher::dispatch (SCM sev)
         }
       // go to the next listener; bubble-sort the class list.
       SCM next = scm_cdr (lists[0].list);
-      if (!scm_is_pair(next))
+      if (!scm_is_pair (next))
         num_classes--;
-      int prio = (scm_is_pair(next)) ? scm_to_int (scm_caar (next)) : INT_MAX;
+      int prio = (scm_is_pair (next)) ? scm_to_int (scm_caar (next)) : INT_MAX;
       for (i = 0; prio > lists[i+1].prio; i++)
         lists[i] = lists[i+1];
       lists[i].prio = prio;
@@ -176,7 +176,7 @@ Dispatcher::internal_add_listener (Listener l, SCM ev_class, int priority)
     {
       /* Tell all dispatchers that we listen to, that we want to hear ev_class 
          events */
-      for (SCM disp = dispatchers_; scm_is_pair(disp); disp = scm_cdr (disp))
+      for (SCM disp = dispatchers_; scm_is_pair (disp); disp = scm_cdr (disp))
        {
          int priority = scm_to_int (scm_cdar (disp));
          Dispatcher *d = unsmob_dispatcher (scm_caar (disp));
@@ -205,10 +205,10 @@ Dispatcher::remove_listener (Listener l, SCM ev_class)
 
   SCM dummy = scm_cons (SCM_EOL, list);
   SCM e = dummy;
-  while (scm_is_pair(scm_cdr (e)))
+  while (scm_is_pair (scm_cdr (e)))
     if (*unsmob_listener (scm_cdadr (e)) == l && first)
       {
-       scm_set_cdr_x (e, scm_cddr(e));
+       scm_set_cdr_x (e, scm_cddr (e));
        first = false;
        break;
       }
index b2ff0308fac19b82bd251167a4255d2698e9bcb0..3c1eff6c60dfc3815675eb35926aacfe61d0f94d 100644 (file)
@@ -208,7 +208,7 @@ remove_collision (Dot_configuration &cfg, int p)
     }
 }
 
-MAKE_SCHEME_CALLBACK(Dot_column, calc_positioning_done, 1);
+MAKE_SCHEME_CALLBACK (Dot_column, calc_positioning_done, 1);
 SCM
 Dot_column::calc_positioning_done (SCM smob)
 {
index 16a5b0a29052added4ee785540438be093ed4f90..b59a8d9a41d65dc3a5c1d288c8f9f310b2eb0cf6 100644 (file)
@@ -18,8 +18,8 @@
 
 class Dots_engraver : public Engraver 
 {
-  DECLARE_ACKNOWLEDGER(rhythmic_head);
-  TRANSLATOR_DECLARATIONS(Dots_engraver);
+  DECLARE_ACKNOWLEDGER (rhythmic_head);
+  TRANSLATOR_DECLARATIONS (Dots_engraver);
 };
 
 Dots_engraver::Dots_engraver ()
@@ -50,9 +50,9 @@ Dots_engraver::acknowledge_rhythmic_head (Grob_info gi)
 }
 
 
-ADD_ACKNOWLEDGER(Dots_engraver, rhythmic_head);
+ADD_ACKNOWLEDGER (Dots_engraver, rhythmic_head);
 
-ADD_TRANSLATOR(Dots_engraver,
+ADD_TRANSLATOR (Dots_engraver,
               "Create @ref{Dots} objects for @ref{rhythmic-head-interface}s.",
 
               /* create */
index c81fca04825bcfb2de26d93eb13ecaa646378753..a4187c187cfb83c1bb86d69e26724494be1b9bb5 100644 (file)
@@ -65,7 +65,7 @@ Drum_note_performer::process_music ()
             }
 
          Moment len = get_event_length (n);
-         if (now_mom().grace_part_)
+         if (now_mom ().grace_part_)
            {
              len.grace_part_ = len.main_part_;
              len.main_part_ = Rational (0);
index 11e6b58d0d5be3619db549045015bf1fbbc921bb..f62bba582a40ca02bcd7987e45e50ee2c31411a0 100644 (file)
@@ -27,8 +27,8 @@ LY_DEFINE (ly_duration_less_p, "ly:duration<?",
           2, 0, 0, (SCM p1, SCM p2),
           "Is @var{p1} shorter than @var{p2}?")
 {
-  LY_ASSERT_SMOB(Duration, p1, 1);
-  LY_ASSERT_SMOB(Duration, p2, 2);
+  LY_ASSERT_SMOB (Duration, p1, 1);
+  LY_ASSERT_SMOB (Duration, p2, 2);
 
   Duration *a = unsmob_duration (p1);
   Duration *b = unsmob_duration (p2);
@@ -65,7 +65,7 @@ LY_DEFINE (ly_make_duration, "ly:make-duration",
   bool compress = false;
   if (num != SCM_UNDEFINED)
     {
-      LY_ASSERT_TYPE (scm_is_number,num, 3);
+      LY_ASSERT_TYPE (scm_is_number, num, 3);
       compress = true;
     }
   else
@@ -73,7 +73,7 @@ LY_DEFINE (ly_make_duration, "ly:make-duration",
 
   if (den != SCM_UNDEFINED)
     {
-      LY_ASSERT_TYPE (scm_is_number,den, 4);
+      LY_ASSERT_TYPE (scm_is_number, den, 4);
       compress = true;
     }
   else
index fc85166f727718139fd783bd0ca950d2848c6f82..47abca1ead515d9d363639d3cb2f005cb0e8daf7 100644 (file)
@@ -100,7 +100,7 @@ Dynamic_performer::process_music ()
 
   if (span_events_[START])
     {
-      span_dynamic_ = new Audio_span_dynamic();
+      span_dynamic_ = new Audio_span_dynamic ();
       announce_element (Audio_element_info (span_dynamic_, span_events_[START]));
 
       span_dynamic_->grow_dir_ = grow_dir_[START];
index ef2dd18b6bd08a14bc8786dd68b7e3533e85ef89..61462de17a789f21595c3f4d1d0cfa4eb0ca04df 100644 (file)
 
 struct Enclosing_bracket
 {
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
   
 public:
-  DECLARE_SCHEME_CALLBACK(print, (SCM));
-  DECLARE_SCHEME_CALLBACK(width, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
+  DECLARE_SCHEME_CALLBACK (width, (SCM));
 };
 
 
-ADD_INTERFACE(Enclosing_bracket,
+ADD_INTERFACE (Enclosing_bracket,
              
              "Brackets alongside bass figures.",
              
index 0158c532cd892dbcaf1635539e1695a3f57e6389..aaa2ed76250b50c2a8a0a7c9ad6859a3c37d4c9b 100644 (file)
@@ -88,7 +88,7 @@ Engraver_group::acknowledge_grobs ()
       else
        continue;
 
-      SCM acklist = scm_hashq_ref (acknowledge_hash_table_drul_[info.start_end()],
+      SCM acklist = scm_hashq_ref (acknowledge_hash_table_drul_[info.start_end ()],
                                   nm, SCM_BOOL_F);
       
       Engraver_dispatch_list *dispatch
index 2f97de6dac069d389ae0fd3362427138a7170d9c..16d60a5f5317ce07485489e61eaced68d9ab2a53 100644 (file)
 
 struct Figured_bass_continuation
 {
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
   
 public:
-  DECLARE_SCHEME_CALLBACK(print, (SCM));
-  DECLARE_SCHEME_CALLBACK(center_on_figures, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
+  DECLARE_SCHEME_CALLBACK (center_on_figures, (SCM));
 };
 
 MAKE_SCHEME_CALLBACK (Figured_bass_continuation, center_on_figures, 1);
@@ -80,7 +80,7 @@ Figured_bass_continuation::print (SCM grob)
   return extender.smobbed_copy ();
 }
 
-ADD_INTERFACE(Figured_bass_continuation,
+ADD_INTERFACE (Figured_bass_continuation,
              "Simple extender line between bounds.",
              
              /* props */
index 5fe9624041c428109284624d048d73f217c3c476..29185bc2c847f1e907b63f4ef32d8b7f755e9e92 100644 (file)
@@ -57,8 +57,8 @@ struct Figure_group
 
 struct Figured_bass_engraver : public Engraver
 {
-  TRANSLATOR_DECLARATIONS(Figured_bass_engraver);
-  void clear_spanners();
+  TRANSLATOR_DECLARATIONS (Figured_bass_engraver);
+  void clear_spanners ();
   void add_brackets ();
   void create_grobs ();
 
@@ -144,7 +144,7 @@ Figured_bass_engraver::listen_rest (Stream_event *ev)
       new_event_found_ = true;
 
       /*
-       No ASSIGN_EVENT_ONCE() ; otherwise we get warnings about
+       No ASSIGN_EVENT_ONCE () ; otherwise we get warnings about
        polyphonic rests.
        */
       rest_event_ = ev;
@@ -184,13 +184,13 @@ Figured_bass_engraver::center_continuations (vector<Spanner*> const &consecutive
   if (consecutive_lines.size () == 2)
     {
       vector<Grob*> left_figs;
-      for (vsize j = consecutive_lines.size(); j--;)
+      for (vsize j = consecutive_lines.size (); j--;)
        left_figs.push_back (consecutive_lines[j]->get_bound (LEFT));
 
       SCM  ga = Grob_array::make_array ();
       unsmob_grob_array (ga)->set_array (left_figs);
 
-      for (vsize j = consecutive_lines.size(); j--;)
+      for (vsize j = consecutive_lines.size (); j--;)
        consecutive_lines[j]->set_object ("figures",
                                          unsmob_grob_array (ga)->smobbed_copy ());
     }
@@ -200,14 +200,14 @@ void
 Figured_bass_engraver::center_repeated_continuations ()
 {  
   vector<Spanner*> consecutive_lines;
-  for (vsize i = 0; i <= groups_.size(); i++)
+  for (vsize i = 0; i <= groups_.size (); i++)
     {
       if (i < groups_.size ()
          && groups_[i].continuation_line_
          && (consecutive_lines.empty ()
-             || (consecutive_lines[0]->get_bound(LEFT)->get_column ()
+             || (consecutive_lines[0]->get_bound (LEFT)->get_column ()
                  == groups_[i].continuation_line_->get_bound (LEFT)->get_column ()
-                 && consecutive_lines[0]->get_bound(RIGHT)->get_column ()
+                 && consecutive_lines[0]->get_bound (RIGHT)->get_column ()
                  == groups_[i].continuation_line_->get_bound (RIGHT)->get_column ())))
        consecutive_lines.push_back (groups_[i].continuation_line_);      
       else 
@@ -231,7 +231,7 @@ Figured_bass_engraver::clear_spanners ()
     }
 
   if (to_boolean (get_property ("figuredBassCenterContinuations")))
-    center_repeated_continuations();
+    center_repeated_continuations ();
   
   for (vsize i = 0; i < groups_.size (); i++)
     {
@@ -354,7 +354,7 @@ Figured_bass_engraver::process_music ()
   if (use_extenders)
     {
       vector<int> junk_continuations;
-      for (vsize i = 0; i < groups_.size(); i++)
+      for (vsize i = 0; i < groups_.size (); i++)
        {
          Figure_group &group = groups_[i];
 
@@ -389,7 +389,7 @@ Figured_bass_engraver::process_music ()
        {
          for (vsize i = 0; i <= junk_continuations.size (); i++)
            {
-             if (i < junk_continuations.size()
+             if (i < junk_continuations.size ()
                  && (i == 0 || junk_continuations[i-1] == junk_continuations[i] - 1))
                consecutive.push_back (groups_[junk_continuations[i]].continuation_line_);
              else 
@@ -421,7 +421,7 @@ Figured_bass_engraver::create_grobs ()
   alignment_->set_bound (RIGHT, muscol);
 
   SCM proc = get_property ("figuredBassFormatter");
-  for (vsize i = 0; i < groups_.size(); i++)
+  for (vsize i = 0; i < groups_.size (); i++)
     {
       Figure_group &group = groups_[i];
       
index a3ed1528f9592d462e06682955dbbb99d02a6644..ced3f7ef6e97787e445bd68e082d7dca2cec2003 100644 (file)
@@ -18,7 +18,7 @@
 
 class Figured_bass_position_engraver : public Engraver
 {
-  TRANSLATOR_DECLARATIONS(Figured_bass_position_engraver);
+  TRANSLATOR_DECLARATIONS (Figured_bass_position_engraver);
 
   Spanner *bass_figure_alignment_;
   Spanner *positioner_;
@@ -49,7 +49,7 @@ Figured_bass_position_engraver::start_spanner ()
 {
   assert (!positioner_);
 
-  positioner_ = make_spanner("BassFigureAlignmentPositioning", bass_figure_alignment_->self_scm ());
+  positioner_ = make_spanner ("BassFigureAlignmentPositioning", bass_figure_alignment_->self_scm ());
   positioner_->set_bound (LEFT, bass_figure_alignment_->get_bound (LEFT));
   Axis_group_interface::add_element (positioner_, bass_figure_alignment_);
 }
@@ -129,13 +129,13 @@ Figured_bass_position_engraver::acknowledge_bass_figure_alignment (Grob_info inf
 }
 
 
-ADD_ACKNOWLEDGER(Figured_bass_position_engraver,note_column);
-ADD_ACKNOWLEDGER(Figured_bass_position_engraver,slur);
-ADD_END_ACKNOWLEDGER(Figured_bass_position_engraver,slur);
+ADD_ACKNOWLEDGER (Figured_bass_position_engraver, note_column);
+ADD_ACKNOWLEDGER (Figured_bass_position_engraver, slur);
+ADD_END_ACKNOWLEDGER (Figured_bass_position_engraver, slur);
 
-ADD_ACKNOWLEDGER(Figured_bass_position_engraver,tie);
-ADD_ACKNOWLEDGER(Figured_bass_position_engraver,bass_figure_alignment);
-ADD_END_ACKNOWLEDGER(Figured_bass_position_engraver,bass_figure_alignment);
+ADD_ACKNOWLEDGER (Figured_bass_position_engraver, tie);
+ADD_ACKNOWLEDGER (Figured_bass_position_engraver, bass_figure_alignment);
+ADD_END_ACKNOWLEDGER (Figured_bass_position_engraver, bass_figure_alignment);
 
 ADD_TRANSLATOR (Figured_bass_position_engraver,
                /* doc */
index 2521d9717597860e7c63c10999c763a187800e5c..3f6939c1ff191228ae01d72c3407cd8ae6ee36da 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  file-name-map.cc --  implement map_file_name()
+  file-name-map.cc --  implement map_file_name ()
 
   source file of the GNU LilyPond music typesetter
 
index 5fa68f862c094f697b7a29cd031c245830901482..6ccc616793addc2e73ed3e30c7be7655393e6ad6 100644 (file)
@@ -55,9 +55,9 @@ string
 display_config (FcConfig *fcc)
 {
   string retval;
-  retval += display_strlist ("Config files", FcConfigGetConfigFiles(fcc));
-  retval +=  display_strlist ("Config dir", FcConfigGetConfigDirs(fcc));
-  retval +=  display_strlist ("Font dir", FcConfigGetFontDirs(fcc));
+  retval += display_strlist ("Config files", FcConfigGetConfigFiles (fcc));
+  retval +=  display_strlist ("Config dir", FcConfigGetConfigDirs (fcc));
+  retval +=  display_strlist ("Font dir", FcConfigGetFontDirs (fcc));
   return retval;
 }
 
@@ -96,7 +96,7 @@ LY_DEFINE (ly_font_config_get_font_file, "ly:font-config-get-font-file", 1, 0, 0
   
   val.type = FcTypeString;
   val.u.s = (const FcChar8*)ly_scm2string (name).c_str (); // FC_SLANT_ITALIC;
-  FcPatternAdd(pat, FC_FAMILY, val, FcFalse);
+  FcPatternAdd (pat, FC_FAMILY, val, FcFalse);
 
   FcResult result;
   SCM scm_result = SCM_BOOL_F;
@@ -104,7 +104,7 @@ LY_DEFINE (ly_font_config_get_font_file, "ly:font-config-get-font-file", 1, 0, 0
   FcConfigSubstitute (NULL, pat, FcMatchFont);
   FcDefaultSubstitute (pat);
   
-  pat = FcFontMatch(NULL, pat, &result);
+  pat = FcFontMatch (NULL, pat, &result);
   FcChar8 *str = 0;
   if (FcPatternGetString (pat, FC_FILE, 0, &str) == FcResultMatch)
     scm_result = scm_from_locale_string ((char const*) str);
index a1e18da2c24e120efabdaa078d1916d18440ecf4..aa49a29e23ee333607ae290880c0f69165469579 100644 (file)
@@ -21,7 +21,7 @@ LY_DEFINE (ly_font_get_glyph, "ly:font-get-glyph",
 {
   Font_metric *fm = unsmob_metrics (font);
   LY_ASSERT_SMOB (Font_metric, font, 1);
-  LY_ASSERT_TYPE(scm_is_string,name, 2);
+  LY_ASSERT_TYPE (scm_is_string, name, 2);
 
   Stencil m = fm->find_by_name (ly_scm2string (name));
 
@@ -37,7 +37,7 @@ LY_DEFINE (ly_get_glyph, "ly:get-glyph",
 {
   Font_metric *fm = unsmob_metrics (font);
   LY_ASSERT_SMOB (Font_metric, font, 1);
-  LY_ASSERT_TYPE(scm_is_number, index,2);
+  LY_ASSERT_TYPE (scm_is_number, index,2);
 
   return fm->get_ascii_char_stencil (scm_to_int (index)).smobbed_copy ();
 }
@@ -49,7 +49,7 @@ LY_DEFINE (ly_font_glyph_name_to_index, "ly:font-glyph-name-to-index",
 {
   Font_metric *fm = unsmob_metrics (font);
   LY_ASSERT_SMOB (Font_metric, font, 1);
-  LY_ASSERT_TYPE(scm_is_string,name, 2);
+  LY_ASSERT_TYPE (scm_is_string, name, 2);
 
   return scm_from_int (fm->name_to_index (ly_scm2string (name)));
 }
@@ -61,7 +61,7 @@ LY_DEFINE (ly_font_index_to_charcode, "ly:font-index-to-charcode",
 {
   Font_metric *fm = unsmob_metrics (font);
   LY_ASSERT_SMOB (Font_metric, font, 1);
-  LY_ASSERT_TYPE(scm_is_integer,index, 2);
+  LY_ASSERT_TYPE (scm_is_integer, index, 2);
 
   return scm_from_unsigned_integer (fm->index_to_charcode (scm_to_int (index)));
 }
@@ -73,7 +73,7 @@ LY_DEFINE (ly_font_glyph_name_to_charcode, "ly:font-glyph-name-to-charcode",
 {
   Font_metric *fm = unsmob_metrics (font);
   LY_ASSERT_SMOB (Font_metric, font, 1);
-  LY_ASSERT_TYPE(scm_is_string,name, 2);
+  LY_ASSERT_TYPE (scm_is_string, name, 2);
 
   return scm_from_unsigned_integer (fm->index_to_charcode (fm->name_to_index (ly_scm2string (name))));
 }
@@ -90,7 +90,7 @@ LY_DEFINE (ly_text_dimension, "ly:text-dimension",
     (unsmob_metrics (font));
 
   LY_ASSERT_SMOB (Font_metric, font, 1);
-  LY_ASSERT_TYPE(scm_is_string,text, 2);
+  LY_ASSERT_TYPE (scm_is_string, text, 2);
   Stencil stc (fm->text_stencil (ly_scm2string (text)));
   return scm_cons (ly_interval2scm (stc.extent (X_AXIS)),
                   ly_interval2scm (stc.extent (Y_AXIS)));
index 683671146c350055e2793cbd7f6627afe4bb84d2..5e4c377a751b5b188a1182bbb9dd1bd85d046647 100644 (file)
@@ -10,7 +10,7 @@
 #include "freetype.hh"
 
 #undef __FTERRORS_H__                                           
-#define FT_ERRORDEF( e, v, s )  { e, s },                       
+#define FT_ERRORDEF(e, v, s)  { e, s },                       
 #define FT_ERROR_START_LIST     {                               
 #define FT_ERROR_END_LIST       { 0, 0 } };                     
                                                                          
index 38e85837c0f6397b894c3f14b29cf67b59e6c5bc..f210c6ef152a90433b846b0c40ae5851a519cb21 100644 (file)
@@ -49,7 +49,7 @@ ly_add_function_documentation (SCM func,
   scm_set_procedure_property_x (func, ly_symbol2scm ("documentation"),
                                ly_string2scm (s));
   SCM entry = scm_cons (ly_string2scm (varlist), ly_string2scm (doc));
-  scm_hashq_set_x (doc_hash_table, ly_symbol2scm (fname.c_str()), entry);
+  scm_hashq_set_x (doc_hash_table, ly_symbol2scm (fname.c_str ()), entry);
 }
 
 LY_DEFINE (ly_get_all_function_documentation, "ly:get-all-function-documentation",
@@ -109,4 +109,4 @@ init_func_doc ()
   ly_add_type_predicate ((void*) &unsmob_item, "item");
 }
 
-ADD_SCM_INIT_FUNC(func_doc, init_func_doc);
+ADD_SCM_INIT_FUNC (func_doc, init_func_doc);
index 7f741d059cf2289d85772fa2f07c6cf1e3514a50..816dfeee0abad2220c5e30bf1e6597b2bb23f9bc 100644 (file)
@@ -55,7 +55,7 @@ LY_DEFINE (ly_gulp_file, "ly:gulp-file",
   int sz = INT_MAX;
   if (size != SCM_UNDEFINED)
     {
-      LY_ASSERT_TYPE(scm_is_number,size, 2);
+      LY_ASSERT_TYPE (scm_is_number, size, 2);
       sz = scm_to_int (size);
     }
   
@@ -153,8 +153,8 @@ LY_DEFINE (ly_string_substitute, "ly:string-substitute",
           "Replace @var{a} by @var{b} in @var{s}.")
 {
   LY_ASSERT_TYPE (scm_is_string, s, 1);
-  LY_ASSERT_TYPE(scm_is_string,b, 2);
-  LY_ASSERT_TYPE(scm_is_string,s, 3);
+  LY_ASSERT_TYPE (scm_is_string, b, 2);
+  LY_ASSERT_TYPE (scm_is_string, s, 3);
 
   string ss = ly_scm2string (s);
   replace_all (ss, string (scm_i_string_chars (a)),
@@ -334,7 +334,7 @@ accumulate_symbol (void *closure, SCM key, SCM val, SCM result)
   return scm_cons (key, result);
 }
 
-LY_DEFINE(ly_hash_table_keys, "ly:hash-table-keys",
+LY_DEFINE (ly_hash_table_keys, "ly:hash-table-keys",
          1,0,0, (SCM tab),
          "return a list of keys in @var{tab}")
 {
@@ -404,7 +404,7 @@ format_single_argument (SCM arg, int precision)
          warning (_ ("Found infinity or nan in output. Substituting 0.0"));
          return ("0.0");
          if (strict_infinity_checking)
-           abort();
+           abort ();
        }
       else
        return (String_convert::form_string ("%.*lf", precision, val));
@@ -433,7 +433,7 @@ LY_DEFINE (ly_format, "ly:format",
   vector<string> results;
 
   vsize i = 0;
-  while (i < format.size())
+  while (i < format.size ())
     {
       vsize tilde = format.find ('~', i);
 
@@ -495,15 +495,15 @@ LY_DEFINE (ly_format, "ly:format",
                       + ": too many  arguments");
 
   vsize len = 0;
-  for (vsize i = 0; i < results.size(); i++)
-    len += results[i].size();
+  for (vsize i = 0; i < results.size (); i++)
+    len += results[i].size ();
   
   char *result = (char*) scm_malloc (len + 1);
   char *ptr = result;
-  for (vsize i = 0; i < results.size(); i++)
+  for (vsize i = 0; i < results.size (); i++)
     {
-      strncpy (ptr, results[i].c_str (), results[i].size());
-      ptr += results[i].size();
+      strncpy (ptr, results[i].c_str (), results[i].size ());
+      ptr += results[i].size ();
     }
   *ptr = '\0';
     
index c888487776684bc24ed9a26109d3e6f64a3c0f66..18d1d807124b61deb5e5fc848ab5776f7d1bc5f5 100644 (file)
@@ -78,7 +78,7 @@ LY_DEFINE (ly_interpret_music_expression, "ly:interpret-music-expression",
           "final state.\n")
 {
   LY_ASSERT_SMOB (Music, mus, 1);
-  LY_ASSERT_TYPE (unsmob_global_context,ctx, 2);
+  LY_ASSERT_TYPE (unsmob_global_context, ctx, 2);
 
   Music *music = unsmob_music (mus);
   if (!music
index b74b10fc51aab43d39907c8ab8455c49c2f34cfe..e01468f9f3a1d0877e4a3b8e6f78f37be1135f76 100644 (file)
@@ -29,7 +29,7 @@ LY_DEFINE (ly_grob_array_ref, "ly:grob-array-ref",
 {
   Grob_array *me = unsmob_grob_array (grob_arr);
   LY_ASSERT_SMOB (Grob_array, grob_arr, 1);
-  LY_ASSERT_TYPE(scm_is_integer,index, 2);
+  LY_ASSERT_TYPE (scm_is_integer, index, 2);
 
   vsize i = scm_to_unsigned (index);
   if (i == VPOS || i >= me->size ())
index a174d264532d4c3747bbe6d108ae3af6db960b61..0ecd3a0abc8bd4e3264cb383c25fd313dd268e0e 100644 (file)
@@ -16,8 +16,8 @@ LY_DEFINE (ly_add_interface, "ly:add-interface",
           "Add an interface description.")
 {
   LY_ASSERT_TYPE (ly_is_symbol, a, 1);
-  LY_ASSERT_TYPE(scm_is_string,b, 2);
-  LY_ASSERT_TYPE(ly_is_list,c, 3);
+  LY_ASSERT_TYPE (scm_is_string, b, 2);
+  LY_ASSERT_TYPE (ly_is_list, c, 3);
   if (!all_ifaces)
     {
       SCM tab = scm_c_make_hash_table (59);
index 1a9c61dccc603c299c3ab3e15c6ec453e144bc5d..702206186f36f0dda56670c16833ca5130d078a7 100644 (file)
@@ -56,7 +56,7 @@ extern void check_interfaces_for_property (Grob const *me, SCM sym);
 /*
   We can't change signatures depending on NDEBUG, since NDEBUG comes
   over the command line and may be different per .cc file.  This
-  should be done through the macro expansion of get_property().
+  should be done through the macro expansion of get_property ().
  */
 void
 Grob::internal_set_property (SCM sym, SCM v, char const *file, int line, char const *fun)
@@ -152,7 +152,7 @@ Grob::internal_get_property (SCM sym) const
   if (val == ly_symbol2scm ("calculation-in-progress"))
     programming_error (_f ("cyclic dependency: calculation-in-progress encountered for #'%s (%s)",
                           ly_symbol2string (sym).c_str (),
-                          name().c_str ()));
+                          name ().c_str ()));
 #endif
   
   if (ly_is_procedure (val)
@@ -204,7 +204,7 @@ Grob::try_callback_on_alist (SCM *alist, SCM sym, SCM proc)
          
   /*
     If the function returns SCM_UNSPECIFIED, we assume the
-    property has been set with an explicit set_property()
+    property has been set with an explicit set_property ()
     call.
   */
   if (value == SCM_UNSPECIFIED)
index a76797a8d2a3741de885f9b782ec5cfafe71bf8f..a2d5b66739d85acd17ed740deeca5669a781580f 100644 (file)
@@ -7,7 +7,7 @@
   Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
-#include "warn.hh"             // error()
+#include "warn.hh"             // error ()
 #include "item.hh"
 #include "output-def.hh"
 #include "system.hh"
@@ -22,7 +22,7 @@ LY_DEFINE (ly_grob_property_data, "ly:grob-property-data",
   Grob *sc = unsmob_grob (grob);
 
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_TYPE (ly_is_symbol,sym, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, sym, 2);
 
   return sc->get_property_data (sym);
 }
@@ -34,7 +34,7 @@ LY_DEFINE (ly_grob_set_property_x, "ly:grob-set-property!",
   Grob *sc = unsmob_grob (grob);
  
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_TYPE (ly_is_symbol,sym, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, sym, 2);
 
   if (!ly_is_procedure (val)
       && !type_check_assignment (sym, val, ly_symbol2scm ("backend-type?")))
@@ -54,7 +54,7 @@ LY_DEFINE (ly_grob_property, "ly:grob-property",
   Grob *sc = unsmob_grob (grob);
    
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_TYPE (ly_is_symbol,sym, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, sym, 2);
   if (deflt == SCM_UNDEFINED)
     deflt = SCM_EOL;
 
@@ -87,7 +87,7 @@ LY_DEFINE (ly_grob_object, "ly:grob-object",
   Grob *sc = unsmob_grob (grob);
    
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_TYPE (ly_is_symbol,sym, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, sym, 2);
 
   return sc->internal_get_object (sym);
 }
@@ -137,8 +137,8 @@ LY_DEFINE (ly_grob_extent, "ly:grob-extent",
   
    
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_SMOB(Grob, refp, 2);
-  LY_ASSERT_TYPE(is_axis,axis, 3);
+  LY_ASSERT_SMOB (Grob, refp, 2);
+  LY_ASSERT_TYPE (is_axis, axis, 3);
 
   Axis a = Axis (scm_to_int (axis));
 
@@ -161,8 +161,8 @@ LY_DEFINE (ly_grob_robust_relative_extent, "ly:grob-robust-relative-extent",
   
    
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_SMOB(Grob, refp, 2);
-  LY_ASSERT_TYPE(is_axis,axis, 3);
+  LY_ASSERT_SMOB (Grob, refp, 2);
+  LY_ASSERT_TYPE (is_axis, axis, 3);
 
   Axis a = Axis (scm_to_int (axis));
     
@@ -185,8 +185,8 @@ LY_DEFINE (ly_grob_relative_coordinate, "ly:grob-relative-coordinate",
   
    
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_SMOB(Grob,refp, 2);
-  LY_ASSERT_TYPE(is_axis,axis, 3);
+  LY_ASSERT_SMOB (Grob, refp, 2);
+  LY_ASSERT_TYPE (is_axis, axis, 3);
 
   Axis a = Axis (scm_to_int (axis));
 
@@ -197,7 +197,7 @@ LY_DEFINE (ly_grob_relative_coordinate, "ly:grob-relative-coordinate",
       SCM_ASSERT_TYPE (false, refp, SCM_ARG2, __FUNCTION__, "common refpoint");
     }
 
-  return scm_from_double (sc->relative_coordinate (ref,a));
+  return scm_from_double (sc->relative_coordinate (ref, a));
 }
 
 
@@ -209,7 +209,7 @@ LY_DEFINE (ly_grob_parent, "ly:grob-parent",
   Grob *sc = unsmob_grob (grob);
    
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_TYPE(is_axis,axis, 2);
+  LY_ASSERT_TYPE (is_axis, axis, 2);
 
   Grob *par = sc->get_parent (Axis (scm_to_int (axis)));
   return par ? par->self_scm () : SCM_EOL;
@@ -283,8 +283,8 @@ LY_DEFINE (ly_grob_translate_axis_x, "ly:grob-translate-axis!",
   Grob *me = unsmob_grob (grob);
    
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_TYPE(scm_is_number,d, 2);
-  LY_ASSERT_TYPE(is_axis,a, 3);
+  LY_ASSERT_TYPE (scm_is_number, d, 2);
+  LY_ASSERT_TYPE (is_axis, a, 3);
 
   me->translate_axis (scm_to_double (d), Axis (scm_to_int (a)));
   return SCM_UNSPECIFIED;
@@ -316,11 +316,11 @@ LY_DEFINE (ly_grob_common_refpoint, "ly:grob-common-refpoint",
   Grob *gr = unsmob_grob (grob);
    
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_SMOB(Grob,other, 2);
+  LY_ASSERT_SMOB (Grob, other, 2);
 
   Grob *o = unsmob_grob (other);
 
-  LY_ASSERT_TYPE(is_axis,axis, 3);
+  LY_ASSERT_TYPE (is_axis, axis, 3);
 
   Grob *refp = gr->common_refpoint (o,  Axis (scm_to_int (axis)));
   return refp ? refp->self_scm () : SCM_BOOL_F;
@@ -335,10 +335,10 @@ LY_DEFINE (ly_grob_common_refpoint_of_array, "ly:grob-common-refpoint-of-array",
   Grob *gr = unsmob_grob (grob);
    
   LY_ASSERT_SMOB (Grob, grob, 1);
-  LY_ASSERT_SMOB(Grob_array,others, 2);
+  LY_ASSERT_SMOB (Grob_array, others, 2);
 
   Grob_array *ga = unsmob_grob_array (others);
-  LY_ASSERT_TYPE(is_axis,axis, 3);
+  LY_ASSERT_TYPE (is_axis, axis, 3);
 
   Grob *refp = common_refpoint_of_array (ga->array (), gr, Axis (scm_to_int (axis)));
   return refp ? refp->self_scm () : SCM_BOOL_F;
index 1011d47fdcf1f1a55441cfb31e6f703547880c56..730faa780eafe2f6676a44b276f664db9a390a8f 100644 (file)
@@ -20,7 +20,7 @@ IMPLEMENT_TYPE_P (Grob, "ly:grob?");
 SCM
 Grob::mark_smob (SCM ses)
 {
-  ASSERT_LIVE_IS_ALLOWED();
+  ASSERT_LIVE_IS_ALLOWED ();
   
   Grob *s = (Grob *) SCM_CELL_WORD_1 (ses);
   scm_gc_mark (s->immutable_property_alist_);
index e12152821b075a4a194f1f3b3e8facb80eb227be..13d2e8961583918b59020f2bf5f33f274a9eb1aa 100644 (file)
@@ -654,7 +654,7 @@ Grob::stencil_height (SCM smob)
   return grob_stencil_extent (me, Y_AXIS);
 }
 
-MAKE_SCHEME_CALLBACK(Grob, y_parent_positioning, 1);
+MAKE_SCHEME_CALLBACK (Grob, y_parent_positioning, 1);
 SCM
 Grob::y_parent_positioning (SCM smob)
 {
@@ -667,7 +667,7 @@ Grob::y_parent_positioning (SCM smob)
 }
 
 
-MAKE_SCHEME_CALLBACK(Grob, x_parent_positioning, 1);
+MAKE_SCHEME_CALLBACK (Grob, x_parent_positioning, 1);
 SCM
 Grob::x_parent_positioning (SCM smob)
 {
index 20808956ae9607264d9ee84699bf778835e19cd2..87f32017a491ca7b9d6a669bf8e25fa4c3c45c10 100644 (file)
@@ -236,7 +236,7 @@ Hairpin::print (SCM smob)
       Box extent (Interval (-rad, rad), Interval (-rad, rad));
       
       /* Hmmm, perhaps we should have a Lookup::circle () method? */
-      Stencil circle(extent,
+      Stencil circle (extent,
                     scm_list_4 (ly_symbol2scm ("circle"),
                                 scm_from_double (rad),
                                 scm_from_double (thick),
index 9d92028ac4cc8806c66f8ab515f3749e57fefefb..07c32552649e16b0e89f74341b172748015740a9 100644 (file)
@@ -79,7 +79,7 @@ Horizontal_bracket::make_enclosing_bracket (Grob *me, Grob *refpoint,
     }
   else
     {
-      Stencil b = make_bracket (me, ext.length(), a, dir);
+      Stencil b = make_bracket (me, ext.length (), a, dir);
       b.translate_axis (ext[LEFT] - refpoint->relative_coordinate (common, a), a);
 
       return b;
index e3d0312642fd8488b75db27dfcfea9f467dba3f9..f6f2a3f4490eb8c64e06a2e1cfe6d78de7a614a4 100644 (file)
@@ -25,7 +25,7 @@ LY_DEFINE (ly_input_message, "ly:input-message", 2, 0, 1, (SCM sip, SCM msg, SCM
   Input *ip = unsmob_input (sip);
 
   LY_ASSERT_TYPE (unsmob_input, sip, 1);
-  LY_ASSERT_TYPE(scm_is_string, msg,2);
+  LY_ASSERT_TYPE (scm_is_string, msg,2);
 
   msg = scm_simple_format (SCM_BOOL_F, msg, rest);
 
index a3694f075574ad8ffef4399426dd1ccd07ac0ace..2637fba441db31118cf194815415a7c430bc126c 100644 (file)
@@ -15,7 +15,7 @@
 class Instrument_switch_engraver : public Engraver
 {
 
-  TRANSLATOR_DECLARATIONS(Instrument_switch_engraver);
+  TRANSLATOR_DECLARATIONS (Instrument_switch_engraver);
 protected:
   Grob *text_;
   SCM cue_name_;
@@ -53,7 +53,7 @@ Instrument_switch_engraver::stop_translation_time_step ()
   text_ = 0;
 }
 
-ADD_TRANSLATOR(Instrument_switch_engraver,
+ADD_TRANSLATOR (Instrument_switch_engraver,
               "Create a cue text for taking instrument.",
                        
               "InstrumentSwitch ",
index 36199d704146b7b9b1609a5c971ee1929526a296..0b0a282064ec3b6bdb1dd03449f6507344b068ee 100644 (file)
@@ -66,7 +66,7 @@ Key_engraver::create_key (bool is_default)
 
       SCM last = get_property ("lastKeySignature");
       SCM key = get_property ("keySignature");
-      bool extranatural = to_boolean(get_property("extraNatural"));
+      bool extranatural = to_boolean (get_property ("extraNatural"));
 
       if ((to_boolean (get_property ("printKeyCancellation"))
           || key == SCM_EOL)
index 7c88268b624b9a70d1542932e354b3bab760f73e..d4ddb075e837fcf963f04dae4e5de0b9729140ac 100644 (file)
@@ -20,7 +20,7 @@
 struct Key_signature_interface
 {
   DECLARE_SCHEME_CALLBACK (print, (SCM));
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
 };
 
 
index 62d52b64c19dbc7afc31c0c00ee8d839a9704d22..052e69ba1959daca8a6cf3fd64651460fdb1d99c 100644 (file)
@@ -28,7 +28,7 @@ struct Ledger_line_spanner
                                    Interval x_extent,
                                    Real left_shorten);
 
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
 };
 
 Stencil
@@ -42,7 +42,7 @@ Ledger_line_spanner::brew_ledger_lines (Grob *staff,
 {
   int line_count = (staff_extent.contains (pos)
                    ? 0
-                   : sign (pos) * int (rint(pos -  staff_extent[Direction (sign (pos))])) / 2);
+                   : sign (pos) * int (rint (pos -  staff_extent[Direction (sign (pos))])) / 2);
   Stencil stencil;
   if (line_count)
     {
@@ -366,7 +366,7 @@ ADD_INTERFACE (Ledger_line_spanner,
 
 struct Ledgered_interface
 {
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
 };
 
 ADD_INTERFACE (Ledgered_interface,
index 370dba2998e932f32b63520c3413da7d2b7af41d..e5cdbc77f2732aef18d0e38794ccbf950e9aa710 100644 (file)
@@ -118,7 +118,7 @@ ly_scm2string (SCM str)
 SCM
 ly_string2scm (string const &str)
 {
-  return scm_from_locale_stringn (str.c_str(),
+  return scm_from_locale_stringn (str.c_str (),
                                  str.length ());
 }
 
@@ -308,7 +308,7 @@ ly_offsets2scm (vector<Offset> os)
   for (vsize i = 0; i < os.size (); i++)
     {
       *tail = scm_cons (ly_offset2scm (os[i]), SCM_EOL);
-      tail = SCM_CDRLOC(*tail);
+      tail = SCM_CDRLOC (*tail);
     }
   return l;
 }
index a0501e9eab0df06692df8d1ee0138b6341530934..0d561f9d8b2bad8e96b664d94c02e49ec2f3d620 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "lily-lexer.hh"
 
-LY_DEFINE(ly_lexer_keywords, "ly:lexer-keywords",
+LY_DEFINE (ly_lexer_keywords, "ly:lexer-keywords",
          1, 0, 0, (SCM lexer),
          "Return a list of (KEY . CODE) pairs, signifying the lilypond reserved words list.")
 {
index 4a877f2d2e3e4bb6183b1773423202c3f81181cc..4eaa4415690e298d140047f6b5bae9dd65ae4e58 100644 (file)
@@ -197,7 +197,7 @@ Lily_lexer::keyword_list () const
                         scm_from_int (keytable_->table_[i].tokcode_),
                         SCM_EOL);
 
-      tail = SCM_CDRLOC(*tail);
+      tail = SCM_CDRLOC (*tail);
     }
 
   return l;
@@ -341,7 +341,7 @@ IMPLEMENT_DEFAULT_EQUAL_P (Lily_lexer);
 SCM
 Lily_lexer::mark_smob (SCM s)
 {
-  ASSERT_LIVE_IS_ALLOWED();
+  ASSERT_LIVE_IS_ALLOWED ();
   
   Lily_lexer *lexer = (Lily_lexer *) SCM_CELL_WORD_1 (s);
 
index 4e22461638f6354289208371c8f009f673f8be1d..6e628d8ae89dabdf451f848444eb2addca1954f3 100644 (file)
@@ -175,7 +175,7 @@ LY_DEFINE (ly_parser_define_x, "ly:parser-define!",
   LY_ASSERT_SMOB (Lily_parser, parser_smob, 1);
   Lily_parser *parser = unsmob_lily_parser (parser_smob);
 
-  LY_ASSERT_TYPE (ly_is_symbol,symbol, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, symbol, 2);
     
   parser->lexer_->set_identifier (scm_symbol_to_string (symbol), val);
   return SCM_UNSPECIFIED;
@@ -190,7 +190,7 @@ LY_DEFINE (ly_parser_lookup, "ly:parser-lookup",
 
   Lily_parser *parser = unsmob_lily_parser (parser_smob);
  
-  LY_ASSERT_TYPE (ly_is_symbol,symbol, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, symbol, 2);
 
   SCM val = parser->lexer_->lookup_identifier (ly_scm2string (scm_symbol_to_string (symbol)));
   if (val != SCM_UNDEFINED)
@@ -206,7 +206,7 @@ LY_DEFINE (ly_parser_parse_string, "ly:parser-parse-string",
 {
   LY_ASSERT_SMOB (Lily_parser, parser_smob, 1);
   Lily_parser *parser = unsmob_lily_parser (parser_smob); 
-  LY_ASSERT_TYPE(scm_is_string,ly_code, 2);
+  LY_ASSERT_TYPE (scm_is_string, ly_code, 2);
 
   parser->parse_string (ly_scm2string (ly_code));
 
@@ -248,7 +248,7 @@ LY_DEFINE (ly_parser_error, "ly:parser-error",
   LY_ASSERT_SMOB (Lily_parser, parser, 1);
   Lily_parser *p = unsmob_lily_parser (parser);
   
-  LY_ASSERT_TYPE(scm_is_string,msg, 2);
+  LY_ASSERT_TYPE (scm_is_string, msg, 2);
   string s = ly_scm2string (msg);
   
   Input *i = unsmob_input (input);
index b9155a07ab53b4c0a28638282392e23218deb6e7..8720bba596f14eb5085318c184057353c45107f9 100644 (file)
@@ -228,7 +228,7 @@ Line_interface::line (Grob *me, Offset from, Offset to)
       if (period <= 0)
        return Stencil ();
 
-      Real len = (to-from).length();
+      Real len = (to-from).length ();
       
       int n = (int) rint ((len - period * fraction) / period);
       if (n > 0)
@@ -237,7 +237,7 @@ Line_interface::line (Grob *me, Offset from, Offset to)
            TODO: figure out something intelligent for really short
            sections.
           */
-         period = ((to-from).length() - period * fraction) / n;
+         period = ((to-from).length () - period * fraction) / n;
        }
       stil = make_dashed_line (thick, from, to, period, fraction);
     }
index 5bbc1eeaf2652da44c720c597f163c63045a8bdd..db36434b04b252e7a33da6d629d94609ef29f9b2 100644 (file)
@@ -29,7 +29,7 @@ public:
   DECLARE_SCHEME_CALLBACK (calc_left_bound_info_and_text, (SCM));
   DECLARE_SCHEME_CALLBACK (calc_right_bound_info, (SCM));
   DECLARE_SCHEME_CALLBACK (calc_bound_info, (SCM, Direction));
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
 };
 
 
@@ -138,7 +138,7 @@ Line_spanner::calc_bound_info (SCM smob, Direction dir)
       else
        {
          Grob *commony = me->common_refpoint (me->get_bound (dir), Y_AXIS);
-         y = me->get_bound (dir)->extent (commony, Y_AXIS).center();
+         y = me->get_bound (dir)->extent (commony, Y_AXIS).center ();
          details = scm_acons (ly_symbol2scm ("common-Y"), commony->self_scm (), details);
        }
 
index e6fcf4ea0a4a42d9cbb640b36e145cb9f360842d..ed2cff898667e2bb936bac8312410e7aaad89b3a 100644 (file)
@@ -96,13 +96,13 @@ Lyric_combine_music_iterator::set_music_context (Context *to)
 {
   if (music_context_)
     {
-      music_context_->event_source()->remove_listener (GET_LISTENER (set_busy), ly_symbol2scm ("music-event"));
+      music_context_->event_source ()->remove_listener (GET_LISTENER (set_busy), ly_symbol2scm ("music-event"));
     }
 
   music_context_ = to;
   if (to)
     {
-      to->event_source()->add_listener (GET_LISTENER (set_busy), ly_symbol2scm ("music-event"));
+      to->event_source ()->add_listener (GET_LISTENER (set_busy), ly_symbol2scm ("music-event"));
     }
 }
 
index 508b4b8f5bae126bbd6fe911afb5f37d47f72f03..4a539e0eea359ff68e26239ff51d7d04e253eddc 100644 (file)
@@ -138,7 +138,7 @@ static char const *WARRANTY
 */
 string prefix_directory;
 
-/* The jail specification: USER,GROUP,JAIL,DIR. */
+/* The jail specification: USER, GROUP, JAIL, DIR. */
 string jail_spec;
 
 /*  The option parser */
@@ -171,7 +171,7 @@ static Long_option_init options_static[]
   {_i ("DIR"), "include", 'I',  _i ("add DIR to search path")},
   {_i ("FILE"), "init", 'i',  _i ("use FILE as init file")},
 #if HAVE_CHROOT
-  {_i ("USER,GROUP,JAIL,DIR"), "jail", 'j', _i ("chroot to JAIL, become USER:GROUP\n"
+  {_i ("USER, GROUP, JAIL, DIR"), "jail", 'j', _i ("chroot to JAIL, become USER:GROUP\n"
                                                "and cd into DIR")},
 #endif
   {0, "no-print", 0, _i ("do not generate printed output")},
index e11163bf4d23c2e7093432a75a4426467c99296f..a3e185bbdbd7fd3671a56da1392f3b7c3a3db8fe 100644 (file)
@@ -20,7 +20,7 @@
 /*
   Interpolate stem directions for neutral stems.
  */
-MAKE_SCHEME_CALLBACK(Melody_spanner,calc_neutral_stem_direction, 1);
+MAKE_SCHEME_CALLBACK (Melody_spanner, calc_neutral_stem_direction, 1);
 SCM
 Melody_spanner::calc_neutral_stem_direction (SCM smob)
 {
index 5aaf5bd2e63aaaf012156f8199148e77f2e86c87..3e9f898993e9f076234e26acd56936e6961e1685 100644 (file)
@@ -65,8 +65,8 @@ Midi_track::data_string () const
 {
   string str = Midi_chunk::data_string ();
 
-  for (vector<Midi_event*>::const_iterator i (events_.begin());
-       i != events_.end(); i ++)
+  for (vector<Midi_event*>::const_iterator i (events_.begin ());
+       i != events_.end (); i ++)
     {
       str += (*i)->to_string ();
     }
index 16839f81bb568449ed83b7247584a0e1596123c3..4eb3086adf1331f816cf66659d4c86f9846fd15f 100644 (file)
@@ -22,19 +22,19 @@ LY_DEFINE (ly_make_moment, "ly:make-moment",
           "In absence of grace notes, @var{g} is zero.\n")
 {
   LY_ASSERT_TYPE (scm_is_integer, n, 1);
-  LY_ASSERT_TYPE(scm_is_integer,d, 2);
+  LY_ASSERT_TYPE (scm_is_integer, d, 2);
 
   int grace_num = 0;
   if (gn != SCM_UNDEFINED)
     {
-      LY_ASSERT_TYPE(scm_is_integer,gn, 3);
+      LY_ASSERT_TYPE (scm_is_integer, gn, 3);
       grace_num = scm_to_int (gn);
     }
 
   int grace_den = 1;
   if (gd != SCM_UNDEFINED)
     {
-      LY_ASSERT_TYPE(scm_is_integer,gd, 4);
+      LY_ASSERT_TYPE (scm_is_integer, gd, 4);
       grace_den = scm_to_int (gd);
     }
 
@@ -47,7 +47,7 @@ LY_DEFINE (ly_moment_sub, "ly:moment-sub",
           "Subtract two moments.")
 {
   LY_ASSERT_SMOB (Moment, a, 1); 
-  LY_ASSERT_SMOB (Moment,b, 2);
+  LY_ASSERT_SMOB (Moment, b, 2);
   
   Moment *ma = unsmob_moment (a);
   Moment *mb = unsmob_moment (b);
@@ -60,7 +60,7 @@ LY_DEFINE (ly_moment_add, "ly:moment-add",
           "Add two moments.")
 {
   LY_ASSERT_SMOB (Moment, a, 1); 
-  LY_ASSERT_SMOB(Moment,b, 2); 
+  LY_ASSERT_SMOB (Moment, b, 2); 
 
   Moment *ma = unsmob_moment (a);
   Moment *mb = unsmob_moment (b);
@@ -73,7 +73,7 @@ LY_DEFINE (ly_moment_mul, "ly:moment-mul",
           "Multiply two moments.")
 {
   LY_ASSERT_SMOB (Moment, a, 1); 
-  LY_ASSERT_SMOB(Moment, b, 2); 
+  LY_ASSERT_SMOB (Moment, b, 2); 
 
   Moment *ma = unsmob_moment (a);
   Moment *mb = unsmob_moment (b);
@@ -85,7 +85,7 @@ LY_DEFINE (ly_moment_div, "ly:moment-div",
           "Divide two moments.")
 {
   LY_ASSERT_SMOB (Moment, a, 1); 
-  LY_ASSERT_SMOB(Moment, b, 2); 
+  LY_ASSERT_SMOB (Moment, b, 2); 
 
   Moment *ma = unsmob_moment (a);
   Moment *mb = unsmob_moment (b);
@@ -98,7 +98,7 @@ LY_DEFINE (ly_moment_mod, "ly:moment-mod",
           "Modulo of two moments.")
 {
   LY_ASSERT_SMOB (Moment, a, 1); 
-  LY_ASSERT_SMOB(Moment, b, 2); 
+  LY_ASSERT_SMOB (Moment, b, 2); 
   
   Moment *ma = unsmob_moment (a);
   Moment *mb = unsmob_moment (b);
index 1e08ba26ef0d42956f5a6975c83857d9df2f9794..c52b1d6a8727a1ef591eea6201aba2d1220c5084 100644 (file)
@@ -26,7 +26,7 @@ LY_DEFINE (ly_music_property,
           "If @var{sym} is undefined, return @code{'()}.\n")
 {
   LY_ASSERT_TYPE (unsmob_music, mus, 1);
-  return ly_prob_property (mus,sym,dfault);
+  return ly_prob_property (mus, sym, dfault);
 }
 
 LY_DEFINE (ly_music_set_property_x, "ly:music-set-property!",
@@ -129,7 +129,7 @@ LY_DEFINE (ly_music_compress, "ly:music-compress",
           "Compress music object @var{m} by moment @var{factor}.")
 {
   LY_ASSERT_TYPE (unsmob_music, m, 1);
-  LY_ASSERT_TYPE(unsmob_moment,factor, 2);
+  LY_ASSERT_TYPE (unsmob_moment, factor, 2);
 
   Music *sc = unsmob_music (m);
   sc->compress (*unsmob_moment (factor));
index 7cb38bd95677910a6b566da3b030cb24a0137875..a4e05dadbfdc6d5c8ef31148d4667a92612785df 100644 (file)
@@ -289,7 +289,7 @@ New_fingering_engraver::position_scripts (SCM orientations,
 void
 New_fingering_engraver::stop_translation_timestep ()
 {
-  position_all();
+  position_all ();
   stem_ = 0;
   heads_.clear ();
 }
index 488d77f1b72b4cffc07969dc20c53172eb1068ee..23e3f98e018dff05e6c8d662f7765114a7c34348 100644 (file)
@@ -319,7 +319,7 @@ check_meshing_chords (Grob *me,
 }
 
 
-MAKE_SCHEME_CALLBACK(Note_collision_interface, calc_positioning_done, 1) 
+MAKE_SCHEME_CALLBACK (Note_collision_interface, calc_positioning_done, 1) 
 SCM
 Note_collision_interface::calc_positioning_done (SCM smob)
 {
@@ -331,7 +331,7 @@ Note_collision_interface::calc_positioning_done (SCM smob)
   Direction d = UP;
   do
     {
-      for (vsize i = cg[d].size(); i--; )
+      for (vsize i = cg[d].size (); i--; )
        {
          /*
            Trigger positioning
index 57919802694ae70582e83e21bf0ffa0106149746..89f17453cf6d2aa6dcc81880471ba92bdd657dbb 100644 (file)
 #include "font-metric.hh"
 
 
-LY_DEFINE(ly_note_head__stem_attachment, "ly:note-head::stem-attachment",
+LY_DEFINE (ly_note_head__stem_attachment, "ly:note-head::stem-attachment",
          2, 0, 0, (SCM font_metric, SCM glyph_name),
          "Get attachment in @var{font-metric} for attaching a stem to notehead "
          "@var{glyph-name}.")
 {
   LY_ASSERT_SMOB (Font_metric, font_metric, 1);
   Font_metric *fm = unsmob_metrics (font_metric);
-  LY_ASSERT_TYPE(scm_is_string,glyph_name, 2);
+  LY_ASSERT_TYPE (scm_is_string, glyph_name, 2);
   
   return ly_offset2scm (Note_head::get_stem_attachment (fm, ly_scm2string (glyph_name)));
 }
index bd00033bc717d80ebdd7291bb09997c2994fef9f..c711f8729ea42b5296223104dd1aa1c43f31b282 100644 (file)
@@ -129,7 +129,7 @@ Note_head::get_stem_attachment (Font_metric *fm, string key)
   return att;
 }
 
-MAKE_SCHEME_CALLBACK(Note_head, calc_stem_attachment, 1);
+MAKE_SCHEME_CALLBACK (Note_head, calc_stem_attachment, 1);
 SCM
 Note_head::calc_stem_attachment (SCM smob)
 {
index ff296311ffead109a8de2936f8542a3170b8aa0d..12996b73c993bb545f408cedced0434e321e77bf 100644 (file)
@@ -66,7 +66,7 @@ Note_performer::process_music ()
                 }
 
              Moment len = get_event_length (n);
-             if (now_mom().grace_part_)
+             if (now_mom ().grace_part_)
                {
                  len.grace_part_ = len.main_part_;
                  len.main_part_ = Rational (0);
index c4a79e403f7b18bb0313ce9a823ab481cf2cd8d3..2839309ecb39c39aa065a1a2cc87b2693babb0dd 100644 (file)
@@ -79,7 +79,7 @@ Note_spacing::get_spacing (Grob *me, Item *right_col,
              if (g)
                {
                  if (g->common_refpoint (it_col, X_AXIS) != it_col)
-                   programming_error ("Note_spacing::get_spacing(): Common refpoint incorrect");
+                   programming_error ("Note_spacing::get_spacing (): Common refpoint incorrect");
                  else
                    left_head_wid = g->extent (it_col, X_AXIS);
                }
index 64b140f07e021b10cfc15f1e1390c2d936c63e28..6f95641325b5cdc977c5ad9f58f08dc1e243c94c 100644 (file)
@@ -29,7 +29,7 @@ LY_DEFINE (ly_otf_font_glyph_info, "ly:otf-font-glyph-info", 2, 0, 0,
   Open_type_font *otf = dynamic_cast<Open_type_font *> (fm->original_font ());
 
   SCM_ASSERT_TYPE (otf, font, SCM_ARG1, __FUNCTION__, "OTF font-metric");
-  LY_ASSERT_TYPE(scm_is_string, glyph, 2);
+  LY_ASSERT_TYPE (scm_is_string, glyph, 2);
 
   SCM sym = scm_string_to_symbol (glyph);
   return scm_hashq_ref (otf->get_char_table (), sym, SCM_EOL);
index 2e72d57af35ada1833d95f5c60807358b9ef606c..b8f65b45cca2b543c22d409f52012d9424ac19fb 100644 (file)
@@ -174,7 +174,7 @@ Open_type_font::get_indexed_char (size_t signed_idx) const
       char name[len];
       size_t code = FT_Get_Glyph_Name (face_, signed_idx, name, len);
       if (code)
-       warning (_f ("FT_Get_Glyph_Name() Freetype error: %s",
+       warning (_f ("FT_Get_Glyph_Name () Freetype error: %s",
                     freetype_error_string (code)));
 
       SCM sym = ly_symbol2scm (name);
@@ -299,7 +299,7 @@ Open_type_font::glyph_list () const
       char name[len];
       size_t code = FT_Get_Glyph_Name (face_, i, name, len);
       if (code)
-       warning (_f ("FT_Get_Glyph_Name() error: %s",
+       warning (_f ("FT_Get_Glyph_Name () error: %s",
                     freetype_error_string (code).c_str ()));
 
       *tail = scm_cons (scm_from_locale_string (name), SCM_EOL);
index 5dd1036ef1a9acec143abf2a2c2a24a537d999bf..cfd1d5d0363a294aa05617b71653fa6922a61efe 100644 (file)
@@ -23,7 +23,7 @@
 struct Ottava_bracket
 {
   DECLARE_SCHEME_CALLBACK (print, (SCM));
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
 };
 
 /*
index 81e7f7a67158af44cc0de465d807c3fd31bebbcc..853704c5c98d478442499b28f2ea3ad22f367192 100644 (file)
@@ -109,7 +109,7 @@ SCM
 Output_def::lookup_variable (SCM sym) const
 {
   SCM var = ly_module_lookup (scope_, sym);
-  if (SCM_VARIABLEP (var) && SCM_VARIABLE_REF(var) != SCM_UNDEFINED)
+  if (SCM_VARIABLEP (var) && SCM_VARIABLE_REF (var) != SCM_UNDEFINED)
     return SCM_VARIABLE_REF (var);
   
   if (parent_)
index 8b42a6cbd3e7b5128a038ef186b5644d9ad1e9e8..e66faba789def2cd683e250bff19444ec82604f2 100644 (file)
@@ -64,7 +64,7 @@ Output_property_engraver::Output_property_engraver ()
 {
 }
 
-ADD_ACKNOWLEDGER (Output_property_engraver,grob);
+ADD_ACKNOWLEDGER (Output_property_engraver, grob);
 ADD_TRANSLATOR (Output_property_engraver,
 
                /* doc */
index 2ebd53814e3927c3a8120b23befe94847561c3f3..0b8f8295d6b8b446369ca82139771b9c93ef28c2 100644 (file)
@@ -138,7 +138,7 @@ uncompress_solution (vector<vsize> const &systems_per_page,
   return ret;
 }
 
-/* the cases for page_count = 1 or 2 can be done in O(n) time. Since they
+/* the cases for page_count = 1 or 2 can be done in O (n) time. Since they
    are by far the most common cases, we have special functions for them */
 static Spacing_result
 space_systems_on_1_page (vector<Line_details> const &lines, Real page_height, bool ragged)
index 10cca5bfaf7734cec57c6f039043ee4f853a6f8f..f1fb20e6c58758c04c2b070e4294ec0587e28152 100644 (file)
@@ -163,8 +163,8 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, string str,
        {
          int errorcode = FT_Get_Glyph_Name (ftface, pg, glyph_name, GLYPH_NAME_LEN);
          if (errorcode)
-           programming_error (_f ("FT_Get_Glyph_Name() error: %s",
-                                  freetype_error_string (errorcode).c_str()
+           programming_error (_f ("FT_Get_Glyph_Name () error: %s",
+                                  freetype_error_string (errorcode).c_str ()
                                   ));
        }
 
index 89e8b8ded33c3eaad7f28c8de1de17c5c345c1db..bf6a98e5363416673161cddb9410d655f6b60331 100644 (file)
@@ -227,7 +227,7 @@ Paper_book::score_title (SCM header)
 /* read the breakbefore property of a score block and set up the preceding
    system-spec to honour it. That is, SYM should be the system spec that
    immediately precedes the score (from which HEADER is taken)
-   in the get_system_specs() list */
+   in the get_system_specs () list */
 void
 set_system_penalty (SCM sys, SCM header)
 {
@@ -273,7 +273,7 @@ Paper_book::get_score_title (SCM header)
       Prob *ps = make_paper_system (props);
       paper_system_set_stencil (ps, title);
 
-      return ps->self_scm();
+      return ps->self_scm ();
     }
 
   return SCM_BOOL_F;
index 2dd184854f12ea3857cc5939ee09c462f40bb2ae..64db810b3f7fc86486750d073cad36c490737ce0 100644 (file)
@@ -154,7 +154,7 @@ Paper_column_engraver::process_music ()
                           && !measure_position (context ()).main_part_);
 
   /*
-    We can't do this in start_translation_timestep(), since time sig
+    We can't do this in start_translation_timestep (), since time sig
     changes won't have happened by then.
   */
   if (start_of_measure)
index 3c00d79308e40ec3f010349dd7da8d21ee968069..672eab7ce72c07838c780ede3ad5030d9ffac913 100644 (file)
@@ -45,7 +45,7 @@ LY_DEFINE (ly_outputter_dump_stencil, "ly:outputter-dump-stencil",
 {
   
   LY_ASSERT_SMOB (Paper_outputter, outputter, 1);
-  LY_ASSERT_SMOB(Stencil, stencil, 2);
+  LY_ASSERT_SMOB (Stencil, stencil, 2);
 
   Paper_outputter *po = unsmob_outputter (outputter);
   Stencil *st = unsmob_stencil (stencil);
@@ -59,7 +59,7 @@ LY_DEFINE (ly_outputter_dump_string, "ly:outputter-dump-string",
           "Dump @var{str} onto @var{outputter}.")
 {
   LY_ASSERT_SMOB (Paper_outputter, outputter, 1);
-  LY_ASSERT_TYPE(scm_is_string, str, 2);
+  LY_ASSERT_TYPE (scm_is_string, str, 2);
 
   Paper_outputter *po = unsmob_outputter (outputter);
 
index 544f64d8b05eefed05652ab79d7fc47dd0113397..9ff1a55c12769ea7ff61d8cdbdaddf3b0fa4db91 100644 (file)
@@ -23,7 +23,7 @@ paper_system_set_stencil (Prob *prob, Stencil s)
 
   if (is_number_pair (yext))
     {
-      Box b = s.extent_box();
+      Box b = s.extent_box ();
       b[Y_AXIS] = ly_scm2interval (yext);
 
       s = Stencil (b, s.expr ());
index 8f190f969cca7b4aa43a540c3ab8fb063cac0ba7..10e3be740e8f55156af9cb877883d346cfd79ea0 100644 (file)
@@ -25,7 +25,7 @@ protected:
   DECLARE_ACKNOWLEDGER (grob);
 };
 
-Parenthesis_engraver::Parenthesis_engraver()
+Parenthesis_engraver::Parenthesis_engraver ()
 {
 }
 
index 55f99cd5cfca149a66974c2cc00b503a933f17e0..fc3d2a727a119aa95c39190dfe5c4fb323d439b9 100644 (file)
@@ -171,7 +171,7 @@ Percent_repeat_engraver::process_music ()
              && to_boolean (get_property ("countPercentRepeats")))
            {
              Item *double_percent_counter = make_item ("DoublePercentRepeatCounter",
-                                                       percent_event_->self_scm());
+                                                       percent_event_->self_scm ());
 
              SCM text = scm_number_to_string (count,
                                               scm_from_int (10));
@@ -199,7 +199,7 @@ Percent_repeat_engraver::finalize ()
     {
       percent_event_->origin ()->warning (_ ("unterminated percent repeat"));
       percent_->suicide ();
-      percent_counter_->suicide();
+      percent_counter_->suicide ();
     }
 }
 
index 0039b36415fffd906ca88cc16a981fdf86342bd3..726b3a6e1d7ca2202f703fdfd18313b6d830f538 100644 (file)
@@ -14,7 +14,7 @@
 class Percent_repeat_iterator : public Sequential_iterator
 {
 public:
-  DECLARE_CLASSNAME(Percent_repeat_iterator);
+  DECLARE_CLASSNAME (Percent_repeat_iterator);
   DECLARE_SCHEME_CALLBACK (constructor, ());
   Percent_repeat_iterator ();
 protected:
index 5da5e3ee729970eb02ad9082b783cf02d1ae803c..c16c0c375406a60862e548a27089f33cc43792ca 100644 (file)
@@ -13,7 +13,7 @@ LY_DEFINE (ly_performance_write, "ly:performance-write",
           "Write @var{performance} to @var{filename}")
 {
   LY_ASSERT_TYPE (unsmob_performance, performance, 1);
-  LY_ASSERT_TYPE(scm_is_string, filename, 2);
+  LY_ASSERT_TYPE (scm_is_string, filename, 2);
 
   unsmob_performance (performance)->write_output (ly_scm2string (filename));
   return SCM_UNSPECIFIED;
index 86964ce53f6de2c8fab41b516385405d06b5ea5b..efda1be5cde7968e8949c89b41cef734ac3cf155 100644 (file)
@@ -14,7 +14,7 @@
 struct Piano_pedal_bracket
 {
   DECLARE_SCHEME_CALLBACK (print, (SCM));
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
 };
 
 MAKE_SCHEME_CALLBACK (Piano_pedal_bracket, print, 1);
index ef01942221f26ebffd24c620927ffaf7360de17a..0c52377670e0e5efa8ee1ff5d0c089a7b464b5f1 100644 (file)
@@ -97,7 +97,7 @@ Piano_pedal_performer::process_music ()
              a->type_string_ = pedal_type;
              a->dir_ = STOP;
              audios_.push_back (a);
-              Audio_element_info info(a, p->event_drul_[STOP]);
+              Audio_element_info info (a, p->event_drul_[STOP]);
               announce_element (info);
            }
          p->start_event_ = 0;
@@ -110,7 +110,7 @@ Piano_pedal_performer::process_music ()
          a->type_string_ = pedal_type;
          a->dir_ = START;
          audios_.push_back (a);
-          Audio_element_info info(a, p->event_drul_[START]);
+          Audio_element_info info (a, p->event_drul_[START]);
           announce_element (info);
        }
       p->event_drul_[START] = 0;
index aa1ac5cbfeb1617f2984dca2ed5be8adb1a4cc74..e2f3aecf694632c03bb315d9d8098d47537528ce 100644 (file)
@@ -31,8 +31,8 @@ LY_DEFINE (ly_make_pitch, "ly:make-pitch",
           "The @var{alter} is a rational number of whole tones for alteration.")
 {
   LY_ASSERT_TYPE (scm_is_integer, octave, 1);
-  LY_ASSERT_TYPE(scm_is_integer, note, 2);
-  LY_ASSERT_TYPE(scm_is_rational, alter, 3);
+  LY_ASSERT_TYPE (scm_is_integer, note, 2);
+  LY_ASSERT_TYPE (scm_is_rational, alter, 3);
   
   Pitch p (scm_to_int (octave), scm_to_int (note),
           ly_scm2rational (alter));
index 7c43708890d506db29b1059ecafc77ef4d56b7bc..fa68b2d1bab2a4041653d2148648b4bc5dd00658 100644 (file)
@@ -119,7 +119,7 @@ Pitch::normalize ()
       alteration_ = Rational (0);
       alteration_ -= tone_pitch () - pitch;
     }
-  while (alteration_ < Rational(-1))
+  while (alteration_ < Rational (-1))
     {
       if (notename_ == 0)
        {
index c22c88bc729ab57a1c189ce10def62f0c730fdd7..bdbe65d44e5e2be99a77a5341af3fa52a8ee6656 100644 (file)
@@ -36,7 +36,7 @@ LY_DEFINE (ly_prob_property, "ly:prob-property",
 {
   LY_ASSERT_SMOB (Prob, obj, 1);
   Prob *ps = unsmob_prob (obj);
-  LY_ASSERT_TYPE (ly_is_symbol,sym, 2);
+  LY_ASSERT_TYPE (ly_is_symbol, sym, 2);
 
   if (dfault == SCM_UNDEFINED)
     dfault = SCM_EOL;
@@ -54,7 +54,7 @@ LY_DEFINE (ly_prob_type_p, "ly:prob-type?",
           "If obj the specified prob-type?")
 {
   Prob*prob = unsmob_prob (obj);
-  return scm_from_bool (prob && prob->type() == type);
+  return scm_from_bool (prob && prob->type () == type);
 }
 
 LY_DEFINE (ly_make_prob, "ly:make-prob",
@@ -77,7 +77,7 @@ LY_DEFINE (ly_make_prob, "ly:make-prob",
 }
 
   
-LY_DEFINE(ly_paper_system_p, "ly:paper-system?",
+LY_DEFINE (ly_paper_system_p, "ly:paper-system?",
          1, 0, 0, (SCM obj),
          "Type predicate.")
 {
index e6facbddc5808f521d47bbfe4516d9d6159ddcc5..ce51546d8e0f83f50582e840cecb25b9b09988de 100644 (file)
@@ -47,7 +47,7 @@ Prob::equal_p (SCM sa, SCM sb)
       SCM bprop = props[1][i];
 
       for (;
-          scm_is_pair (aprop) && scm_is_pair(bprop);
+          scm_is_pair (aprop) && scm_is_pair (bprop);
           aprop = scm_cdr (aprop), bprop = scm_cdr (bprop))
        {
          SCM aval = scm_cdar (aprop);
@@ -111,7 +111,7 @@ Prob::derived_mark () const
 SCM
 Prob::mark_smob (SCM smob)
 {
-  ASSERT_LIVE_IS_ALLOWED();
+  ASSERT_LIVE_IS_ALLOWED ();
   
   Prob *system = (Prob *) SCM_CELL_WORD_1 (smob);
   scm_gc_mark (system->mutable_property_alist_);
index 47502f7dbda9f054f9524c0587763cf5b26bc91b..635b4165c9b2039bdda7fe8654795665ff81beaa 100644 (file)
@@ -233,7 +233,7 @@ setup_paths (char const *argv0_ptr)
   /*
     When running from build dir, a full LILYPOND_PREFIX is set-up at
 
-        $(OUTBASE)/{share,lib}/lilypond/current
+        $(OUTBASE)/{share, lib}/lilypond/current
 
   */
   
@@ -268,9 +268,9 @@ setup_paths (char const *argv0_ptr)
 string
 expand_environment_variables (string orig)
 {
-  const char *start_ptr = orig.c_str();
-  const char *ptr = orig.c_str();
-  size_t len = orig.length();
+  const char *start_ptr = orig.c_str ();
+  const char *ptr = orig.c_str ();
+  size_t len = orig.length ();
 
   string out;
   while (ptr < start_ptr + len)
@@ -318,7 +318,7 @@ expand_environment_variables (string orig)
          if (start_var < end_var)
            {
              string var_name (start_var, end_var - start_var);
-             const char *value = getenv (var_name.c_str());
+             const char *value = getenv (var_name.c_str ());
              if (value != NULL)
                out += string (value);
 
@@ -380,11 +380,11 @@ read_relocation_file (string filename)
       value = expand_environment_variables (value);
 
       if (command == "set")
-       sane_putenv (variable.c_str(), value, true);
+       sane_putenv (variable.c_str (), value, true);
       else if (command == "setdir")
-       set_env_dir (variable.c_str(), value);
+       set_env_dir (variable.c_str (), value);
       else if (command == "setfile")
-       set_env_file (variable.c_str(), value);
+       set_env_file (variable.c_str (), value);
       else if (command == "prependdir")
        prepend_env_path (variable.c_str (), value);
       else
index e470e9154c838263e3bf988513705fd01dc315e7..063b773a92ae2f3ccf58792ba566095bf884b0a2 100644 (file)
@@ -87,7 +87,7 @@ Rest_collision::add_column (Grob *me, Grob *p)
   TODO: look at horizontal-shift to determine ordering between rests
   for more than two voices.
 */
-MAKE_SCHEME_CALLBACK(Rest_collision, calc_positioning_done, 1);
+MAKE_SCHEME_CALLBACK (Rest_collision, calc_positioning_done, 1);
 SCM
 Rest_collision::calc_positioning_done (SCM smob)
 {
index 0859c25dba306de8fdddaca00c4a421fb0c7a9c6..ecd2b9357edb3a2ea4aec7c8ed10405c9008eb05 100644 (file)
@@ -111,5 +111,5 @@ Scale::~Scale ()
 {
 }
 
-IMPLEMENT_SMOBS(Scale);
-IMPLEMENT_DEFAULT_EQUAL_P(Scale);
+IMPLEMENT_SMOBS (Scale);
+IMPLEMENT_DEFAULT_EQUAL_P (Scale);
index eb89e555f83819771cc2054c6e7e1adde0f0d9e4..8d66adf0dda003a785d0f101004e5fb41fcba728 100644 (file)
@@ -131,7 +131,7 @@ Score_engraver::finalize ()
   typeset_all ();
 }
 
-IMPLEMENT_LISTENER(Score_engraver, one_time_step);
+IMPLEMENT_LISTENER (Score_engraver, one_time_step);
 void
 Score_engraver::one_time_step (SCM)
 {
index 4e08f46ae1e62841d253aa6220b12ed459a3077c..6206011dda1ab72ff7b6c7265477950f56c39dbc 100644 (file)
@@ -38,7 +38,7 @@ LY_DEFINE (ly_score_output_defs, "ly:score-output-defs",
 
   SCM l = SCM_EOL;
   for (vsize i = 0; i < sc->defs_.size (); i++)
-    l = scm_cons (sc->defs_[i]->self_scm(), l);
+    l = scm_cons (sc->defs_[i]->self_scm (), l);
   return scm_reverse_x (l, SCM_EOL);
 }
 
index 9087b88e6cd16ca1302a7a847bec7070de98e795..ff77193f179def3ba646fcdb507993a7036cf942 100644 (file)
@@ -79,7 +79,7 @@ Script_interface::print (SCM smob)
 
 struct Text_script
 {
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
 };
 
 ADD_INTERFACE (Text_script,
index ee18953aef22247e8472eae4319ee81b20069cba..70d431f10591237996c81dd50bdac51b8824dae2 100644 (file)
@@ -20,7 +20,7 @@
 #include "tie-column-format.hh"
 
 
-ADD_INTERFACE(Semi_tie_column,
+ADD_INTERFACE (Semi_tie_column,
              "The interface for a column of l.v. ties.",
 
              /* properties */
@@ -34,7 +34,7 @@ ADD_INTERFACE(Semi_tie_column,
 /*
   Cut & paste from tie-column.cc
  */   
-MAKE_SCHEME_CALLBACK(Semi_tie_column, calc_positioning_done, 1);
+MAKE_SCHEME_CALLBACK (Semi_tie_column, calc_positioning_done, 1);
 SCM
 Semi_tie_column::calc_positioning_done (SCM smob)
 {
@@ -58,7 +58,7 @@ Semi_tie_column::calc_positioning_done (SCM smob)
   problem.set_manual_tie_configuration (manual_configs);
 
   Ties_configuration base = problem.generate_optimal_configuration ();
-  for (vsize i = 0; i < lv_ties.size(); i++)
+  for (vsize i = 0; i < lv_ties.size (); i++)
     {
       SCM cp = Tie::get_control_points (lv_ties[i], problem.common_x_refpoint (), base[i],
                                        problem.details_);
index a95b30737f263dda851cce80f9271b7934a4bc6c..a12156e6037ad0ef76b83ebadc4c1a49b4d664f0 100644 (file)
@@ -15,7 +15,7 @@
 #include "warn.hh"
 #include "staff-symbol-referencer.hh"
 
-ADD_INTERFACE(Semi_tie,
+ADD_INTERFACE (Semi_tie,
              
              "A tie which is only on one side connected to note heads. ",
 
@@ -28,7 +28,7 @@ ADD_INTERFACE(Semi_tie,
              "thickness "
              );
 
-MAKE_SCHEME_CALLBACK(Semi_tie, calc_control_points, 1)
+MAKE_SCHEME_CALLBACK (Semi_tie, calc_control_points, 1)
 SCM
 Semi_tie::calc_control_points (SCM smob)
 {
index c0536b6ce3ab69b95f545b860d45ba65a707ee8e..0e3a075100402c3fba1432e5a8097171b8c1eef0 100644 (file)
@@ -68,7 +68,7 @@ Separation_item::conditional_skyline (Grob *me, Grob *left)
 }
 
 
-MAKE_SCHEME_CALLBACK(Separation_item,calc_skylines,1);
+MAKE_SCHEME_CALLBACK (Separation_item, calc_skylines,1);
 SCM
 Separation_item::calc_skylines (SCM smob)
 {
index f473b30e47e446d79922cbcdd9c8d81bad69e84d..22ee294f49916b9e283c19745b944eafe7bb9673 100644 (file)
@@ -83,14 +83,14 @@ evaluate_with_simple_closure (SCM delayed_argument,
   return SCM_EOL;
 }
 
-LY_DEFINE(ly_simple_closure_p, "ly:simple-closure?",
+LY_DEFINE (ly_simple_closure_p, "ly:simple-closure?",
          1,0,0, (SCM clos),
          "Type predicate.")
 {
   return scm_from_bool (is_simple_closure (clos));
 }
 
-LY_DEFINE(ly_make_simple_closure, "ly:make-simple-closure",
+LY_DEFINE (ly_make_simple_closure, "ly:make-simple-closure",
          1, 0, 0, (SCM expr),
          "Make a simple closure. @var{expr} should be form of "
          "@code{(@var{func} @var{a1} @var{A2} ...)}, and will be invoked "
@@ -98,11 +98,11 @@ LY_DEFINE(ly_make_simple_closure, "ly:make-simple-closure",
 {
   SCM z;
 
-  SCM_NEWSMOB(z, simple_closure_tag, expr);
+  SCM_NEWSMOB (z, simple_closure_tag, expr);
   return z;
 }
 
-LY_DEFINE(ly_eval_simple_closure, "ly:eval-simple-closure",
+LY_DEFINE (ly_eval_simple_closure, "ly:eval-simple-closure",
          2, 2, 0, (SCM delayed, SCM closure, SCM scm_start, SCM scm_end),
          "Evaluate a simple closure with the given delayed argument. "
          "If start and end are defined, evaluate it purely with those "
index 2e0f4ba9f73883a31832c40afff776dd1b8821ed..6f7610670670be53853887ddd0818cafbef02a11 100644 (file)
@@ -29,7 +29,7 @@ LY_DEFINE (ly_solve_spring_rod_problem, "ly:solve-spring-rod-problem",
 
   SCM_ASSERT_TYPE (len >= 0, springs, SCM_ARG1, __FUNCTION__, "list of springs");
   SCM_ASSERT_TYPE (scm_ilength (rods)  > 0, rods, SCM_ARG1, __FUNCTION__, "list of rods");
-  LY_ASSERT_TYPE(scm_is_number, length, 3);
+  LY_ASSERT_TYPE (scm_is_number, length, 3);
 
   bool is_ragged = ragged == SCM_BOOL_T;
   Simple_spacer spacer;
index b729e5312b15a56471f9f7b58ca542e0db947281..0e2f2fa12b97862dd1956d9a10d8d731d53a3dfe 100644 (file)
@@ -153,7 +153,7 @@ Building::Building (Box const &b, Real horizon_padding, Axis horizon_axis, Direc
 void
 Building::precompute ()
 {
-  slope_ = (height_[RIGHT] - height_[LEFT]) / (iv_.length());
+  slope_ = (height_[RIGHT] - height_[LEFT]) / (iv_.length ());
   if (height_[LEFT] == height_[RIGHT]) /* in case they're both infinity */
     slope_ = 0;
 
@@ -381,7 +381,7 @@ Skyline::internal_build_skyline (list<Building> *buildings)
   while (!buildings->empty ())
     partials.push_back (non_overlapping_skyline (buildings));
 
-  /* we'd like to say while (partials->size () > 1) but that's O(n).
+  /* we'd like to say while (partials->size () > 1) but that's O (n).
      Instead, we exit in the middle of the loop */
   while (!partials.empty ())
     {
@@ -651,7 +651,7 @@ IMPLEMENT_DEFAULT_EQUAL_P (Skyline_pair);
 SCM
 Skyline::mark_smob (SCM)
 {
-  ASSERT_LIVE_IS_ALLOWED();
+  ASSERT_LIVE_IS_ALLOWED ();
   return SCM_EOL;
 }
 
index 6dc6b5718ac487d2a1c6256df93ea3f4420d39ac..b89f12867219eec185c9dec4c4404860b48f0a96 100644 (file)
@@ -273,7 +273,7 @@ Slur_score_state::fill (Grob *me)
 }
 
 
-MAKE_SCHEME_CALLBACK(Slur, calc_control_points, 1)
+MAKE_SCHEME_CALLBACK (Slur, calc_control_points, 1)
 SCM
 Slur::calc_control_points (SCM smob)
 {
@@ -621,7 +621,7 @@ Slur_score_state::generate_avoid_offsets () const
 
          if (!xe.is_empty ()
              && !ye.is_empty ())
-           avoid.push_back (Offset (xe.center(), ye[dir_]));
+           avoid.push_back (Offset (xe.center (), ye[dir_]));
        }
     }  
   return avoid;
index 9ce45e61f59bbd515522d72f59eb306ad25cf6f5..c2e00f243d34f85f0f1a76d813ed9009bb86a630 100644 (file)
@@ -32,7 +32,7 @@
 
 
 
-MAKE_SCHEME_CALLBACK(Slur, calc_direction, 1)
+MAKE_SCHEME_CALLBACK (Slur, calc_direction, 1)
 SCM
 Slur::calc_direction (SCM smob)
 {
index 34b5bb36ab697e30da50d1480f01eb0bb6ea49d5..a4c88fe58b12f276406dcae0a9d5b78d4b04d343 100644 (file)
@@ -21,7 +21,7 @@ init_smob_protection ()
 }
 ADD_SCM_INIT_FUNC (init_smob_protection, init_smob_protection);
 
-LY_DEFINE(ly_smob_protects, "ly:smob-protects",
+LY_DEFINE (ly_smob_protects, "ly:smob-protects",
          0, 0, 0, (),
          "Return lily's internal smob protection list")
 {
index 879653dff0b050cb7fb283f91ebf6ca62bd6c870..90bc5fcabde4a01ecfd8d0e6a55e09d8aa1621f5 100644 (file)
@@ -188,7 +188,7 @@ Source_file::quote_input (char const *pos_str0) const
   string context = line.substr (0, ch)
     + to_string ('\n')
     + to_string (' ', col)
-    + line.substr (ch, line.length()-ch);
+    + line.substr (ch, line.length ()-ch);
   return context;
 }
 
@@ -365,9 +365,9 @@ Source_file::get_port () const
 
 #include "ly-smobs.icc"
 
-IMPLEMENT_SMOBS(Source_file);
-IMPLEMENT_DEFAULT_EQUAL_P(Source_file);
-IMPLEMENT_TYPE_P(Source_file, "ly:source-file?");
+IMPLEMENT_SMOBS (Source_file);
+IMPLEMENT_DEFAULT_EQUAL_P (Source_file);
+IMPLEMENT_TYPE_P (Source_file, "ly:source-file?");
 
 SCM
 Source_file::mark_smob (SCM smob)
index 50848ecc598a2ae8c33f944605e6efd3ce2967d5..ee4ddba35ddd25baeddedb90ee13aa65dacbaf94 100644 (file)
@@ -50,7 +50,7 @@ Spacing_spanner::set_springs (SCM smob)
   Spanner *me = unsmob_spanner (smob);
 
   /*
-    can't use get_system() ? --hwn.
+    can't use get_system () ? --hwn.
   */
   Spacing_options options;
   options.init_from_grob (me);
@@ -404,7 +404,7 @@ bool
 Spacing_spanner::fills_measure (Grob *me, Item *left, Item *col)
 {
   System *sys = get_root_system (me);
-  Item *next = sys->column (col->get_column()->get_rank () + 1);
+  Item *next = sys->column (col->get_column ()->get_rank () + 1);
   if (!next)
     return false;
 
index ec70ba6817b6e9bab5a4a9d51bd6c3f548eb2f1d..0dc62b3a51e041760350aeffe900f72accd65aca 100644 (file)
@@ -16,7 +16,7 @@ LY_DEFINE (ly_spanner_bound, "ly:spanner-bound",
           "for left, and @code{1} for right.")
 {
   LY_ASSERT_TYPE (unsmob_spanner, slur, 1);
-  LY_ASSERT_TYPE(is_direction, dir,2);
+  LY_ASSERT_TYPE (is_direction, dir,2);
   
   return unsmob_spanner (slur)->get_bound (to_dir (dir))->self_scm ();
 }
index 14ab378668eba48b12546c2febb4a4a29ffae231..8cc223b191ec89554bc7347247139b62a15bbeaf 100644 (file)
@@ -393,7 +393,7 @@ unsmob_spanner (SCM s)
   return dynamic_cast<Spanner *> (unsmob_grob (s));
 }
 
-MAKE_SCHEME_CALLBACK(Spanner, bounds_width, 1);
+MAKE_SCHEME_CALLBACK (Spanner, bounds_width, 1);
 SCM
 Spanner::bounds_width (SCM grob)
 {
index 9f6b1915e8cdf715df5724e315dd2ec3c9b269fa..d7102ac15b33aa576425728e3c1917ecdd529a37 100644 (file)
@@ -139,7 +139,7 @@ Staff_symbol::get_ledger_line_thickness (Grob *me)
   return z[X_AXIS] * get_line_thickness (me) + z[Y_AXIS] * staff_space (me);
 }
 
-MAKE_SCHEME_CALLBACK(Staff_symbol,height,1);
+MAKE_SCHEME_CALLBACK (Staff_symbol, height,1);
 SCM
 Staff_symbol::height  (SCM smob)
 {
index c8fbd63d18d3ec037f5fe3c8ed030622ffee6710..9bb588db4f73450917cfe182143ffad014aac300 100644 (file)
@@ -160,7 +160,7 @@ Stem_tremolo::untranslated_stencil (Grob *me, Real slope)
   if (!stem)
     {
       programming_error ("no stem for stem-tremolo");
-      return Stencil();
+      return Stencil ();
     }
 
   Direction stemdir = get_grob_direction (stem);
index 857dfb7d49fbbc37aceed0421697de11b9806566..4189915f372fadb795c5e56861961e37735975ae 100644 (file)
@@ -402,7 +402,7 @@ Stem::duration_log (Grob *me)
   return (scm_is_number (s)) ? scm_to_int (s) : 2;
 }
 
-MAKE_SCHEME_CALLBACK(Stem, calc_positioning_done, 1);
+MAKE_SCHEME_CALLBACK (Stem, calc_positioning_done, 1);
 SCM
 Stem::calc_positioning_done (SCM smob)
 {
@@ -508,7 +508,7 @@ Stem::calc_positioning_done (SCM smob)
   return SCM_BOOL_T;
 }
 
-MAKE_SCHEME_CALLBACK(Stem, calc_direction, 1);
+MAKE_SCHEME_CALLBACK (Stem, calc_direction, 1);
 SCM
 Stem::calc_direction (SCM smob)
 {
@@ -531,7 +531,7 @@ Stem::calc_direction (SCM smob)
   return scm_from_int (dir);
 }
 
-MAKE_SCHEME_CALLBACK(Stem, calc_default_direction, 1);
+MAKE_SCHEME_CALLBACK (Stem, calc_default_direction, 1);
 SCM
 Stem::calc_default_direction (SCM smob)
 {
@@ -570,11 +570,11 @@ Stem::height (SCM smob)
     }
 
   /*
-    Can't get_stencil(), since that would cache stencils too early.
+    Can't get_stencil (), since that would cache stencils too early.
     This causes problems with beams.
    */
   Stencil *stencil = unsmob_stencil (print (smob));
-  Interval iv = stencil ? stencil->extent (Y_AXIS) : Interval();
+  Interval iv = stencil ? stencil->extent (Y_AXIS) : Interval ();
   if (beam)
     {
       if (dir == CENTER)
@@ -857,7 +857,7 @@ Stem::get_stem_info (Grob *me)
   return si;
 }
 
-MAKE_SCHEME_CALLBACK(Stem, calc_stem_info, 1);
+MAKE_SCHEME_CALLBACK (Stem, calc_stem_info, 1);
 SCM
 Stem::calc_stem_info (SCM smob)
 {
index 90a82ec466eeedd6dfc12f3754879487c24fd459..36f1406b66809d441076f79a0b8624c2e3ec2b5d 100644 (file)
@@ -22,8 +22,8 @@ LY_DEFINE (ly_stencil_translate_axis, "ly:stencil-translate-axis",
 {
   Stencil *s = unsmob_stencil (stil);
   LY_ASSERT_SMOB (Stencil, stil, 1);
-  LY_ASSERT_TYPE(scm_is_number,amount, 2);
-  LY_ASSERT_TYPE(is_axis,axis, 3);
+  LY_ASSERT_TYPE (scm_is_number, amount, 2);
+  LY_ASSERT_TYPE (is_axis, axis, 3);
 
   Real real_amount = scm_to_double (amount);
 
@@ -40,7 +40,7 @@ LY_DEFINE (ly_stencil_translate, "ly:stencil-translate",
 {
   Stencil *s = unsmob_stencil (stil);
   LY_ASSERT_SMOB (Stencil, stil, 1);
-  LY_ASSERT_TYPE(is_number_pair, offset, 2);
+  LY_ASSERT_TYPE (is_number_pair, offset, 2);
   Offset o = ly_scm2offset (offset);
 
   SCM new_s = s->smobbed_copy ();
@@ -65,7 +65,7 @@ LY_DEFINE (ly_stencil_extent, "ly:stencil-extent",
 {
   Stencil *s = unsmob_stencil (stil);
   LY_ASSERT_SMOB (Stencil, stil, 1);
-  LY_ASSERT_TYPE(is_axis, axis, 2);
+  LY_ASSERT_TYPE (is_axis, axis, 2);
 
   return ly_interval2scm (s->extent (Axis (scm_to_int (axis))));
 }
@@ -100,19 +100,19 @@ LY_DEFINE (ly_stencil_combine_at_edge, "ly:stencil-combine-at-edge",
                   first, SCM_ARG1, __FUNCTION__, "Stencil, #f or ()");
   SCM_ASSERT_TYPE (s2 || second == SCM_BOOL_F || second == SCM_EOL,
                   second, SCM_ARG4, __FUNCTION__, "Stencil, #f or ()");
-  LY_ASSERT_TYPE(is_axis, axis,  2);
-  LY_ASSERT_TYPE(is_direction, direction, 3);
+  LY_ASSERT_TYPE (is_axis, axis,  2);
+  LY_ASSERT_TYPE (is_direction, direction, 3);
 
   Real p = 0.0;
   if (padding != SCM_UNDEFINED)
     {
-      LY_ASSERT_TYPE(scm_is_number, padding, 5);
+      LY_ASSERT_TYPE (scm_is_number, padding, 5);
       p = scm_to_double (padding);
     }
   Real m = 0.0;
   if (minimum != SCM_UNDEFINED)
     {
-      LY_ASSERT_TYPE(scm_is_number, minimum, 6);
+      LY_ASSERT_TYPE (scm_is_number, minimum, 6);
       m = scm_to_double (minimum);
     }
 
@@ -174,14 +174,14 @@ LY_DEFINE (ly_make_stencil, "ly:make-stencil",
   Interval x; 
   if (xext != SCM_UNDEFINED)
     {
-      LY_ASSERT_TYPE(is_number_pair, xext, 2);
+      LY_ASSERT_TYPE (is_number_pair, xext, 2);
       x = ly_scm2interval (xext);
     }
 
   Interval y; 
   if (yext != SCM_UNDEFINED)
     {
-      LY_ASSERT_TYPE(is_number_pair,yext, 3);
+      LY_ASSERT_TYPE (is_number_pair, yext, 3);
       y = ly_scm2interval (yext);
     }
 
@@ -197,8 +197,8 @@ LY_DEFINE (ly_stencil_aligned_to, "ly:stencil-aligned-to",
           "Other values are interpolated (so 0 means the center).")
 {
   LY_ASSERT_SMOB (Stencil, stil, 1);
-  LY_ASSERT_TYPE(is_axis,axis, 2);
-  LY_ASSERT_TYPE(scm_is_number, dir, 3);
+  LY_ASSERT_TYPE (is_axis, axis, 2);
+  LY_ASSERT_TYPE (scm_is_number, dir, 3);
 
   Stencil target = *unsmob_stencil (stil);
 
@@ -264,9 +264,9 @@ LY_DEFINE (ly_bracket, "ly:bracket",
           "may be negative. The thickness is given by @var{t}.")
 {
   LY_ASSERT_TYPE (is_axis, a, 1);
-  LY_ASSERT_TYPE(is_number_pair,iv, 2);
-  LY_ASSERT_TYPE(scm_is_number, t,3);
-  LY_ASSERT_TYPE(scm_is_number, p,4);
+  LY_ASSERT_TYPE (is_number_pair, iv, 2);
+  LY_ASSERT_TYPE (scm_is_number, t,3);
+  LY_ASSERT_TYPE (scm_is_number, p,4);
 
   return Lookup::bracket ((Axis)scm_to_int (a), ly_scm2interval (iv),
                          scm_to_double (t),
@@ -280,9 +280,9 @@ LY_DEFINE (ly_stencil_rotate, "ly:stencil-rotate",
 {
   Stencil *s = unsmob_stencil (stil);
   LY_ASSERT_SMOB (Stencil, stil, 1);
-  LY_ASSERT_TYPE(scm_is_number,angle, 2);
-  LY_ASSERT_TYPE(scm_is_number, x,3);
-  LY_ASSERT_TYPE(scm_is_number, y, 4);
+  LY_ASSERT_TYPE (scm_is_number, angle, 2);
+  LY_ASSERT_TYPE (scm_is_number, x,3);
+  LY_ASSERT_TYPE (scm_is_number, y, 4);
   Real a = scm_to_double (angle);
   Real x_off = scm_to_double (x);
   Real y_off = scm_to_double (y);
@@ -301,8 +301,8 @@ LY_DEFINE (ly_round_filled_box, "ly:round-filled-box",
           "@var{yext} and roundness @var{blot}.")
 {
   LY_ASSERT_TYPE (is_number_pair, xext, 1);
-  LY_ASSERT_TYPE(is_number_pair, yext, 2);
-  LY_ASSERT_TYPE(scm_is_number, blot, 3);
+  LY_ASSERT_TYPE (is_number_pair, yext, 2);
+  LY_ASSERT_TYPE (scm_is_number, blot, 3);
 
   return Lookup::round_filled_box (Box (ly_scm2interval (xext), ly_scm2interval (yext)),
                                   scm_to_double (blot)).smobbed_copy ();
index 68aedd5497164eb09fa575b80e4b65756cac5a8e..04df26a7220c573c9532ef01d9e12ee8c704f801 100644 (file)
@@ -15,7 +15,7 @@ LY_DEFINE (ly_make_stream_event, "ly:make-stream-event",
   LY_ASSERT_TYPE (ly_is_symbol, cl, 1);
 
   /* should be scm_list_p, but scm_list_p is expensive. */
-  LY_ASSERT_TYPE(scm_is_pair, proplist, 2);
+  LY_ASSERT_TYPE (scm_is_pair, proplist, 2);
   
   if (proplist == SCM_UNDEFINED)
     proplist = SCM_EOL;
index 479618addcdb1b50aef2c4768a373964ce157aff..ee4bf6ef114a5265cbb595e91361c6c09647988b 100644 (file)
@@ -21,7 +21,7 @@
 struct Bracket_nesting_node
 {
 public:
-  virtual ~Bracket_nesting_node(){}
+  virtual ~Bracket_nesting_node (){}
   virtual bool add_staff (Grob *) { return false; }
   virtual void add_support (Grob *) { }
   virtual void set_bound (Direction, Grob *){}
@@ -219,7 +219,7 @@ System_start_delimiter_engraver::finalize ()
 void
 System_start_delimiter_engraver::acknowledge_staff_symbol (Grob_info inf)
 {
-  Grob *staff = inf.grob();
+  Grob *staff = inf.grob ();
   bool succ = nesting_->add_staff (staff);
 
   if (!succ)
index 206ccd84db7cf68dfede69e5c67c0095b75b64a7..0d12490ff931c99e7dc4264c80bb65250474b6a9 100644 (file)
@@ -167,7 +167,7 @@ System_start_delimiter::staff_brace (Grob *me, Real y)
   while (hi - lo > 1);
 
   Stencil stil (fm->find_by_name ("brace" + to_string (lo)));
-  stil.translate_axis (-b[X_AXIS].length()/2, X_AXIS);
+  stil.translate_axis (-b[X_AXIS].length ()/2, X_AXIS);
 
   stil.translate_axis (-0.2, X_AXIS);
   
index 00795d22d749a743b8b381508f0816477e7ecc93..494ab149b883f8f024df6d37ca685dca8e171dbf 100644 (file)
@@ -19,7 +19,7 @@ class System_start_text
 {
 public:
   static Stencil get_stencil (Grob *);
-  DECLARE_GROB_INTERFACE();
+  DECLARE_GROB_INTERFACE ();
 
   DECLARE_SCHEME_CALLBACK (print, (SCM));
 };
@@ -47,7 +47,7 @@ System_start_text::get_stencil (Grob *me_grob)
        p->align_to (Y_AXIS, robust_scm2double (align_y, 0.0));
       return *p;
     }
-  return Stencil();
+  return Stencil ();
 }
 
 
index 06ac09e39a224b6b31467474d88e14e54bf1d341..bbbe941faf40bf3ab622eea5e8e87c0c5d247df8 100644 (file)
@@ -350,7 +350,7 @@ System::get_paper_system ()
       Grob *g = entries[j].grob_;
       Stencil st = g->get_print_stencil ();
 
-      if (st.expr() == SCM_EOL)
+      if (st.expr () == SCM_EOL)
        continue;
       
       Offset o;
index 900f4816dc98bd1d6a9bdf89b88e3c019dfea019..1faa1141444fe76e00e128ee6bd93579151890fc 100644 (file)
@@ -25,7 +25,7 @@ protected:
   DECLARE_ACKNOWLEDGER (note_head);
 };
 
-Tab_harmonic_engraver::Tab_harmonic_engraver()
+Tab_harmonic_engraver::Tab_harmonic_engraver ()
 {
 }
 
index 03ba28679c65fc5c50b7b0e8e9ae6748d2f5f992..f103e0f6b40cae754c74f9fc4c4c0acc9344a9aa 100644 (file)
@@ -14,7 +14,7 @@ class Tab_staff_symbol_engraver : public Engraver
 public:
   TRANSLATOR_DECLARATIONS (Tab_staff_symbol_engraver);
 protected:
-  DECLARE_ACKNOWLEDGER(staff_symbol);
+  DECLARE_ACKNOWLEDGER (staff_symbol);
 };
 
 void
index b54428d986fca49ac7a1b2492cefd227c762c8f6..eb2a00d84cf60fed08e0ae5e483ce2f2169a2644 100644 (file)
@@ -69,7 +69,7 @@ Tie_column::before_line_breaking (SCM smob)
   return SCM_UNSPECIFIED;
 }
 
-MAKE_SCHEME_CALLBACK(Tie_column, calc_positioning_done, 1)
+MAKE_SCHEME_CALLBACK (Tie_column, calc_positioning_done, 1)
 SCM
 Tie_column::calc_positioning_done (SCM smob)
 {
@@ -93,7 +93,7 @@ Tie_column::calc_positioning_done (SCM smob)
 
   Ties_configuration base = problem.generate_optimal_configuration ();
 
-  for (vsize i = 0; i < base.size(); i++)
+  for (vsize i = 0; i < base.size (); i++)
     {
       SCM cp = Tie::get_control_points (ties[i], problem.common_x_refpoint (),
                                        base[i],
index 2491f7e3effaa6c52fbcc73975e82c660eb8d916..9cccd505b9daea335b02b10d2feeaf2053f4b649 100644 (file)
@@ -64,7 +64,7 @@ Tie_configuration::get_transformed_bezier (Tie_details const &details) const
 Bezier
 Tie_configuration::get_untransformed_bezier (Tie_details const &details) const
 {
-  Real l = attachment_x_.length();
+  Real l = attachment_x_.length ();
   if (isinf (l) || isnan (l))
     {
       programming_error ("Inf or NaN encountered");
@@ -106,14 +106,14 @@ Tie_configuration::add_score (Real s, string desc)
 Real
 Tie_configuration::height (Tie_details const &details) const
 {
-  Real l = attachment_x_.length();
+  Real l = attachment_x_.length ();
 
   return slur_shape (l,
                     details.height_limit_,
                     details.ratio_).curve_point (0.5)[Y_AXIS]; 
 }
 
-Ties_configuration::Ties_configuration()
+Ties_configuration::Ties_configuration ()
 {
   score_ = 0.0;
   scored_ = false;
@@ -184,7 +184,7 @@ string
 Ties_configuration::complete_score_card () const
 {
   string s; 
-  for (vsize i = 0; i < size(); i++)
+  for (vsize i = 0; i < size (); i++)
     {
       s += complete_tie_card (i);
     }
index ddb662fd308658cbe8df5a915aeb780e3efca0db..7c39b1c717cf20bbca5c7fbf8f7b7e10dc32623a 100644 (file)
@@ -32,20 +32,20 @@ Tie_details::from_grob (Grob *me)
   
   SCM details = me->get_property ("details");
 
-  height_limit_ = get_real_detail("height-limit", 0.75);
-  ratio_ = get_real_detail("ratio", .333);  
+  height_limit_ = get_real_detail ("height-limit", 0.75);
+  ratio_ = get_real_detail ("ratio", .333);  
   between_length_limit_ = get_real_detail ("between-length-limit", 1.0);
   
-  wrong_direction_offset_penalty_ = get_real_detail("wrong-direction-offset-penalty", 10);
+  wrong_direction_offset_penalty_ = get_real_detail ("wrong-direction-offset-penalty", 10);
   
-  min_length_ = get_real_detail("min-length", 1.0);
-  min_length_penalty_factor_ = get_real_detail("min-length-penalty-factor", 1.0);
+  min_length_ = get_real_detail ("min-length", 1.0);
+  min_length_penalty_factor_ = get_real_detail ("min-length-penalty-factor", 1.0);
 
 
   // in half-space
   center_staff_line_clearance_ = get_real_detail ("center-staff-line-clearance", 0.4);
   tip_staff_line_clearance_ = get_real_detail ("tip-staff-line-clearance", 0.4);
-  staff_line_collision_penalty_ = get_real_detail("staff-line-collision-penalty", 5);
+  staff_line_collision_penalty_ = get_real_detail ("staff-line-collision-penalty", 5);
   dot_collision_clearance_ = get_real_detail ( "dot-collision-clearance", 0.25);
   dot_collision_penalty_ = get_real_detail ( "dot-collision-penalty", 0.25);
   x_gap_ = get_real_detail ("note-head-gap", 0.2);
index b97a5ad9c2bbd71782b25f95952a902a376aef81..bdcd3dbb365040465e5aefe238e8a92178dcca06 100644 (file)
@@ -252,7 +252,7 @@ Tie_engraver::stop_translation_timestep ()
   if (!wait && new_heads_to_tie.size ())
     heads_to_tie_.clear ();
 
-  // hmmm, how to do with copy() ?
+  // hmmm, how to do with copy () ?
   for (vsize i = 0; i < new_heads_to_tie.size (); i++)
     heads_to_tie_.push_back (new_heads_to_tie[i]);
   
index 6c7e2a024f091d0f5af9adae860c0a790b1cb80c..a6031402a6c9981448f8e2df5b5169d067c3c344 100644 (file)
@@ -58,7 +58,7 @@ Tie_formatting_problem::get_attachment (Real y, Drul_array<int> columns) const
   return attachments;
 }
 
-Tie_formatting_problem::Tie_formatting_problem()
+Tie_formatting_problem::Tie_formatting_problem ()
 {
   x_refpoint_ = 0;
 }
@@ -139,12 +139,12 @@ Tie_formatting_problem::set_column_chord_outline (vector<Item*> bounds,
          */
          boxes.push_back (Box (x, y));
 
-         stem_extents_[key].unite (Box (x,y));
+         stem_extents_[key].unite (Box (x, y));
 
          if (dir == LEFT)
            {
              Box flag_box = Stem::get_translated_flag (stem).extent_box ();
-             flag_box.translate( Offset (x[RIGHT], X_AXIS));
+             flag_box.translate ( Offset (x[RIGHT], X_AXIS));
              boxes.push_back (flag_box);
            }
        }
@@ -166,9 +166,9 @@ Tie_formatting_problem::set_column_chord_outline (vector<Item*> bounds,
        }
 
       extract_grob_set (stem, "note-heads", heads);
-      for (vsize i = 0; i < heads.size(); i ++)
+      for (vsize i = 0; i < heads.size (); i ++)
        {
-         if (find (bounds.begin(), bounds.end (), dynamic_cast<Item*> (heads[i])) ==  bounds.end ())
+         if (find (bounds.begin (), bounds.end (), dynamic_cast<Item*> (heads[i])) ==  bounds.end ())
            {
              /*
                other untied notes in the same chord.
@@ -196,7 +196,7 @@ Tie_formatting_problem::set_column_chord_outline (vector<Item*> bounds,
     {
       Interval x;
       Interval y;
-      if (head_boxes.size())
+      if (head_boxes.size ())
        {
          Box b = boundary (head_boxes, updowndir, 0);
          x = b[X_AXIS];
@@ -612,7 +612,7 @@ Tie_formatting_problem::score_aptitude (Tie_configuration *conf,
   while (flip (&d) != LEFT);
 
   if (ties_conf
-      && ties_conf->size() == 1)
+      && ties_conf->size () == 1)
     {
       Direction d = LEFT;
       Drul_array<Grob*> stems (0, 0);
@@ -1118,7 +1118,7 @@ Tie_formatting_problem::generate_collision_variations (Ties_configuration const
                                                       );
                  vars.push_back (var);
                }
-             if (i == ties.size() && !specifications_[i].has_manual_position_
+             if (i == ties.size () && !specifications_[i].has_manual_position_
                  && ties[i].dir_ == UP)
                {
                  Tie_configuration_variation var;
@@ -1190,7 +1190,7 @@ Tie_formatting_problem::set_debug_scoring (Ties_configuration const &base)
   if (to_boolean (x_refpoint_->layout ()
                  ->lookup_variable (ly_symbol2scm ("debug-tie-scoring"))))
     {
-      for (vsize i = 0; i < base.size(); i++)
+      for (vsize i = 0; i < base.size (); i++)
        {
          string card = base.complete_tie_card (i);
          specifications_[i].tie_grob_->set_property ("quant-score",
index 0519fcb930488afe9d61b96a044890f629524df9..2fe3df0733b045eb0e17df0abd0818832d9a145b 100644 (file)
@@ -101,7 +101,7 @@ Tie_performer::stop_translation_timestep ()
       heads_to_tie_ = now_heads_;
     }
 
-  for (vsize i = now_tied_heads_.size(); i--;)
+  for (vsize i = now_tied_heads_.size (); i--;)
     heads_to_tie_.push_back (now_tied_heads_[i]);
 
   event_ = 0;
index 1d4e7fca9ac296659d01bfdfd2deaeae3e9f7df6..87548a7056c538bb32867091085c5a2a7cf675cd 100644 (file)
@@ -139,7 +139,7 @@ Tie::get_default_dir (Grob *me)
 }
 
 
-MAKE_SCHEME_CALLBACK(Tie, calc_direction, 1);
+MAKE_SCHEME_CALLBACK (Tie, calc_direction, 1);
 SCM
 Tie::calc_direction (SCM smob)
 {
@@ -205,7 +205,7 @@ Tie::get_control_points (Grob *me,
 }
 
 
-MAKE_SCHEME_CALLBACK(Tie, calc_control_points, 1);
+MAKE_SCHEME_CALLBACK (Tie, calc_control_points, 1);
 SCM
 Tie::calc_control_points (SCM smob)
 {
index f5ca62dbfbc67c215b485092bf5f1822613930e5..b681a693421ee7f4ac041afc89be6685c1899e4e 100644 (file)
@@ -24,7 +24,7 @@ class Time_scaled_music_iterator : public Music_wrapper_iterator
 public:
   DECLARE_SCHEME_CALLBACK (constructor, ());
   /* construction */
-  DECLARE_CLASSNAME(Time_scaled_music_iterator);
+  DECLARE_CLASSNAME (Time_scaled_music_iterator);
   Time_scaled_music_iterator ();
 protected:
   virtual void process (Moment m);
@@ -96,7 +96,7 @@ Time_scaled_music_iterator::process (Moment m)
       m.main_part_ == next_split_mom_)
     {
       descend_to_bottom_context ();
-      if (tuplet_handler_.get_outlet())
+      if (tuplet_handler_.get_outlet ())
        create_event (STOP)->send_to_context (tuplet_handler_.get_outlet ());
 
       if (m.main_part_ < music_get_length ().main_part_)
@@ -111,7 +111,7 @@ Time_scaled_music_iterator::process (Moment m)
          tuplet_handler_.set_context (0);
        }
     }
-  Music_wrapper_iterator::process(m);
+  Music_wrapper_iterator::process (m);
   if (child_iter_ && child_iter_->ok ())
     descend_to_child (child_iter_->get_outlet ());
   
index 52274adc429f8b6952ca0027389829c9b9908f30..a6b4342de91ea43aaddfd07477f7b7c4f85bff1e 100644 (file)
@@ -278,7 +278,7 @@ add_acknowledger (Engraver_void_function_engraver_grob_info ptr,
   interface_name += "-interface";
 
   /*
-    this is only called during program init, so safe to use scm_gc_protect_object()
+    this is only called during program init, so safe to use scm_gc_protect_object ()
   */
   inf.symbol_ = scm_gc_protect_object (ly_symbol2scm (interface_name.c_str ()));
   ack_array->push_back (inf);
@@ -326,7 +326,7 @@ internal_event_assignment (Stream_event **old_ev, Stream_event *new_ev, const ch
       assert (0 == ev_class.find (prefix));
 
       /* "listen_foo_bar" -> "foo-bar" */
-      ev_class.erase (0, strlen(prefix));
+      ev_class.erase (0, strlen (prefix));
       replace_all (ev_class, '_', '-');
 
       new_ev->origin ()->warning (_f ("Two simultaneous %s events, junking this one", ev_class.c_str ()));
index 574d1464af7492278189db36e8a7be379a3050e8..869cdbaed19898d49517d5656c3c78dbf3f99073 100644 (file)
@@ -25,7 +25,7 @@ make_index_to_charcode_map (FT_Face face)
   FT_UInt gindex;
 
   FT_CharMap current_cmap = face->charmap;
-  FT_Select_Charmap(face, FT_ENCODING_UNICODE);
+  FT_Select_Charmap (face, FT_ENCODING_UNICODE);
 
   int j = 0;
   for (charcode = FT_Get_First_Char (face, &gindex); gindex != 0;
@@ -168,7 +168,7 @@ print_trailer (void *out,
                                              GLYPH_NAME_LEN);
          if (error)
            {
-             programming_error ("FT_Get_Glyph_Name(): error.");
+             programming_error ("FT_Get_Glyph_Name (): error.");
              glyph_name[0] = 0;
            }
        }
index 53253f71ddc120b98c9fd5a93acadba1912bd5b3..489d3bc76e58eff0cf199c4b78b31fd398195e98 100644 (file)
@@ -92,7 +92,7 @@ Tuplet_bracket::parallel_beam (Grob *me_grob, vector<Grob*> const &cols,
                           Note_column::get_stem (cols.back ()));
 
   if (dynamic_cast<Item*> (stems[RIGHT])->get_column ()
-      != me->get_bound (RIGHT)->get_column())
+      != me->get_bound (RIGHT)->get_column ())
     return 0;
 
   Drul_array<Grob*> beams;
@@ -120,7 +120,7 @@ Tuplet_bracket::parallel_beam (Grob *me_grob, vector<Grob*> const &cols,
 }
 
 
-MAKE_SCHEME_CALLBACK(Tuplet_bracket,calc_connect_to_neighbors,1);
+MAKE_SCHEME_CALLBACK (Tuplet_bracket, calc_connect_to_neighbors,1);
 SCM
 Tuplet_bracket::calc_connect_to_neighbors (SCM smob)
 {
@@ -176,7 +176,7 @@ Tuplet_bracket::get_common_x (Spanner *me)
   return commonx;
 }
   
-MAKE_SCHEME_CALLBACK(Tuplet_bracket,calc_control_points,1)
+MAKE_SCHEME_CALLBACK (Tuplet_bracket, calc_control_points,1)
 SCM
 Tuplet_bracket::calc_control_points (SCM smob)
 {
index c25d2a9a4e6f547ac42cfc76a334aa5011730fb8..17eed00f35c11bde96d043c9b1603cc5161e912f 100644 (file)
@@ -105,7 +105,7 @@ Tuplet_engraver::process_music ()
   /*
     This may happen if the end of a tuplet is part of a quoted voice.
    */
-  Moment now = now_mom();
+  Moment now = now_mom ();
   for (vsize i = tuplets_.size (); i --; )
     {
       if (tuplets_[i].stop_moment_ == now)
index b29ab39aaa087bbc73b3044114b92abe3cfa6c85..aa0c343c589977f251100dd641ff7bb8df380b43 100644 (file)
 
 struct Tuplet_number
 {
-  DECLARE_SCHEME_CALLBACK(print, (SCM));
-  DECLARE_GROB_INTERFACE();
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
+  DECLARE_GROB_INTERFACE ();
 };
   
 
-MAKE_SCHEME_CALLBACK(Tuplet_number, print, 1);
+MAKE_SCHEME_CALLBACK (Tuplet_number, print, 1);
 SCM 
 Tuplet_number::print (SCM smob)
 {
index c87902f9ba1566d3406ab9dc3d7a8049ee51973a..e520f7d7c497367cdf5d8a71d14591473b4ffd76 100644 (file)
@@ -21,7 +21,7 @@ protected:
   DECLARE_ACKNOWLEDGER (grob);
 };
 
-Tweak_engraver::Tweak_engraver()
+Tweak_engraver::Tweak_engraver ()
 {
 }
 
index 5618465120c02a313bbff876e9ff15e9f5c23269..5007d553ca8b91bcf68ce50d09bfb1ea9f4e0de3 100644 (file)
@@ -433,10 +433,10 @@ Vaticana_ligature_engraver::add_mora_column (Paper_column *column)
 void
 Vaticana_ligature_engraver::check_for_ambiguous_dot_pitch (Grob_info primitive)
 {
-  // TODO: Fix performance, which is currently O(n^2) (since this
-  // method is called O(n) times and takes O(n) steps in the for
-  // loop), but could be O(n) (by replacing the for loop by e.g. a
-  // bitmask based O(1) test); where n=<number of primitives in the
+  // TODO: Fix performance, which is currently O (n^2) (since this
+  // method is called O (n) times and takes O (n) steps in the for
+  // loop), but could be O (n) (by replacing the for loop by e.g. a
+  // bitmask based O (1) test); where n=<number of primitives in the
   // ligature> (which is typically small (n<10), though).
   Stream_event *new_cause = primitive.event_cause ();
   int new_pitch = unsmob_pitch (new_cause->get_property ("pitch"))->steps ();