]> git.donarmstrong.com Git - lilypond.git/commitdiff
Update.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 16 Mar 2005 19:19:15 +0000 (19:19 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 16 Mar 2005 19:19:15 +0000 (19:19 +0000)
246 files changed:
ChangeLog
buildscripts/fixcc.py
flower/getopt-long.cc
flower/include/array.hh
flower/include/array.icc
flower/include/axes.hh
flower/include/compare.hh
flower/include/cons.hh
flower/include/direction.hh
flower/include/drul-array.hh
flower/include/flower-proto.hh
flower/include/getopt-long.hh
flower/include/interval.hh
flower/include/interval.tcc
flower/include/killing-cons.tcc
flower/include/libc-extension.hh
flower/include/offset.hh
flower/include/parray.hh
flower/include/parse-afm.hh
flower/include/polynomial.hh
flower/include/pqueue.hh
flower/include/rational.hh
flower/include/real.hh
flower/include/string-data.hh
flower/include/string-data.icc
flower/include/string-handle.hh
flower/include/string-handle.icc
flower/include/string.hh
flower/include/string.icc
flower/include/virtual-methods.hh
flower/libc-extension.cc
flower/offset.cc
flower/parse-afm.cc
flower/polynomial.cc
flower/rational.cc
flower/string-convert.cc
flower/string.cc
lily/accidental-engraver.cc
lily/accidental-placement.cc
lily/accidental.cc
lily/afm.cc
lily/align-interface.cc
lily/ambitus-engraver.cc
lily/ambitus.cc
lily/arpeggio.cc
lily/auto-beam-engraver.cc
lily/auto-change-iterator.cc
lily/axis-group-interface.cc
lily/bar-line.cc
lily/bar-number-engraver.cc
lily/beam-concave.cc
lily/beam-engraver.cc
lily/beam-performer.cc
lily/beam-quanting.cc
lily/beam.cc
lily/beaming-info.cc
lily/bezier-bow.cc
lily/bezier.cc
lily/box.cc
lily/break-algorithm.cc
lily/break-align-engraver.cc
lily/break-substitution.cc
lily/clef-engraver.cc
lily/cluster-engraver.cc
lily/collision-engraver.cc
lily/completion-note-heads-engraver.cc
lily/context-handle.cc
lily/context-scheme.cc
lily/context.cc
lily/custos-engraver.cc
lily/dimension-cache.cc
lily/dot-column-engraver.cc
lily/dot-column.cc
lily/dots.cc
lily/drum-note-engraver.cc
lily/duration.cc
lily/dynamic-engraver.cc
lily/dynamic-text-spanner.cc
lily/engraver-group-engraver.cc
lily/engraver.cc
lily/fingering-engraver.cc
lily/font-size-engraver.cc
lily/general-scheme.cc
lily/global-context.cc
lily/gourlay-breaking.cc
lily/gregorian-ligature-engraver.cc
lily/grob-interface.cc
lily/grob-pitch-tuple.cc
lily/grob-pq-engraver.cc
lily/grob.cc
lily/hairpin.cc
lily/hara-kiri-group-spanner.cc
lily/hyphen-engraver.cc
lily/include/afm.hh
lily/include/audio-item.hh
lily/include/axis-group-interface.hh
lily/include/bezier.hh
lily/include/box.hh
lily/include/break-align-interface.hh
lily/include/context.hh
lily/include/custos.hh
lily/include/engraver-group-engraver.hh
lily/include/engraver.hh
lily/include/event.hh
lily/include/grob.hh
lily/include/group-interface.hh
lily/include/interpretation-context-handle.hh
lily/include/lily-guile-macros.hh
lily/include/lily-proto.hh
lily/include/midi-stream.hh
lily/include/midi-walker.hh
lily/include/moment.hh
lily/include/music-constructor.hh
lily/include/note-collision.hh
lily/include/object-key-dumper.hh
lily/include/object-key-undumper.hh
lily/include/object-key.hh
lily/include/open-type-font.hh
lily/include/performer-group-performer.hh
lily/include/pitch.hh
lily/include/property-iterator.hh
lily/include/protected-scm.hh
lily/include/rest-collision.hh
lily/include/rhythmic-head.hh
lily/include/scm-hash.hh
lily/include/script-column.hh
lily/include/sequential-iterator.hh
lily/include/source-file.hh
lily/include/staff-symbol.hh
lily/include/tfm-reader.hh
lily/include/translator-group.hh
lily/include/translator.hh
lily/include/tweak-registration.hh
lily/include/type-swallow-translator.hh
lily/input.cc
lily/instrument-name-engraver.cc
lily/item.cc
lily/key-engraver.cc
lily/key-signature-interface.cc
lily/least-squares.cc
lily/ledger-line-spanner.cc
lily/lily-guile.cc
lily/lilypond-key.cc
lily/line-spanner.cc
lily/lookup.cc
lily/ly-module.cc
lily/lyric-combine-music-iterator.cc
lily/lyric-hyphen.cc
lily/lyric-performer.cc
lily/main.cc
lily/mark-engraver.cc
lily/melisma-translator.cc
lily/mensural-ligature.cc
lily/metronome-engraver.cc
lily/midi-item.cc
lily/midi-stream.cc
lily/midi-walker.cc
lily/misc.cc
lily/moment-scheme.cc
lily/moment.cc
lily/multi-measure-rest-engraver.cc
lily/multi-measure-rest.cc
lily/music-constructor.cc
lily/music-scheme.cc
lily/music-wrapper-iterator.cc
lily/music.cc
lily/new-fingering-engraver.cc
lily/note-collision.cc
lily/note-column.cc
lily/note-head-line-engraver.cc
lily/note-spacing.cc
lily/object-key-undumper.cc
lily/object-key.cc
lily/open-type-font.cc
lily/pango-font.cc
lily/paper-outputter-scheme.cc
lily/paper-system.cc
lily/part-combine-iterator.cc
lily/percent-repeat-engraver.cc
lily/performer-group-performer.cc
lily/phrasing-slur-engraver.cc
lily/piano-pedal-engraver.cc
lily/piano-pedal-performer.cc
lily/pitch-scheme.cc
lily/pitch.cc
lily/protected-scm.cc
lily/repeat-acknowledge-engraver.cc
lily/repeated-music.cc
lily/rest-collision.cc
lily/rest-engraver.cc
lily/rhythmic-column-engraver.cc
lily/rod.cc
lily/scm-hash.cc
lily/scm-option.cc
lily/score-engraver.cc
lily/score.cc
lily/script-column-engraver.cc
lily/script-column.cc
lily/script-engraver.cc
lily/separating-group-spanner.cc
lily/separating-line-group-engraver.cc
lily/separation-item.cc
lily/sequential-iterator.cc
lily/side-position-interface.cc
lily/simple-spacer.cc
lily/simultaneous-music-iterator.cc
lily/skyline.cc
lily/slash-repeat-engraver.cc
lily/slur-configuration.cc
lily/slur-engraver.cc
lily/slur-performer.cc
lily/slur-scoring.cc
lily/spaceable-grob.cc
lily/spacing-engraver.cc
lily/spacing-spanner.cc
lily/span-arpeggio-engraver.cc
lily/span-bar-engraver.cc
lily/span-dynamic-performer.cc
lily/spanner.cc
lily/spring-smob.cc
lily/staff-collecting-engraver.cc
lily/staff-spacing.cc
lily/staff-symbol-engraver.cc
lily/staff-symbol.cc
lily/stanza-number-align-engraver.cc
lily/stanza-number-engraver.cc
lily/stem.cc
lily/stencil-scheme.cc
lily/stencil.cc
lily/string-number-engraver.cc
lily/system-start-delimiter-engraver.cc
lily/tempo-performer.cc
lily/text-item.cc
lily/text-spanner.cc
lily/tfm-reader.cc
lily/tfm.cc
lily/tie-engraver.cc
lily/tie-performer.cc
lily/tie.cc
lily/time-signature-performer.cc
lily/timing-translator.cc
lily/translator.cc
lily/tuplet-bracket.cc
lily/vaticana-ligature.cc
lily/volta-bracket.cc
lily/volta-engraver.cc

index 5824521ffa7a08e3b6c662cb0dae1f8ee2c995c1..5d5d245e337f0e15fa9d627e47ae67582cb41a0c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-03-16  Jan Nieuwenhuizen  <janneke@gnu.org>
 
+       * Nitpick run.
+
+       * buildscripts/fixcc.py: Update.
+
        Builddir run fixes.
 
        * HACKING (datadir): Add VERSION.
index 4989850d820169fbe74a42c5a2b949841d19552f..015f5145df6f2bfa9dc094a24a9ef8fb41fa5be7 100644 (file)
@@ -5,9 +5,11 @@
 # TODO
 #  * maintainable rules: regexp's using whitespace (?x) and match names
 #    <identifier>)
-#  * trailing * vs function definition
+#  * trailing `*' vs. function definition
+#  * do not break/change indentation of fixcc-clean files
 #  * check lexer, parser
 #  * rewrite in elisp, add to cc-mode
+#  * using regexes is broken by design
 #  * ?
 #  * profit
 
@@ -47,7 +49,7 @@ rules = {
        #('\)[ \t]*([^\w])', ')\\1'),
        # delete space around operator
        # ('([\w\(\)\]])([ \t]*)(::|\.)([ \t]*)([\w\(\)])', '\\1\\3\\5'),
-       ('([\w\(\)\]])([ \t]*)(\.)([ \t]*)([\w\(\)])', '\\1\\3\\5'),
+       ('([\w\(\)\]])([ \t]*)(\.|->)([ \t]*)([\w\(\)])', '\\1\\3\\5'),
        # delete space after operator
        ('(::)([ \t]*)([\w\(\)])', '\\1\\3'),
        # delete superflous space around operator
@@ -57,24 +59,27 @@ rules = {
        # space around operator2
        ('([\w\)\]]) *(&&|\|\||<=|>=|!=|\|=|==|\+=|-=|\*=|/=|\?|<|>|=|/|:|&|\||\*) ([^\w\s])', '\\1 \\2 \\3'),
        # space around operator3
-       ('([^\w\s]) (&&|\|\||<=|>=|!=|\|=|==|\+=|-=|\*=|/=|\?|<|>|=|/|:|&|\||\*) *([\w\(])', '\\1 \\2 \\3'),
+       ('([^\w\s]) (&&|\|\||<=|>=|!=|\|=|==|\+=|-=|\*=|/=|\?|<|[^-]>|=|/|:|&|\||\*) *([\w\(])', '\\1 \\2 \\3'),
+       # space around operator4
+       ('([\w\(\)\]]) (\*|/|\+|-) *([-:])', '\\1 \\2 \\3'),
        # space around +/-; exponent
        ('([\w\)\]])(\+|-)([_A-Za-z\(])', '\\1 \\2 \\3'),
        ('([_\dA-Za-df-z\)\]])(\+|-)([\w\(])', '\\1 \\2 \\3'),
        # trailing operator
        (' (::|&&|\|\||<=|>=|!=|\|=|==|\+=|-=|\*=|/=|\?|<|>|\+|-|=|/|:|&XXX|\||\*XXX)[ \t]*\n([ \t]*)',  '\n\\2\\1 '),
-       #breaks function definitions
-       #to#(' (::|&&|\|\||<=|>=|!=|\|=|==|\+=|-=|\*=|/=|<|>|\+|-|=|/|&|\||\*)[ \t]*\n([ \t]*)',         '\n\\2\\1 '),
        # pointer
-       ('(bool|char|const|delete|int|stream|unsigned|void|(struct \w+)|([A-Z]\w*)|[,]|&&|\|\|)[ \t]*(\*|&)[ \t]*', '\\1 \\4'),
+       ##('(bool|char|const|delete|int|stream|unsigned|void|size_t|struct \w+|[A-Z]\w*|,|;|&&|<|[^-]>|\|\||-|\+)[ \t]*(\*|&)[ \t]*', '\\1 \\2'),
+       ('(bool|char|const|delete|int|stream|unsigned|void|size_t|struct \w+|[A-Z]\w*|,|;|:|=|\?\)|&&|<|[^-]>|\|\||-|\+)[ \t]*(\*|&)[ \t]*', '\\1 \\2'),
        #to#('(bool|char|const|delete|int|stream|unsigned|void|([A-Z]\w*)|[,])[ \n\t]*(\*|&)[ \t]*', '\\1 \\3'),
        # pointer with template
-       ('(( *((bool|char|delete|int|stream|unsigned|void|(class[ \t]+\w*)|([A-Z]\w*)|[,])[ \*&],*)+)>) *(\*|&) *', '\\1 \\7'),
+       ('(( *((bool|char|const|delete|int|stream|unsigned|void|size_t|class[ \t]+\w*|[A-Z]\w*|\w+::\w+|[,])[ \*&],*)+)>) *(\*|&) *', '\\1 \\5'),
        #to#('(( *((bool|char|delete|int|stream|unsigned|void|(class[ \t]+\w*)|([A-Z]\w*)|[,])[ \*&],*)+)>)[ \t\n]*(\*|&) *', '\\1 \\7'),
        # unary pointer, minus, not
        ('(return|=) (\*|&|-|!) ([\w\(])', '\\1 \\2\\3'),
        # space after `operator'
        ('(\Woperator) *([^\w\s])', '\\1 \\2'),
+       # dangling brace close
+       ('\n[ \t]*(\n[ \t]*})', '\\1'),
        # dangling newline
        ('\n[ \t]*\n[ \t]*\n', '\n\n'),
        # dangling parenthesis open
@@ -112,12 +117,15 @@ rules = {
        ('(typedef struct\s+([\w]*\s){([^}]|{[^}]*})*})\s*\n\s*(\w[\w\d]*;)', '\\1 \\4'),
        # delete spaces around template brackets
        #('(dynamic_cast|template|([A-Z]\w*))[ \t]*<[ \t]*(( *(bool|char|int|unsigned|void|(class[ \t]+\w*)|([A-Z]\w*)),?)+)[ \t]?(| [\*&])[ \t]*>', '\\1<\\3\\8>'),
-       ('(dynamic_cast|template|([A-Z]\w*))[ \t]*<[ \t]*(( *(bool|char|int|unsigned|void|(class[ \t]+\w*)|([A-Z]\w*))[,\*&]*)+)[ \t]?(| [\*&])[ \t]*>', '\\1<\\3\\8>'),
+       ('(dynamic_cast|template|typedef|\w+::\w+|[A-Z]\w*)[ \t]*<[ \t]*(( *(bool|char|const|int|unsigned|void|size_t|class[ \t]+\w*|[A-Z]\w*)( *[\*&]?,|[\*&])*)+)[ \t]?(| [\*&])[ \t]*>', '\\1<\\2\\6>'),
+       ('(\w+::\w+|[A-Z]\w*) < ((\w+::\w+|[A-Z]\w*)<[A-Z]\w*>) >', '\\1<\\2 >'),
        ('((if|while)\s+\(([^\)]|\([^\)]*\))*\))\s*;', '\\1\n;'),
        ('(for\s+\(([^;]*;[^;]*;([^\)]|\([^\)]*\))*)\))\s*;', '\\1\n;'),
-       # do .. while
-       ('(\Wdo\s*{([^}]|{[^}]*})*}\s*while\s*)(\(([^\)]|\([^\)]*\))*\))\s*;', '\\1\\3;\n'),
+       # do {..} while
+       ('(}\s*while\s*)(\(([^\)]|\([^\)]*\))*\))\s*;', '\\1\\2;'),
+
        ## Fix code that gets broken by rules above.
+       ##('->\s+\*', '->*'),
        # delete space before #define x()
        ('#[ \t]*define (\w*)[ \t]*\(', '#define \\1('),
        # add space in #define x ()
@@ -490,55 +498,74 @@ def main ():
                nitpick_file (outdir, i)
 
 
+## TODO: make this compilable and check with g++
 TEST = '''
+#include <libio.h>
+#include <map>
+class
+ostream ;
+
+class Foo {
+public: static char* foo ();
+std::map<char*,int>* bar (char, char) { return 0; }
+};
+typedef struct
+{
+  Foo **bar;
+} String;
+
 ostream &
 operator << (ostream & os, String d);
 
 typedef struct _t_ligature
 {
   char *succ, *lig;
-  struct _t_ligature *next;
   struct _t_ligature * next;
 }  AFM_Ligature;
-
+  
+typedef std::map < AFM_Ligature const *, int > Bar;
+
+/*      ||
+ *      vv
+ * !OK  OK
+ */
+/*     ||
+       vv
+  !OK  OK
+ */
 char *
-Bar:: foe ()
+Foo:: foo ()
 {
-  char* a= ++ 3  ;
-  a [x] = foe (*i, &bar) *
+int
+i
+;
+  char* a= &++ i ;
+  a [*++ a] = (char*) foe (*i, &bar) *
   2;
   int operator double ();
-  int x =foe(1 ,3);
-  Interval_t<T> &operator*= (T r);
+  std::map<char*,int> y =*bar(-*a ,*b);
+  Interval_t<T> & operator*= (T r);
+  Foo<T>*c;
   int compare (Pqueue_ent < K, T > const& e1, Pqueue_ent < K,T> *e2);
   delete *p;
   if (abs (f)*2 > abs (d) *FUDGE)
     ;
   while (0);
-  for (; i < x (); foo > bar);
-  for (; i < x > y;
-  foo > bar)
+  for (; i<x foo(); foo>bar);
+  for (; *p && > y;
+       foo > bar)
 ;
   do {
-  ..
+  ;;;
   }
   while (foe);
 
   squiggle. extent;
-
   1 && * unsmob_moment (lf);
-  
-  line_spanner_ = make_spanner ("DynamicLineSpanner", rq ? rq->self_scm
+  line_spanner_ = make_spanner ("DynamicLineSpanner", rq ? rq->*self_scm
 (): SCM_EOL);
-
   case foo: k;
 
-  typedef struct
-  {
-    ...
-  } cookie_io_functions_t;
-
-
   if (0) {a=b;} else {
    c=d;
   }
@@ -548,7 +575,19 @@ Bar:: foe ()
     ...
   };
 
+  int compare (Array < Pitch> *, Array < Pitch> *);
+  original_ = (Grob *) & s;
+  Drul_array< Link_array<Grob> > o;
 }
+
+  header_.char_info_pos = (6 + header_length) * 4;
+  return ly_bool2scm (*ma < * mb);
+
+  1 *::sign(2);
+
+  (shift) *-d;
+
+  a = 0 ? *x : *y;
 '''
 
 def test ():
index e3850b153c47e47d63ca39807b1a055410f83bc3..d8d750bf0e8bd83f865fc70de72a1f40f86e842c 100644 (file)
@@ -77,7 +77,6 @@ Getopt_long::parselong ()
        }
       if (!optional_argument_str0_)
        report (E_ARGEXPECT);
-
     }
   else
     {
@@ -211,7 +210,7 @@ Getopt_long::parseshort ()
 }
 
 const Long_option_init *
-Getopt_long::operator() ()
+Getopt_long::operator () ()
 {
   if (!ok ())
     return 0;
@@ -258,10 +257,9 @@ Getopt_long::Getopt_long (int c, char **v, Long_option_init *lo)
   argument_index_ = 0;
 
   //    reached end of option table?
-  table_len_ =0;
-  for (int i = 0; option_a_[i].longname_str0_ ||option_a_[i].shortname_char_; i++)
+  table_len_ = 0;
+  for (int i = 0; option_a_[i].longname_str0_ || option_a_[i].shortname_char_; i++)
     table_len_++;
-
 }
 
 bool
@@ -298,7 +296,7 @@ Getopt_long::get_next_arg ()
   if (a)
     {
       array_index_++;
-      argument_index_= 0;
+      argument_index_ = 0;
     }
   return a;
 }
index 10b91ed97bf1e9501eff68f77a67e90f8030f147..938b1c0ce8554852390bc01dc61f8235e20cb0f6 100644 (file)
@@ -74,12 +74,12 @@ public:
   Array (T *tp, int n)
   {
     array_ = new T[n];
-    max_ =size_ = n;
+    max_ = size_ = n;
     arrcpy (array_, tp, n);
   }
 
   Array ()
-  { array_ = 0; max_ =0; size_ =0; }
+  { array_ = 0; max_ = 0; size_ = 0; }
 
   // ugh, get around gcc 2.8.1 ice; see bezier.cc
   Array (int i)
@@ -112,7 +112,7 @@ public:
   {
     return array_;
   }
-  void operator= (Array const &src)
+  void operator = (Array const &src)
   {
     set_size (src.size_);
     arrcpy (array_, src.array_, size_);
@@ -132,19 +132,19 @@ public:
   T *remove_array ();
 
   /// access element
-  T &operator[] (int i)
+  T &operator [] (int i)
   {
     return elem_ref (i);
   }
   /// access element
-  T const &operator[] (int i) const
+  T const &operator [] (int i) const
   {
     return elem_ref (i);
   }
   /// access element
   T &elem_ref (int i) const
   {
-    assert (i >=0 && i < size_);
+    assert (i >= 0 && i < size_);
     return ((T *)array_)[i];
   }
   /// access element
@@ -157,7 +157,7 @@ public:
   void push (T x)
   {
     if (size_ == max_)
-      remax (2*max_ + 1);
+      remax (2 * max_ + 1);
 
     // T::operator= (T &) is called here. Safe to use with automatic
     // vars
@@ -201,7 +201,7 @@ public:
   void swap (int i, int j)
   {
     T t ((*this)[i]);
-    (*this)[i]= (*this)[j];
+    (*this)[i] = (*this)[j];
     (*this)[j] = t;
   }
   bool is_empty () const
@@ -224,7 +224,7 @@ public:
   }
   void del (int i)
   {
-    assert (i >=0&& i < size_);
+    assert (i >= 0&& i < size_);
     arrcpy (array_ + i, array_ + i + 1, size_ - i - 1);
     size_--;
   }
index 088a1372528bd85dd7e6e38f291b3d77135700c2..118b1f43d38aa0400280c1b277779f3d2b7f925c 100644 (file)
@@ -40,7 +40,7 @@ arrcpy (T *dest, T const *src, int count)
 template<class T> INLINE void
 Array<T>::insert (T k, int j)
 {
-  assert (j >=0 && j<= size_);
+  assert (j >= 0 && j <= size_);
   set_size (size_ + 1);
   for (int i = size_ - 1; i > j; i--)
     array_[i] = array_[i - 1];
@@ -59,7 +59,7 @@ Array<T>::sort (int (*compare) (T const &, T const &), int lower, int upper)
     return;
   swap (lower, (lower + upper) / 2);
   int last = lower;
-  for (int i= lower +1; i <= upper; i++)
+  for (int i = lower +1; i <= upper; i++)
     if (compare (array_[i], array_[lower]) < 0)
       swap (++last, i);
   swap (lower, last);
@@ -71,7 +71,7 @@ template<class T> INLINE void
 Array<T>::reverse ()
 {
   int h = size_ / 2;
-  for (int i =0, j = size_ - 1; i < h; i++, j--)
+  for (int i = 0, j = size_ - 1; i < h; i++, j--)
     swap (i, j);
 }
 
@@ -79,7 +79,7 @@ template<class T> INLINE
 void
 Array<T>::OK () const
 {
-  assert (max_ >= size_ && size_ >=0);
+  assert (max_ >= size_ && size_ >= 0);
   if (max_) assert (array_);
 }
 
@@ -90,7 +90,7 @@ Array<T>::remove_array ()
   T *p = array_;
   size_ = 0;
   max_ = 0;
-  array_ =0;
+  array_ = 0;
   return p;
 }
 
@@ -98,9 +98,9 @@ template<class T> INLINE
 Array<T>
 Array<T>::slice (int lower, int upper) const
 {
-  assert (lower >= 0 && lower <=upper&& upper <= size_);
+  assert (lower >= 0 && lower <= upper && upper <= size_);
   Array<T> r;
-  int s =upper - lower;
+  int s = upper - lower;
   r.set_size (s);
   arrcpy (r.array_, array_ + lower, s);
   return r;
index 3a1a7fc9dc90ab46e8fd65f4b76dbd5e9e99ced7..bafd572cb67cd906a45f0ddb30dd4e376ce170a1 100644 (file)
@@ -13,8 +13,8 @@
 
 enum Axis
   {
-    X_AXIS =0,
-    Y_AXIS =1,
+    X_AXIS = 0,
+    Y_AXIS = 1,
     NO_AXES = 2,
   };
 
index a9fde513a5ccc1ef597c937471b82a95c1ea2249..37e01f46eea3078ac6af4d99328e6beffa35bdc8 100644 (file)
     prefix ONE_OPERATOR (type, function, <)                            \
     prefix ONE_OPERATOR (type, function, <=)                           \
     GPP_MINMAX (type, prefix)                                          \
-    prefix inline type max (type t1, type t2) { return (t1 > t2)? t1 : t2; } \
-  prefix inline type min (type t1, type t2) { return (t1 < t2)? t1 : t2; } \
+    prefix inline type max (type t1, type t2) { return (t1 > t2) ? t1 : t2; } \
+  prefix inline type min (type t1, type t2) { return (t1 < t2) ? t1 : t2; } \
                                                                        \
-  prefix bool operator< (type t1, type t2) /* stupid fix to allow ; */
+  prefix bool operator < (type t1, type t2) /* stupid fix to allow ; */
 
 #define INSTANTIATE_COMPARE(type, func) TEMPLATE_INSTANTIATE_COMPARE (type, func,)
 
index 3e6b64f1ab07b23d789294aeea633b3d0f8f1797..bf1916a90fc8fbd45cd7a834fe51ba4424bb9742 100644 (file)
@@ -20,9 +20,9 @@ public:
   Cons ()
   {
     car_ = 0;
-    next_ =0;
+    next_ = 0;
   }
-  Cons (T *t, Cons<T>*c)
+  Cons (T *t, Cons<T> *c)
   {
     car_ = t;
     next_ = c;
@@ -65,9 +65,8 @@ template<class T> int cons_list_size (Cons<T> *l)
   return i;
 }
 
-
 template<class T>
-Cons<T> * last_cons (Cons<T> * head)
+Cons<T> *last_cons (Cons<T> *head)
 {
   while (head && head->next_)
     {
@@ -89,7 +88,7 @@ template<class T>
 class Cons_list
 {
 public:
-  Cons<T> * head_;
+  Cons<T> *head_;
   Cons<T> ** nil_pointer_address_;
   Cons_list ()
   {
@@ -97,7 +96,7 @@ public:
   }
   void init ()
   {
-    head_ =0;
+    head_ = 0;
     nil_pointer_address_ = &head_;
   }
   void append (T *c)
@@ -143,7 +142,7 @@ public:
   void junk ()
   {
     delete head_;
-    head_ =0;
+    head_ = 0;
   }
   ~Cons_list ()
   {
@@ -156,10 +155,10 @@ public:
 };
 
 template<class T>
-void copy_killing_cons_list (Cons_list<T>&, Cons<T> *src);
+void copy_killing_cons_list (Cons_list<T> &, Cons<T> *src);
 template<class T>
 void
-clone_killing_cons_list (Cons_list<T>&, Cons<T> *src);
+clone_killing_cons_list (Cons_list<T> &, Cons<T> *src);
 
 #endif /* CONS_HH */
 
index 6ff794be862c508d33b01a9aca21fded04b575b2..82161f675ab09e99625a49b2cc56ee3a584d4f33 100644 (file)
@@ -44,7 +44,7 @@ other_dir (Direction const d)
 }
 
 inline Direction
-operator- (Direction const d)
+operator - (Direction const d)
 {
   return other_dir (d);
 }
index f670a56286a7a4569b9eca4fd7df787599e9f486..bce7f0a5812f1955da6c12a73eec94be7cd98c66 100644 (file)
@@ -21,19 +21,19 @@ struct Drul_array
   T array_[2];
   T &elem_ref (Direction d)
   {
-    assert (d == 1 || d== -1);
+    assert (d == 1 || d == -1);
     return array_[ (d + 1) / 2];
   }
   T elem (Direction d) const
   {
-    assert (d == 1 || d== -1);
+    assert (d == 1 || d == -1);
     return array_[ (d + 1) / 2];
   }
-  T &operator[] (Direction d)
+  T &operator [] (Direction d)
   {
     return elem_ref (d);
   }
-  T operator[] (Direction d) const
+  T operator [] (Direction d) const
   {
     return elem (d);
   }
@@ -49,7 +49,7 @@ struct Drul_array
 
 template<class T>
 void
-scale_drul (Drul_array<T> * dr, T x)
+scale_drul (Drul_array<T> *dr, T x)
 {
   dr->elem_ref (LEFT) *= x;
   dr->elem_ref (RIGHT) *= x;
index 68fa9185275bf0aaaea0bb70b0f32f401e39ebfc..0b16ff11d303e56dd342cfa2c9cd7e143e763051 100644 (file)
@@ -12,9 +12,9 @@ char const *flower_version_str0 ();
 
 template<class T> struct Link_array;
 template<class T> struct Array;
-template < class T, class K> struct Assoc;
-template < class K, class V> struct Hash_table;
-template < class K, class V> struct Hash_table_iter;
+template<class T, class K> struct Assoc;
+template<class K, class V> struct Hash_table;
+template<class K, class V> struct Hash_table_iter;
 template<class T> struct Link_list;
 template<class T> struct Interval_t;
 template<class T> struct PQueue;
index 6d3598954d558715f77c820e1a40b9012ae2be6b..92f305dd84a921c1a3dcf621877d8545c4dbdc03 100644 (file)
@@ -102,7 +102,7 @@ public:
        @return pointer to next option found.
        0 if error occurred, or next argument is no option.
   */
-  const Long_option_init *operator() ();
+  const Long_option_init *operator () ();
 
   char const *current_arg ();
   char const *get_next_arg ();
index 3c319cf9d34fe67d289d3fd5e9fed4f9045e0112..fcaf39cdcec36939df1101f50550d27f3518314c 100644 (file)
@@ -73,19 +73,19 @@ struct Interval_t : public Drul_array<T>
   Interval_t (T m, T M) : Drul_array<T> (m, M)
   {
   }
-  Interval_t<T> &operator-= (T r)
+  Interval_t<T> &operator -= (T r)
   {
     *this += -r;
     return *this;
   }
 
-  Interval_t<T> &operator+= (T r)
+  Interval_t<T> &operator += (T r)
   {
     elem_ref (LEFT) += r;
-    elem_ref (RIGHT) +=r;
+    elem_ref (RIGHT) += r;
     return *this;
   }
-  Interval_t<T> &operator*= (T r)
+  Interval_t<T> &operator *= (T r)
   {
     if (!is_empty ())
       {
@@ -93,7 +93,6 @@ struct Interval_t : public Drul_array<T>
        elem_ref (RIGHT) *= r;
        if (r < T (0))
          swap ();
-
       }
     return *this;
   }
@@ -111,7 +110,7 @@ struct Interval_t : public Drul_array<T>
     T r = -elem (LEFT);
     T l = -elem (RIGHT);
     elem_ref (LEFT) = l;
-    elem_ref (RIGHT) =r;
+    elem_ref (RIGHT) = r;
   }
 
   void swap ()
@@ -126,14 +125,14 @@ struct Interval_t : public Drul_array<T>
    inclusion ordering. Crash if not  comparable.
 */
 template<class T>
-int Interval__compare (const Interval_t<T>&, Interval_t<T> const &);
+int Interval__compare (const Interval_t<T> &, Interval_t<T> const &);
 
 /**
    Inclusion ordering.  return -2 if not comparable
 */
 template<class T>
 int
-_Interval__compare (const Interval_t<T>&a, Interval_t<T> const &b);
+_Interval__compare (const Interval_t<T> &a, Interval_t<T> const &b);
 
 /*
   INLINE
@@ -141,7 +140,7 @@ _Interval__compare (const Interval_t<T>&a, Interval_t<T> const &b);
 
 #include "compare.hh"
 
-TEMPLATE_INSTANTIATE_COMPARE (Interval_t<T>&, Interval__compare, template<class T>);
+TEMPLATE_INSTANTIATE_COMPARE (Interval_t<T> &, Interval__compare, template<class T>);
 
 template<class T>
 inline Interval_t<T>
@@ -149,12 +148,11 @@ intersection (Interval_t<T> a, Interval_t<T> const &b)
 {
   a.intersect (b);
   return a;
-
 }
 
 template<class T>
 inline
-Interval_t<T> operator+ (T a, Interval_t<T> i)
+Interval_t<T> operator + (T a, Interval_t<T> i)
 {
   i += a;
   return i;
@@ -162,7 +160,7 @@ Interval_t<T> operator+ (T a, Interval_t<T> i)
 
 template<class T>
 inline
-Interval_t<T> operator- (Interval_t<T> i, T a)
+Interval_t<T> operator - (Interval_t<T> i, T a)
 {
   i += -a;
   return i;
@@ -170,7 +168,7 @@ Interval_t<T> operator- (Interval_t<T> i, T a)
 
 template<class T>
 inline
-Interval_t<T> operator- (T a, Interval_t<T> i)
+Interval_t<T> operator - (T a, Interval_t<T> i)
 {
   i.negate ();
   i += a;
@@ -179,14 +177,14 @@ Interval_t<T> operator- (T a, Interval_t<T> i)
 
 template<class T>
 inline
-Interval_t<T> operator+ (Interval_t<T> i, T a)
+Interval_t<T> operator + (Interval_t<T> i, T a)
 {
   return a + i;
 }
 
 template<class T>
 inline
-Interval_t<T> operator* (T a, Interval_t<T> i)
+Interval_t<T> operator * (T a, Interval_t<T> i)
 {
   i *= a;
   return i;
@@ -194,9 +192,9 @@ Interval_t<T> operator* (T a, Interval_t<T> i)
 
 template<class T>
 inline
-Interval_t<T> operator* (Interval_t<T> i, T a)
+Interval_t<T> operator * (Interval_t<T> i, T a)
 {
-  return a*i;
+  return a * i;
 }
 
 template<class T>
index b67f18165d312f85e0e7b90e01efcecdbf390cbd..4c2bedc808e53d121b5dfe4f4b486054f2421ef3 100644 (file)
@@ -17,7 +17,7 @@
 
 template<class T>
 int
-_Interval__compare (const Interval_t<T>&a, Interval_t<T> const &b)
+_Interval__compare (const Interval_t<T> &a, Interval_t<T> const &b)
 {
   if (a.elem (LEFT) == b.elem (LEFT) && a.elem (RIGHT) == b.elem (RIGHT))
     return 0;
@@ -136,6 +136,6 @@ Interval_t<T>::contains (T r)
 }
 
 #define INTERVAL__INSTANTIATE(T) struct Interval_t<T>;                 \
-  template int Interval__compare (const Interval_t<T>&, Interval_t<T> const &)
+  template int Interval__compare (const Interval_t<T> &, Interval_t<T> const &)
 
 #endif // INTERVAL_TCC
index 3ae9ce66bab0bf3793e435febc30d0c6ff8da68b..07a741ff1ceb3352a79972c97f13e0ce03eb71e9 100644 (file)
@@ -30,7 +30,7 @@ copy_killing_cons_list (Cons_list<T> &dest, Cons<T> *src)
 
 template<class T>
 void
-clone_killing_cons_list (Cons_list<T> & dest, Cons<T> *src)
+clone_killing_cons_list (Cons_list<T> &dest, Cons<T> *src)
 {
   for (; src; src = src->next_)
     {
index a6b5cf83928f4258c77c174e43768040ff7ae59b..62e5a5a2b8407ac462dd3cfe5c94c16536de9ad4 100644 (file)
@@ -62,8 +62,7 @@ extern "C" {
     ssize_t (*write) (void *, char const *, size_t);
     int (*seek) (void *, off64_t *, int);
     int (*close) (void *);
-  }
-    cookie_io_functions_t;
+  } cookie_io_functions_t;
 
 #else
 
@@ -73,8 +72,7 @@ extern "C" {
     int (*write) (void *, char const *, int);
     fpos_t (*seek) (void *, fpos_t, int);
     int (*close) (void *);
-  }
-    cookie_io_functions_t;
+  } cookie_io_functions_t;
 
 #endif /* ! HAVE_FUNOPEN */
 #endif /* ! HAVE_LIBIO_H */
index a782eb0507d5a85843d4923248c50690c6af25f4..8ea8c8581523329b7d4bb36ea751cd4d8f667bda 100644 (file)
@@ -24,24 +24,24 @@ class Offset
 public:
   Real coordinate_a_[NO_AXES];
 
-  Real &operator[] (Axis i)
+  Real &operator [] (Axis i)
   {
     return coordinate_a_[i];
   }
 
-  Real operator[] (Axis i) const
+  Real operator [] (Axis i) const
   {
     return coordinate_a_[i];
   }
 
-  Offset &operator+= (Offset o)
+  Offset &operator += (Offset o)
   {
     (*this)[X_AXIS] += o[X_AXIS];
     (*this)[Y_AXIS] += o[Y_AXIS];
     return *this;
   }
 
-  Offset operator- () const
+  Offset operator - () const
   {
     Offset o = *this;
 
@@ -50,7 +50,7 @@ public:
     return o;
   }
 
-  Offset &operator-= (Offset o)
+  Offset &operator -= (Offset o)
   {
     (*this)[X_AXIS] -= o[X_AXIS];
     (*this)[Y_AXIS] -= o[Y_AXIS];
@@ -66,7 +66,7 @@ public:
     return *this;
   }
 
-  Offset &operator*= (Real a)
+  Offset &operator *= (Real a)
   {
     (*this)[X_AXIS] *= a;
     (*this)[Y_AXIS] *= a;
@@ -76,13 +76,13 @@ public:
 
   Offset (Real ix, Real iy)
   {
-    coordinate_a_[X_AXIS] =ix;
-    coordinate_a_[Y_AXIS] =iy;
+    coordinate_a_[X_AXIS] = ix;
+    coordinate_a_[Y_AXIS] = iy;
   }
 
   Offset ()
   {
-    coordinate_a_[X_AXIS] = coordinate_a_[Y_AXIS]= 0.0;
+    coordinate_a_[X_AXIS] = coordinate_a_[Y_AXIS] = 0.0;
   }
 
   String to_string () const;
@@ -96,12 +96,11 @@ public:
   Real arg () const;
   Real length () const;
 
-  Offset operator*= (Offset z2)
+  Offset operator *= (Offset z2)
   {
     *this = complex_multiply (*this, z2);
     return *this;
   }
-
 };
 
 IMPLEMENT_ARITHMETIC_OPERATOR (Offset, +);
@@ -109,14 +108,14 @@ IMPLEMENT_ARITHMETIC_OPERATOR (Offset, -);
 IMPLEMENT_ARITHMETIC_OPERATOR (Offset, *);
 
 inline Offset
-operator* (Real o1, Offset o2)
+operator * (Real o1, Offset o2)
 {
   o2 *= o1;
   return o2;
 }
 
 inline Offset
-operator* (Offset o1, Real o2)
+operator * (Offset o1, Real o2)
 {
   o1 *= o2;
   return o1;
index 5467bf2573e94f3dc18560612e6762b222f146ff..6395cd493e025364e92aae85c701ea4e33db214a 100644 (file)
@@ -58,12 +58,12 @@ public:
   }
 
   /// access element
-  T *&operator[] (int i)
+  T *&operator [] (int i)
   {
     return (T *&) Array<void *>::elem_ref (i);
   }
   /// access element
-  T *const operator[] (int i) const
+  T *const operator [] (int i) const
   {
     return (T *const) Array<void *>::elem (i);
   }
@@ -91,23 +91,22 @@ public:
   void substitute (T *old, T *new_p)
   {
     int i;
-    while ((i = find_index (old)) >=0)
+    while ((i = find_index (old)) >= 0)
       if (new_p)
-       elem_ref (i) =new_p;
+       elem_ref (i) = new_p;
       else
        del (i);
   }
   void unordered_substitute (T *old, T *new_p)
   {
     int i;
-    while ((i = find_index (old)) >=0)
+    while ((i = find_index (old)) >= 0)
       if (new_p)
-       elem_ref (i) =new_p;
+       elem_ref (i) = new_p;
       else
        {
          unordered_del (i);
        }
-
   }
   void default_sort ()
   {
@@ -185,7 +184,7 @@ public:
   }
 };
 
-template < class T, class V>
+template<class T, class V>
 Link_array<T>
 typecasts (Link_array<V> const &a, T * /* dummy */)
 {
@@ -207,7 +206,7 @@ Link_array<T>::sort (int (*compare) (T *const &, T *const &), int lower, int upp
     return;
   swap (lower, (lower + upper) / 2);
   int last = lower;
-  for (int i= lower +1; i <= upper; i++)
+  for (int i = lower +1; i <= upper; i++)
     if (compare (elem (i), elem (lower)) < 0)
       swap (++last, i);
   swap (lower, last);
@@ -253,6 +252,7 @@ binsearch (Array<T> const &arr, T t, int (*compare) (T const &, T const &))
        lo = cmp;
     }
   while (hi - lo > 1);
+
   if (!compare (t, arr[lo]))
     return lo;
   else
@@ -267,7 +267,7 @@ binsearch_links (Link_array<T> const &arr, T *t,
 {
   int cmp;
   int result;
-  if (hi< 0)
+  if (hi < 0)
     hi = arr.size ();
 
   if (hi == 0)
@@ -286,6 +286,7 @@ binsearch_links (Link_array<T> const &arr, T *t,
        lo = cmp;
     }
   while (hi - lo > 1);
+
   if (!compare (t, arr[lo]))
     return lo;
   else
index 534dba344e71eee3b0dcc56ce45674ec1de5421e..7f6a7c21254d8fbcafa71b6a675eeadfc941a797 100644 (file)
@@ -157,8 +157,7 @@ typedef struct _t_ligature
 {
   char *succ, *lig;
   struct _t_ligature *next;
-}
-  AFM_Ligature;
+} AFM_Ligature;
 
 /* Character Metric Information. This structure is used only if ALL
  * character metric information is requested. If only the character
@@ -172,8 +171,8 @@ typedef struct _t_ligature
  */
 typedef struct
 {
-  int code,            /* key: C */
-    wx,                /* key: WX */
+  int code,                                            /* key: C */
+    wx,                                        /* key: WX */
     wy;                /* together wx and wy are associated with key: W */
   char *name;  /* key: N */
   AFM_BBox charBBox;   /* key: B */
@@ -271,7 +270,6 @@ typedef struct
 }
   AFM_Font_info;
 
-
 /************************* PROCEDURES ****************************/
 
 /*  Call this procedure to do the grunt work of parsing an AFM file.
index ec61d47103eae2c9b05e8ce9677c5c7ee3d52b1b..56370a3c18180dfd1e3531c7cb06027937ec198a 100644 (file)
@@ -40,12 +40,12 @@ struct Polynomial
   /// eliminate #x#  close to  zero
   void real_clean ();
   void scalarmultiply (Real fact);
-  void operator*= (Real f) { scalarmultiply (f); }
-  void operator/= (Real f) { scalarmultiply (1 / f); }
-  void operator+= (Polynomial const &p2);
-  void operator*= (Polynomial const &p2);
-  void operator-= (Polynomial const &p2);
-  Polynomial (Real a, Real b =0.0);
+  void operator *= (Real f) { scalarmultiply (f); }
+  void operator /= (Real f) { scalarmultiply (1 / f); }
+  void operator += (Polynomial const &p2);
+  void operator *= (Polynomial const &p2);
+  void operator -= (Polynomial const &p2);
+  Polynomial (Real a, Real b = 0.0);
   Polynomial (){}
   void set_negate (const Polynomial &src);
 
@@ -67,15 +67,15 @@ IMPLEMENT_ARITHMETIC_OPERATOR (Polynomial, +);
 IMPLEMENT_ARITHMETIC_OPERATOR (Polynomial, *);
 
 inline Polynomial
-operator* (Polynomial p, Real a)
+operator * (Polynomial p, Real a)
 {
-  p *=a;
+  p *= a;
   return p;
 }
 inline Polynomial
-operator* (Real a, Polynomial p)
+operator * (Real a, Polynomial p)
 {
-  p *=a;
+  p *= a;
   return p;
 }
 #endif
index c80dae2131690048dec823535dab78ca753b3d1b..548f66372466d9a8a6bf29828241a31d90d7dd71 100644 (file)
 #define PQUEUE_HH
 #include "array.hh"
 
-template < class K, class T>
+template<class K, class T>
 struct PQueue_ent
 {
   T val;
   K key;
 };
 
-template < class K, class T>
-int compare (PQueue_ent < K, T> const &e1, PQueue_ent < K, T> const &e2)
+template<class K, class T>
+int compare (PQueue_ent<K, T> const &e1, PQueue_ent<K, T> const &e2)
 {
   return compare (e1.key, e2.key);
 }
@@ -48,12 +48,12 @@ public:
       priority might fuck up the invariants
 
       @param 1 <= i < size () */
-  T &operator[] (int i) { return heap_array_[i]; }
-  T operator[] (int i) const { return heap_array_[i]; }
+  T &operator [] (int i) { return heap_array_[i]; }
+  T operator [] (int i) const { return heap_array_[i]; }
   void OK () const
   {
 #ifndef NDEBUG
-    for (int i =2; i <= size (); i++)
+    for (int i = 2; i <= size (); i++)
       assert (compare (elt (i / 2), elt (i)) <= 0);
 #endif
   }
@@ -97,7 +97,7 @@ public:
 
     while (mini < size ())
       {
-       if (compare (elt (mini + 1), elt (mini)) <0)
+       if (compare (elt (mini + 1), elt (mini)) < 0)
          mini++;
        if (compare (last, elt (mini)) < 0)
          break;
index a0973e2d58375a46d69fb02316a7e186aaeed285..18da3c792ead4040baed66043458b73f1962f0da 100644 (file)
@@ -45,7 +45,7 @@ public:
   //   operator bool () const;
   int to_int () const;
   operator double () const;
-  Rational operator- () const;
+  Rational operator - () const;
   /**
      Initialize to 0.
   */
@@ -54,16 +54,16 @@ public:
   Rational (int, int);
   Rational (double);
   Rational (Rational const &r) { copy (r);}
-  Rational &operator= (Rational const &r)
+  Rational &operator = (Rational const &r)
   {
     copy (r); return *this;
   }
 
-  Rational &operator*= (Rational);
-  Rational &operator/= (Rational);
-  Rational &operator+= (Rational);
-  Rational &operator-= (Rational);
-  Rational &operator%= (Rational);
+  Rational &operator *= (Rational);
+  Rational &operator /= (Rational);
+  Rational &operator += (Rational);
+  Rational &operator -= (Rational);
+  Rational &operator %= (Rational);
   static int compare (Rational const &, Rational const &);
   int sign () const;
   String to_string () const;
@@ -90,7 +90,7 @@ Rational::copy (Rational const &r)
 
 #if 0
 ostream &
-operator<< (ostream &, Rational);
+operator << (ostream &, Rational);
 #endif
 
 const Rational infinity_rat = INT_MAX;
index 43a35179a655d9f117f28ba822263af1912dc6ff..c75b14a0ce7cc648e3ee347daeef5fea1f88b14d 100644 (file)
@@ -33,7 +33,7 @@ template<class T> inline T max (T x, T y)
 
 template<class T> inline T sqr (T x)
 {
-  return x*x;
+  return x * x;
 }
 
 template<class T> inline T min (T x, T y)
index 378432f3ee7dbb3afa9f93a78e8a1343483641a9..001d5641c4879a06fc1812a75befe79f53de05bd 100644 (file)
@@ -62,7 +62,7 @@ class String_data
   /// concatenation.
   void append (Byte const *byte, int length_i);
 
-  void operator+= (char const *str0);
+  void operator += (char const *str0);
 
   char const *to_str0 () const;
 
@@ -77,8 +77,8 @@ class String_data
 
   /** access element. not really safe. Can alter length_ without
       #String_data# knowing it.  */
-  Byte &operator[] (int j);
-  Byte operator[] (int j) const;
+  Byte &operator [] (int j);
+  Byte operator [] (int j) const;
   bool is_binary_bo () const;
 };
 
index 9e7fe6f0ad24d57e37e3d05dbb825e9ae31dfe84..2f759ff8a1a2d838474df91edf34b9618e695852 100644 (file)
@@ -143,7 +143,7 @@ String_data::append (Byte const *byte, int length_i)
 
 INLINE
 void
-String_data::operator+= (char const *str0)
+String_data::operator += (char const *str0)
 {
   append ((Byte const *)str0, strlen (str0));
 }
@@ -191,18 +191,17 @@ String_data::is_binary_bo () const
 }
 
 INLINE Byte &
-String_data::operator[] (int j)
+String_data::operator [] (int j)
 {
   assert (j >= 0 && j <= length_);
   return data_byte_[j];
 }
 
 INLINE Byte
-String_data::operator[] (int j) const
+String_data::operator [] (int j) const
 {
   assert (j >= 0 && j <= length_);
   return data_byte_[j];
 }
 
-
 #endif // __STRING_UTIL_CC //
index 32810219d6b3d7f27c8fe1ada00da26ce4b414f0..25d6a631de0321137008b7d9286b8daa07c87508 100644 (file)
@@ -41,17 +41,17 @@ public:
   Byte *get_bytes ();
   char *get_str0 ();
   bool is_binary_bo () const;
-  void operator= (String_handle const &src);
-  void operator+= (char const *s);
-  Byte operator[] (int j) const;
+  void operator = (String_handle const &src);
+  void operator += (char const *s);
+  Byte operator [] (int j) const;
 
   /** Access elements. WARNING: NOT SAFE
       don't use this for loops. Use to_bytes ()
   */
-  Byte &operator[] (int j);
+  Byte &operator [] (int j);
   void append (Byte const *byte, int length_i);
   void set (Byte const *byte, int length_i);
-  void operator= (char const *p);
+  void operator = (char const *p);
   void trunc (int j);
   int length () const;
 };
index 91af2c56d36986c14e9f8a4d79f4aee5fdc42b59..edda14efef795768e581c093dea0d058a24c8c4f 100644 (file)
@@ -40,7 +40,7 @@ String_handle::up (String_data *d)
 INLINE void
 String_handle::copy ()
 {
-  if (data->ref_count_ !=1)
+  if (data->ref_count_ != 1)
     {
       String_data *newdata = new String_data (*data);
       down ();
@@ -93,7 +93,7 @@ String_handle::to_str0 () const
 }
 
 INLINE void
-String_handle::operator= (String_handle const &src)
+String_handle::operator = (String_handle const &src)
 {
   if (this == &src)
     return;
@@ -102,14 +102,14 @@ String_handle::operator= (String_handle const &src)
 }
 
 INLINE void
-String_handle::operator+= (char const *s)
+String_handle::operator += (char const *s)
 {
   copy ();
   *data += s;
 }
 
 INLINE Byte
-String_handle::operator[] (int j) const
+String_handle::operator [] (int j) const
 {
   return (*data)[j];
 }
@@ -117,7 +117,7 @@ String_handle::operator[] (int j) const
 // !NOT SAFE!
 // don't use this for loops. Use to_bytes ()
 INLINE Byte &
-String_handle::operator[] (int j)
+String_handle::operator [] (int j)
 {
   copy ();     // hmm. Not efficient
   return data->get_bytes ()[j];
@@ -138,7 +138,7 @@ String_handle::set (Byte const *byte, int length_i)
 }
 
 INLINE void
-String_handle::operator= (char const *p)
+String_handle::operator = (char const *p)
 {
   copy ();
   data->set (p);
index 70e9dd59aa3fb1f08ea47868267e596ff855b4ef..d4787b3a7a11a003536eab329dba0bc55a8c9916 100644 (file)
@@ -79,11 +79,11 @@ public:
   char *get_str0 ();
   Byte *get_bytes ();
 
-  String &operator= (String const &source);
+  String &operator = (String const &source);
 
   /// concatenate s
-  void operator+= (char const *s) { strh_ += s; }
-  void operator+= (String s);
+  void operator += (char const *s) { strh_ += s; }
+  void operator += (String s);
 
   bool is_empty () const;
 
@@ -93,8 +93,8 @@ public:
   /**
      Return a char.  UNSAFE because it may change strlen () result
   */
-  char &operator[] (int n);
-  char operator[] (int n) const;
+  char &operator [] (int n);
+  char operator [] (int n) const;
 
   /// return n leftmost chars
   String left_string (int n) const;
@@ -132,7 +132,7 @@ public:
 
 #ifdef STREAM_SUPPORT
   /// provide Stream output
-  void print_on (ostreamos) const;
+  void print_on (ostream &os) const;
 #endif
 
   /// the length of the string
@@ -187,26 +187,26 @@ INSTANTIATE_COMPARE (String const &, String::compare);
 #endif
 
 // because char const* also has an operator ==, this is for safety:
-inline bool operator== (String s1, char const *s2)
+inline bool operator == (String s1, char const *s2)
 {
   return s1 == String (s2);
 }
-inline bool operator== (char const *s1, String s2)
+inline bool operator == (char const *s1, String s2)
 {
   return String (s1) == s2;
 }
-inline bool operator!= (String s1, char const *s2)
+inline bool operator != (String s1, char const *s2)
 {
   return s1 != String (s2);
 }
-inline bool operator!= (char const *s1, String s2)
+inline bool operator != (char const *s1, String s2)
 {
-  return String (s2) !=s1;
+  return String (s2) != s1;
 }
 
 IMPLEMENT_ARITHMETIC_OPERATOR (String, +);
 #ifdef STREAM_SUPPORT
-ostream &operator<< (ostream& os, String d);
+ostream &operator << (ostream &os, String d);
 #endif
 
 #endif
index ed6a5887eeb4801bcf6a33892931cf7c1de77500..86b203665040c94aacfb633fb03b37506f8b7c2e 100644 (file)
 
 INLINE
 char &
-String::operator[] (int n)
+String::operator [] (int n)
 {
   return (char &) strh_[n];
 }
 
 INLINE
 char
-String::operator[] (int n) const
+String::operator [] (int n) const
 {
   return strh_[n];
 }
index b63ae6fd6efdb2d43d5ab8e01b4394d6045e2629..e4dcd8ade673bb938744430881b5d7020fef2a84 100644 (file)
@@ -34,7 +34,7 @@ demangle_classname (std::type_info const &);
   virtual Base *clone () const                                 \
   {                                                            \
     /* return new name (*this); */                             \
-    Base *urg = (Base*) this;                                  \
+    Base *urg = (Base *) this;                                 \
     return urg->clone_const_helper ();                         \
   }
 
index 7078a3be4e7e5a4cc643fff1fba49e0dd7f1771d..3fa6e9b2d8e29f01dd3868d8f3c1dbcdce3d1cc4 100644 (file)
@@ -240,5 +240,4 @@ extern "C" {
 
 #endif /* ! HAVE_FUNOPEN */
 #endif /* ! HAVE_FOPENCOOKIE */
-
 } /* extern C */
index a3ed32aecbbb9ac447d6450411bbe3c34e780a03..d6d62d44e5e898417d7f0bdb3823f7792259e7db 100644 (file)
@@ -37,7 +37,7 @@ complex_multiply (Offset z1, Offset z2)
   Offset z;
   if (!isinf_b (z2[Y_AXIS]))
     {
-      z[X_AXIS] = z1[X_AXIS] * z2[X_AXIS] - z1[Y_AXIS]*z2[Y_AXIS];
+      z[X_AXIS] = z1[X_AXIS] * z2[X_AXIS] - z1[Y_AXIS] * z2[Y_AXIS];
       z[Y_AXIS] = z1[X_AXIS] * z2[Y_AXIS] + z1[Y_AXIS] * z2[X_AXIS];
     }
   return z;
@@ -67,7 +67,7 @@ complex_exp (Offset o)
 
   Real r = exp (o[X_AXIS]);
 
-  return Offset (r*c, r*s);
+  return Offset (r * c, r * s);
 }
 
 Real
index fdd8ec846cd6e9f9090e9beb60d6947a92d884be..ffb7440809b29ae17c6cfce661fedb980a0cd29c 100644 (file)
@@ -222,7 +222,6 @@ token (FILE *stream)
   ident[idx] = 0;
 
   return (ident);      /* returns pointer to the token */
-
 } /* token */
 
 /*************************** linetoken *************************/
@@ -251,7 +250,6 @@ linetoken (FILE *stream)
   ident[idx] = 0;
 
   return (ident);      /* returns pointer to the token */
-
 } /* linetoken */
 
 /*************************** recognize *************************/
@@ -461,7 +459,6 @@ parseGlobals (FILE *fp, register AFM_GlobalFontInfo *gfi)
     } /* while */
 
   return (error);
-
 } /* parseGlobals */
 
 #if 0
@@ -541,7 +538,6 @@ initializeArray (FILE *fp, register int *cwi)
   fseek (fp, opos, 0);
 
   return (error);
-
 } /* initializeArray */
 #endif
 
@@ -644,7 +640,6 @@ parseCharWidths (FILE *fp, register int *cwi)
     } /* while */
 
   return (error);
-
 } /* parseCharWidths */
 
 /************************* parseCharMetrics ************************/
@@ -765,7 +760,6 @@ parseCharMetrics (FILE *fp, register AFM_Font_info *fi)
       error = AFM_parseError;
     }
   return (error);
-
 } /* parseCharMetrics */
 
 /************************* parseAFM_TrackKernData ***********************/
@@ -870,7 +864,6 @@ parseAFM_TrackKernData (FILE *fp, register AFM_Font_info *fi)
     error = AFM_parseError;
 
   return (error);
-
 } /* parseAFM_TrackKernData */
 
 /************************* parseAFM_PairKernData ************************/
@@ -991,7 +984,6 @@ parseAFM_PairKernData (FILE *fp, register AFM_Font_info *fi)
     error = AFM_parseError;
 
   return (error);
-
 } /* parseAFM_PairKernData */
 
 /************************* parseAFM_CompCharData **************************/
@@ -1116,10 +1108,8 @@ parseAFM_CompCharData (FILE *fp, register AFM_Font_info *fi)
     error = AFM_parseError;
 
   return (error);
-
 } /* parseAFM_CompCharData */
 
-
 /*************************** 'PUBLIC' FUNCTION ********************/
 
 void
@@ -1375,7 +1365,6 @@ AFM_parseFile (FILE *fp, AFM_Font_info **fi, int flags)
 
       if ((error != AFM_earlyEOF) && (code < 0))
        error = code;
-
     } /* while */
 
   if ((error != AFM_earlyEOF) && (code < 0))
@@ -1384,6 +1373,5 @@ AFM_parseFile (FILE *fp, AFM_Font_info **fi, int flags)
   if (ident != NULL) { free (ident); ident = NULL; }
 
   return (error);
-
 } /* parseFile */
 
index 92447b63001046d6ac8cf4541eb4f380fd063388..7b60880e7d901d40f4779fb4c47f9cc2fda72062 100644 (file)
@@ -32,7 +32,7 @@ Polynomial::multiply (const Polynomial &p1, const Polynomial &p2)
 {
   Polynomial dest;
 
-  int deg= p1.degree () + p2.degree ();
+  int deg = p1.degree () + p2.degree ();
   for (int i = 0; i <= deg; i++)
     {
       dest.coefs_.push (0);
@@ -47,7 +47,7 @@ Polynomial::multiply (const Polynomial &p1, const Polynomial &p2)
 void
 Polynomial::differentiate ()
 {
-  for (int i = 1; i<= degree (); i++)
+  for (int i = 1; i <= degree (); i++)
     {
       coefs_[i - 1] = coefs_[i] * i;
     }
@@ -95,7 +95,7 @@ Polynomial::clean ()
 }
 
 void
-Polynomial::operator+= (Polynomial const &p)
+Polynomial::operator += (Polynomial const &p)
 {
   while (degree () < p.degree ())
     coefs_.push (0.0);
@@ -105,7 +105,7 @@ Polynomial::operator+= (Polynomial const &p)
 }
 
 void
-Polynomial::operator-= (Polynomial const &p)
+Polynomial::operator -= (Polynomial const &p)
 {
   while (degree () < p.degree ())
     coefs_.push (0.0);
@@ -167,7 +167,8 @@ Polynomial::check_sol (Real x) const
   p.differentiate ();
   Real d = p.eval (x);
 
-  if (abs (f) > abs (d) * FUDGE);
+  if (abs (f) > abs (d) * FUDGE)
+    ;
   /*
     warning ("x=%f is not a root of polynomial\n"
     "f (x)=%f, f' (x)=%f \n", x, f, d);        */
@@ -176,7 +177,7 @@ Polynomial::check_sol (Real x) const
 void
 Polynomial::check_sols (Array<Real> roots) const
 {
-  for (int i = 0; i< roots.size (); i++)
+  for (int i = 0; i < roots.size (); i++)
     check_sol (roots[i]);
 }
 
@@ -233,20 +234,23 @@ Polynomial::solve_cubic ()const
        sol.push (0);
        sol.push (0);
        sol.push (0);
-      } else {         /* one single and one double solution */
+      }
+      else {           /* one single and one double solution */
        Real u = cubic_root (-q);
 
        sol.push (2 * u);
        sol.push (-u);
       }
-    } else if (D < 0) {                /* Casus irreducibilis: three real solutions */
+    }
+  else if (D < 0) {            /* Casus irreducibilis: three real solutions */
     Real phi = 1.0 / 3 * acos (-q / sqrt (-cb));
     Real t = 2 * sqrt (-p);
 
     sol.push (t * cos (phi));
     sol.push (-t * cos (phi + M_PI / 3));
     sol.push (-t * cos (phi - M_PI / 3));
-  } else {                     /* one real solution */
+  }
+  else {                       /* one real solution */
     Real sqrt_D = sqrt (D);
     Real u = cubic_root (sqrt_D - q);
     Real v = -cubic_root (sqrt_D + q);
@@ -339,7 +343,7 @@ Polynomial::solve () const
 }
 
 void
-Polynomial:: operator*= (Polynomial const &p2)
+Polynomial::operator *= (Polynomial const &p2)
 {
   *this = multiply (*this, p2);
 }
index a21b939565b09fb41662f4c98954f2bd3c513650..c5634402b1c94df45a1835de3e9d4f5816d2e7c8 100644 (file)
@@ -21,7 +21,7 @@ Rational::operator double () const
 
 #ifdef STREAM_SUPPORT
 ostream &
-operator<< (ostream &o, Rational r)
+operator << (ostream &o, Rational r)
 {
   o << r.string ();
   return o;
@@ -52,7 +52,7 @@ Rational::Rational (int n)
 {
   sign_ = ::sign (n);
   num_ = abs (n);
-  den_= 1;
+  den_ = 1;
 }
 
 static inline
@@ -74,7 +74,7 @@ Rational::set_infinite (int s)
 }
 
 Rational
-Rational::operator- () const
+Rational::operator - () const
 {
   Rational r (*this);
   r.negate ();
@@ -153,23 +153,24 @@ compare (Rational const &r, Rational const &s)
 }
 
 Rational &
-Rational::operator%= (Rational r)
+Rational::operator %= (Rational r)
 {
   *this = r.mod_rat (r);
   return *this;
 }
 
 Rational &
-Rational::operator+= (Rational r)
+Rational::operator += (Rational r)
 {
-  if (is_infinity ());
+  if (is_infinity ())
+    ;
   else if (r.is_infinity ())
     {
       *this = r;
     }
   else
     {
-      int n = sign_ * num_ *r.den_ + r.sign_ * den_ * r.num_;
+      int n = sign_ * num_ * r.den_ + r.sign_ * den_ * r.num_;
       int d = den_ * r.den_;
       sign_ = ::sign (n) * ::sign (d);
       num_ = abs (n);
@@ -215,7 +216,7 @@ Rational::Rational (double x)
     {
       num_ = 0;
       den_ = 1;
-      sign_ =0;
+      sign_ = 0;
       normalise ();
     }
 }
@@ -229,7 +230,7 @@ Rational::invert ()
 }
 
 Rational &
-Rational::operator*= (Rational r)
+Rational::operator *= (Rational r)
 {
   sign_ *= ::sign (r.sign_);
   if (r.is_infinity ())
@@ -247,7 +248,7 @@ Rational::operator*= (Rational r)
 }
 
 Rational &
-Rational::operator/= (Rational r)
+Rational::operator /= (Rational r)
 {
   r.invert ();
   return (*this *= r);
@@ -260,7 +261,7 @@ Rational::negate ()
 }
 
 Rational &
-Rational::operator-= (Rational r)
+Rational::operator -= (Rational r)
 {
   r.negate ();
   return (*this += r);
index be044e062f1851b299bdeb40933d6ff01ff34241..e6aacb7a45e12204db9771f9f15417d34a4aa6e1 100644 (file)
@@ -86,7 +86,6 @@ String_convert::i64_string (I64 i64, char const *fmt)
   snprintf (buffer, STRING_BUFFER_LEN,
            (fmt ? fmt : "%Ld"), i64); // assume radix 10
   return String (buffer);
-
 }
 // breendet imp from String
 double
@@ -107,7 +106,7 @@ String_convert::hex2bin (String hex_string, String &bin_string_r)
     hex_string = "0" + hex_string;
 
   bin_string_r = "";
-  Byte const *byte= hex_string.to_bytes ();
+  Byte const *byte = hex_string.to_bytes ();
   int i = 0;
   while (i < hex_string.length ())
     {
@@ -319,11 +318,12 @@ String_convert::split (String str, char c)
 {
   Array<String> a;
   int i = str.index (c);
-  while (i >=0)
+  while (i >= 0)
     {
       String s = str.left_string (i);
       a.push (s);
-      while (str[++i] == c);
+      while (str[++i] == c)
+       ;
       str = str.cut_string (i, INT_MAX);
       i = str.index (c);
     }
index 0f8aa09011e41e6e52e4b50d47d63e58a2e5e01a..5279b6a2d5e7ff6f9f83390aee7b463e926cd33a 100644 (file)
@@ -46,7 +46,7 @@ String::get_copy_str0 () const
   copying, constructing.
 */
 String &
-String::operator= (String const &source)
+String::operator = (String const &source)
 {
   strh_ = source.strh_;
   return *this;
@@ -107,7 +107,7 @@ String::append (String s)
   strh_.append (s.to_bytes (), s.length ());
 }
 void
-String::operator+= (String s)
+String::operator += (String s)
 {
   append (s);
 }
@@ -264,7 +264,7 @@ String::index_any (String set) const
   void const *me = (void const *) strh_.to_str0 ();
   for (int i = 0; i < set.length (); i++)
     {
-      char *found= (char *) memchr (me, set[i], n);
+      char *found = (char *) memchr (me, set[i], n);
       if (found)
        {
          return found - (char const *)me;
@@ -317,7 +317,7 @@ String::nomid_string (int index_i, int n) const
 String
 String::cut_string (int index_i, int n) const
 {
-  if (index_i <0)
+  if (index_i < 0)
     {
       n += index_i;
       index_i = 0;
@@ -365,14 +365,14 @@ String::to_double () const
 
 #ifdef STREAM_SUPPORT
 ostream &
-operator<< (ostream& os, String d)
+operator << (ostream &os, String d)
 {
   d.print_on (os);
   return os;
 }
 
 void
-String::print_on (ostreamos) const
+String::print_on (ostream &os) const
 {
   if (!strh_.is_binary_bo ())
     os << to_str0 ();
index 64965254d084cea85463419263cd4418631842ed..ce05662b509587e916b539b35c3e8a63c6e740b8 100644 (file)
@@ -216,7 +216,7 @@ number_accidentals_from_sig (bool *different, SCM sig, Pitch *pitch,
 
       if (alter == prev)
        num = 0;
-      else if ((abs (alter) < abs (prev) || prev*alter < 0) && alter != 0)
+      else if ((abs (alter) < abs (prev) || prev * alter < 0) && alter != 0)
        num = 2;
       *different = (alter != prev);
     }
index cf67149f76623e51b6c76d3201cf904b6ffea45d..ff32ad4313937697686545a132ca782a5ecefe92 100644 (file)
@@ -358,7 +358,7 @@ Accidental_placement::position_accidentals (Grob *me)
       insert_extent_into_skyline (&head_skyline, b, Y_AXIS, LEFT);
     }
 
-  head_ape-> left_skyline_ = head_skyline;
+  head_ape->left_skyline_ = head_skyline;
   head_ape->offset_ = 0.0;
 
   Real padding = robust_scm2double (me->get_property ("padding"), 0.2);
index e2f21a105a35c3f14c0bd0b267664c9d0588600e..26909e72a09601325148dca6f495f2dc1e1abe41 100644 (file)
@@ -100,7 +100,7 @@ Accidental_interface::accurate_boxes (Grob *a, Grob **common)
 
            belly[Y_AXIS] *= 0.75;
            lstem[X_AXIS][RIGHT] *= .33;
-           rstem[X_AXIS][LEFT] = rstem[X_AXIS].linear_combination (1.0/3.0);
+           rstem[X_AXIS][LEFT] = rstem[X_AXIS].linear_combination (1.0 / 3.0);
            lstem[Y_AXIS][DOWN] = belly[Y_AXIS][DOWN];
            rstem[Y_AXIS][UP] = belly[Y_AXIS][UP];
            boxes.push (belly);
index 8a1b6a8570dd113a35acf578ca6b264d7406080e..b1c3805ac463058540c29ba45a0c040e25c5e361 100644 (file)
@@ -75,7 +75,7 @@ Adobe_font_metric::find_char_metric (String nm) const
 int
 Adobe_font_metric::name_to_index (String name) const
 {
-  std::map < String, int>::const_iterator ai = name_to_metric_dict_.find (name);
+  std::map<String, int>::const_iterator ai = name_to_metric_dict_.find (name);
   if (ai == name_to_metric_dict_.end ())
     return -1;
   return (*ai).second;
index 7ebe4f33cc64b6cf2db9a03f23414bc8e52a9c48..7489f6692c7107cbdb07c24d4a656be062f4ff51 100644 (file)
@@ -256,7 +256,6 @@ find_fixed_alignment_parent (Grob *g)
   return 0;
 }
 
-
 ADD_INTERFACE (Align_interface, "align-interface",
               "Order grobs from top to bottom, left to right, right to left or bottom"
               "to top.",
index bca05e31204a3ca5ab73e56870426eb0b06d0ffc..12402a3100fbfba53f815d361b4e2d4c1328d274 100644 (file)
@@ -61,6 +61,7 @@ Ambitus_engraver::create_ambitus ()
       Side_position_interface::add_support (accidentals_[d], heads_[d]);
     }
   while (flip (&d) != DOWN);
+
   ambitus_->set_parent (heads_[DOWN], X_AXIS);
   Axis_group_interface::add_element (group_, ambitus_);
 
@@ -175,6 +176,7 @@ Ambitus_engraver::finalize ()
          heads_[d]->suicide ();
        }
       while (flip (&d) != DOWN);
+
       ambitus_->suicide ();
     }
 }
index 420c016834858b1fc2fe8e2178146ae173baaf39..a702fffb501d1c82175bcb47aa1cf3ecc25fc780 100644 (file)
@@ -52,12 +52,12 @@ Ambitus::print (SCM smob)
          Real linethickness = me->get_layout ()->get_dimension (ly_symbol2scm ("linethickness"))
            * robust_scm2double (me->get_property ("thickness"), 1.0);
          Real blotdiameter = me->get_layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
-         Interval x_extent = 0.5 * linethickness *Interval (-1, 1);
+         Interval x_extent = 0.5 * linethickness * Interval (-1, 1);
          Interval y_extent = Interval (pmin, pmax);
          Box line_box (x_extent, y_extent);
 
          Stencil line = Lookup::round_filled_box (line_box, blotdiameter);
-         line.translate_axis (- me-> relative_coordinate (common, Y_AXIS),
+         line.translate_axis (- me->relative_coordinate (common, Y_AXIS),
                               Y_AXIS);
          return line.smobbed_copy ();
        }
index 0d432a41898227461ead843371b94df7d5019f7d..8ac92f1c3c3c06edb9e855812aac201dde428885 100644 (file)
@@ -82,7 +82,7 @@ Arpeggio::print (SCM smob)
     }
 
   for (Real y = heads[LEFT]; y < heads[RIGHT];
-       y+= squiggle. extent (Y_AXIS).length ())
+       y += squiggle.extent (Y_AXIS).length ())
     mol.add_at_edge (Y_AXIS, UP, squiggle, 0.0, 0);
 
   mol.translate_axis (heads[LEFT], Y_AXIS);
index 9164df8a74cf3a1b5e0fafd56c22c493e13b82c0..09a6d2a8312694949c1fb21949ea651add6b18e6 100644 (file)
@@ -47,7 +47,7 @@ private:
   */
   Moment shortest_mom_;
   Spanner *finished_beam_;
-  Link_array<Item>stems_;
+  Link_array<Item> *stems_;
 
   int count_;
   Moment last_add_mom_;
index 1fb472a1b5a45905c1201166455c2fdec307c12f..64698e441c743090400e129358d9307c83e56551 100644 (file)
@@ -31,7 +31,6 @@ private:
 
   Interpretation_context_handle up_;
   Interpretation_context_handle down_;
-
 };
 
 void
@@ -80,7 +79,6 @@ Auto_change_iterator::change_to (Music_iterator *it, SCM to_type_sym,
        */
       }
   else;
-
 }
 
 void
@@ -138,7 +136,6 @@ Auto_change_iterator::construct_children ()
                                            "", SCM_EOL);
   set_context (voice);
   Music_wrapper_iterator::construct_children ();
-
 }
 
 void
@@ -146,6 +143,5 @@ Auto_change_iterator::do_quit ()
 {
   up_.set_context (0);
   down_.set_context (0);
-
 }
 IMPLEMENT_CTOR_CALLBACK (Auto_change_iterator);
index dde37ac72e0152a667ba319ad587f6aa01b14243..46b15f18d319b1da2bba3214028ffa4ef7c54655 100644 (file)
@@ -72,7 +72,7 @@ Axis_group_interface::group_extent_callback (SCM element_smob, SCM scm_axis)
 void
 Axis_group_interface::set_axes (Grob *me, Axis a1, Axis a2)
 {
-  SCM sa1= scm_int2num (a1);
+  SCM sa1 = scm_int2num (a1);
   SCM sa2 = scm_int2num (a2);
 
   SCM axes = me->get_property ("axes");
index cd5729a02eaf5ed0884ecd9e3961cb45f0163a72..fa803dbfdf72632dd4bbc9b0f2199f1fb094a9be 100644 (file)
@@ -132,7 +132,7 @@ Bar_line::compound_barline (Grob *me, String str, Real h)
          Real y = (- (c - 1.0) / 2 + 0.5 + i * staff_space);
          Stencil d (dot);
 
-         d. translate_axis (y, Y_AXIS);
+         d.translate_axis (y, Y_AXIS);
          m.add_stencil (d);
        }
     }
@@ -179,7 +179,6 @@ Bar_line::before_line_breaking (SCM smob)
   return SCM_UNSPECIFIED;
 }
 
-
 MAKE_SCHEME_CALLBACK (Bar_line, get_staff_bar_size, 1);
 SCM
 Bar_line::get_staff_bar_size (SCM smob)
@@ -188,7 +187,7 @@ Bar_line::get_staff_bar_size (SCM smob)
   Real ss = Staff_symbol_referencer::staff_space (me);
   SCM size = me->get_property ("bar-size");
   if (scm_is_number (size))
-    return scm_make_real (scm_to_double (size)*ss);
+    return scm_make_real (scm_to_double (size) * ss);
   else if (Staff_symbol_referencer::get_staff_symbol (me))
     {
       /*
index 80b431c2141721006857a40fb2b81068c3a2a80c..4e9cc302f7a377abeba125440cc99372eb1e8c9f 100644 (file)
@@ -54,7 +54,6 @@ Bar_number_engraver::process_music ()
            }
        }
     }
-
 }
 
 Bar_number_engraver::Bar_number_engraver ()
index d7ea7638e8d284b335eb2e6d3eb619c8bce99c5a..91c772a06b12fca6a5c6dcc0b0ac0aa2f338c884 100644 (file)
@@ -36,7 +36,7 @@ is_concave_single_notes (Array<int> const &positions, Direction beam_dir)
     note is reached in the opposite direction as the last-first dy
   */
   int dy = positions.top () - positions[0];
-  int closest = (beam_dir * positions.top ()) >? (beam_dir *positions[0]);
+  int closest = (beam_dir * positions.top ()) >? (beam_dir * positions[0]);
   for (int i = 2; !concave && i < positions.size () - 1; i++)
     {
       int inner_dy = positions[i] - positions[i - 1];
index def3e6a66ba9d895ec1f72496fee4b22296e4690..f5ea6a3ca9567549740be2e9a6bd6d5586fc65af 100644 (file)
@@ -118,7 +118,7 @@ Beam_engraver::set_melisma (bool ml)
 {
   SCM b = get_property ("autoBeaming");
   if (!to_boolean (b))
-    context ()->set_property ("beamMelismaBusy", ml ? SCM_BOOL_T :SCM_BOOL_F);
+    context ()->set_property ("beamMelismaBusy", ml ? SCM_BOOL_T : SCM_BOOL_F);
 }
 
 void
@@ -149,7 +149,6 @@ Beam_engraver::process_music ()
 
       /* urg, must copy to Auto_beam_engraver too */
     }
-
 }
 
 void
@@ -246,7 +245,7 @@ Beam_engraver::acknowledge_grob (Grob_info info)
            }
 
          last_stem_added_at_ = now;
-         int durlog = unsmob_duration (m->get_property ("duration"))-> duration_log ();
+         int durlog = unsmob_duration (m->get_property ("duration"))->duration_log ();
          if (durlog <= 2)
            {
              m->origin ()->warning (_ ("stem doesn't fit in beam"));
@@ -268,7 +267,6 @@ Beam_engraver::acknowledge_grob (Grob_info info)
     }
 }
 
-
 ADD_TRANSLATOR (Beam_engraver,
                /* descr */ "Handles Beam events by engraving Beams.    If omitted, then notes will be "
                "printed with flags instead of beams.",
index a7cd2547b1ca64053f0dda0f1405b685206c1eae..0b88e90086cc57e8d5627de2d132a2973d8088fa 100644 (file)
@@ -56,7 +56,7 @@ Beam_performer::set_melisma (bool ml)
 {
   SCM b = get_property ("autoBeaming");
   if (!to_boolean (b))
-    context ()->set_property ("beamMelismaBusy", ml ? SCM_BOOL_T :SCM_BOOL_F);
+    context ()->set_property ("beamMelismaBusy", ml ? SCM_BOOL_T : SCM_BOOL_F);
 }
 
 void
index c18c5c4cfe29df26f1a12039c260b27debfa286e..eb9d3b0c8c0c5154ab917e2dd7856c8156d911fa 100644 (file)
@@ -457,11 +457,11 @@ Beam::score_forbidden_quants (Real yl, Real yr,
 
                dem += extra_demerit
                  * (fixed_demerit
-                    + (1 - fixed_demerit) * (dist / gap.length ())* 2);
+                    + (1 - fixed_demerit) * (dist / gap.length ()) * 2);
              }
        }
     }
-  while ((flip (&d))!= LEFT);
+  while ((flip (&d)) != LEFT);
 
   if ((beam_counts[LEFT] >? beam_counts[RIGHT]) >= 2)
     {
index fc02627a2eac0867b8bee7b7c17bdd619ef2ecb8..f54726950f64b2cb02a92be7736db0db341ac6a5 100644 (file)
@@ -110,8 +110,8 @@ Beam::space_function (SCM smob, SCM beam_count)
   Real thickness = get_thickness (me);
 
   Real beam_translation = scm_to_int (beam_count) < 4
-    ? (2*staff_space + line - thickness) / 2.0
-    : (3*staff_space + line - thickness) / 3.0;
+    ? (2 * staff_space + line - thickness) / 2.0
+    : (3 * staff_space + line - thickness) / 3.0;
 
   return scm_make_real (beam_translation);
 }
@@ -194,7 +194,7 @@ position_with_maximal_common_beams (SCM left_beaming, SCM right_beaming,
   int best_count = 0;
   int best_start = 0;
   for (int i = lslice[-left_dir];
-       (i - lslice[left_dir])* left_dir <= 0; i+= left_dir)
+       (i - lslice[left_dir]) * left_dir <= 0; i += left_dir)
     {
       int count = 0;
       for (SCM s = scm_car (right_beaming); scm_is_pair (s); s = scm_cdr (s))
@@ -224,7 +224,7 @@ Beam::connect_beams (Grob *me)
   last_int.set_empty ();
   SCM last_beaming = SCM_EOL;
   Direction last_dir = CENTER;
-  for (int i = 0; i< stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob *this_stem = stems[i];
       SCM this_beaming = this_stem->get_property ("beaming");
@@ -253,7 +253,6 @@ Beam::connect_beams (Grob *me)
                  new_slice.add_point (new_beam_pos);
                  scm_set_car_x (s, scm_int2num (new_beam_pos));
                }
-
            }
          while (flip (&d) != LEFT);
 
@@ -342,13 +341,13 @@ Beam::print (SCM grob)
   Stencil the_beam;
   Real lt = me->get_layout ()->get_dimension (ly_symbol2scm ("linethickness"));
 
-  for (int i = 0; i<= stems.size (); i++)
+  for (int i = 0; i <= stems.size (); i++)
     {
       Grob *st = (i < stems.size ()) ? stems[i] : 0;
 
       SCM this_beaming = st ? st->get_property ("beaming") : SCM_EOL;
       Real xposn = st ? st->relative_coordinate (xcommon, X_AXIS) : 0.0;
-      Real stem_width = st ? robust_scm2double (st->get_property ("thickness"), 1.0) *lt : 0;
+      Real stem_width = st ? robust_scm2double (st->get_property ("thickness"), 1.0) * lt : 0;
       Direction stem_dir = st ? to_dir (st->get_property ("direction")) : CENTER;
       /*
        We do the space left of ST, with lfliebertjes pointing to the
@@ -399,7 +398,7 @@ Beam::print (SCM grob)
        }
 
       if (st)
-       w += stem_width/ 2;
+       w += stem_width / 2;
 
       Real blot = me->get_layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
       Stencil whole = Lookup::beam (slope, w, thick, blot);
@@ -517,7 +516,6 @@ Beam::print (SCM grob)
   return the_beam.smobbed_copy ();
 }
 
-
 Direction
 Beam::get_default_dir (Grob *me)
 {
@@ -570,7 +568,7 @@ Beam::set_stem_directions (Grob *me, Direction d)
   Link_array<Grob> stems
     = extract_grob_array (me, ly_symbol2scm ("stems"));
 
-  for (int i = 0; i <stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob *s = stems[i];
 
@@ -591,7 +589,6 @@ Beam::set_stem_directions (Grob *me, Direction d)
 
   this routine should take into account the stemlength scoring
   of a possible knee/nonknee beam.
-  
 */
 void
 Beam::consider_auto_knees (Grob *me)
@@ -680,8 +677,8 @@ Beam::consider_auto_knees (Grob *me)
 
          Interval head_extents = head_extents_array[j++];
 
-         Direction d = (head_extents.center () < max_gap.center ()) ?
-           UP : DOWN;
+         Direction d = (head_extents.center () < max_gap.center ())
+           UP : DOWN;
 
          stem->set_property ("direction", scm_int2num (d));
 
@@ -898,7 +895,7 @@ Beam::least_squares (SCM smob)
   /*
     "position" is relative to the staff.
   */
-  scale_drul (&pos, 1/ Staff_symbol_referencer::staff_space (me));
+  scale_drul (&pos, 1 / Staff_symbol_referencer::staff_space (me));
 
   me->set_property ("positions", ly_interval2scm (pos));
 
@@ -1000,7 +997,7 @@ Beam::shift_region_to_valid (SCM grob)
     }
 
   pos = Drul_array<Real> (y, (y + dy));
-  scale_drul (&pos, 1/ Staff_symbol_referencer::staff_space (me));
+  scale_drul (&pos, 1 / Staff_symbol_referencer::staff_space (me));
 
   me->set_property ("positions", ly_interval2scm (pos));
   return SCM_UNSPECIFIED;
@@ -1170,7 +1167,7 @@ Beam::set_stem_lengths (Grob *me)
       if (gap)
        stem_y += thick * 0.5 * get_grob_direction (s);
 
-      Stem::set_stemend (s, 2* stem_y / staff_space);
+      Stem::set_stemend (s, 2 * stem_y / staff_space);
     }
 }
 
@@ -1234,7 +1231,6 @@ Beam::forced_stem_count (Grob *me)
   return f;
 }
 
-
 int
 Beam::visible_stem_count (Grob *me)
 {
@@ -1359,7 +1355,7 @@ Beam::rest_collision_callback (SCM element_smob, SCM axis)
       < rad
       || (rest->extent (common_y, Y_AXIS)[-d] + staff_space * shift) * -d
       < rad)
-    shift = ceil (fabs (shift)) *sign (shift);
+    shift = ceil (fabs (shift)) * sign (shift);
 
   return scm_make_real (staff_space * shift);
 }
index 1e2f3f4f4deea677ad4f331ae248a1d6bd6b2347..78846cea7ea0ab3dfed4e28a1cd9eaf820a3bac7 100644 (file)
@@ -32,7 +32,7 @@ Beaming_info_list::best_splitpoint_index (Moment &beat_length, bool subdivide) c
   int minidx = -1;
   Moment beat_pos;
 
-  for (int i =1; i < infos_.size (); i++)
+  for (int i = 1; i < infos_.size (); i++)
     {
       beat_pos = infos_[i].start_mom_ / beat_length;
       int den = beat_pos.den ();
@@ -45,7 +45,7 @@ Beaming_info_list::best_splitpoint_index (Moment &beat_length, bool subdivide) c
        }
     }
 
-  return minidx| (minden ==1 && subdivide ? at_beat : 0);
+  return minidx | (minden == 1 && subdivide ? at_beat : 0);
 }
 
 int
@@ -80,8 +80,8 @@ Beaming_info_list::beamify (Moment &beat_length, bool subdivide)
     }
   while (flip (&d) != LEFT);
 
-  int middle_beams = (split ? 1 :
-                     splits[RIGHT].beam_extend_count (LEFT) <?
+  int middle_beams = (split ? 1
+                     splits[RIGHT].beam_extend_count (LEFT) <?
                      splits[LEFT].beam_extend_count (RIGHT));
 
   do
index 6ef641134cd9fdad36c62cfae5fa7b952ac2b018..90253bdf2282d1f095b07b3d79c01d4aa159a8b3 100644 (file)
@@ -99,7 +99,7 @@ get_slur_indent_height (Real *indent, Real *height,
 
   Real q = 2 * h_inf / max_fraction;
   *indent
-    = 2 *h_inf - sqr (q) * max_fraction / (width + q);
+    = 2 * h_inf - sqr (q) * max_fraction / (width + q);
 }
 
 Bezier
index f28e18a7abaf9933925462e5d81d2cdd90256e04..d0d126e7d3f546fb4fd5cf0342bdbc171346bac4 100644 (file)
@@ -28,17 +28,17 @@ binomial_coefficient (Real over, int under)
 }
 
 void
-scale (Array<Offset>array, Real x, Real y)
+scale (Array<Offset> *array, Real x, Real y)
 {
   for (int i = 0; i < array->size (); i++)
     {
-      (*array)[i][X_AXIS] = x* (*array)[i][X_AXIS];
-      (*array)[i][Y_AXIS] = y* (*array)[i][Y_AXIS];
+      (*array)[i][X_AXIS] = x * (*array)[i][X_AXIS];
+      (*array)[i][Y_AXIS] = y * (*array)[i][Y_AXIS];
     }
 }
 
 void
-rotate (Array<Offset>array, Real phi)
+rotate (Array<Offset> *array, Real phi)
 {
   Offset rot (complex_exp (Offset (0, phi)));
   for (int i = 0; i < array->size (); i++)
@@ -46,7 +46,7 @@ rotate (Array<Offset>* array, Real phi)
 }
 
 void
-translate (Array<Offset>array, Offset o)
+translate (Array<Offset> *array, Offset o)
 {
   for (int i = 0; i < array->size (); i++)
     (*array)[i] += o;
@@ -85,7 +85,7 @@ Offset
 Bezier::curve_point (Real t) const
 {
   Real tj = 1;
-  Real one_min_tj = (1 - t)* (1 - t)* (1 - t);
+  Real one_min_tj = (1 - t) * (1 - t) * (1 - t);
 
   Offset o;
   for (int j = 0; j < 4; j++)
@@ -99,8 +99,8 @@ Bezier::curve_point (Real t) const
     }
 
 #ifdef PARANOID
-  assert (fabs (o[X_AXIS] - polynomial (X_AXIS).eval (t))< 1e-8);
-  assert (fabs (o[Y_AXIS] - polynomial (Y_AXIS).eval (t))< 1e-8);
+  assert (fabs (o[X_AXIS] - polynomial (X_AXIS).eval (t)) < 1e-8);
+  assert (fabs (o[Y_AXIS] - polynomial (Y_AXIS).eval (t)) < 1e-8);
 #endif
 
   return o;
@@ -128,7 +128,7 @@ Array<Real>
 filter_solutions (Array<Real> sol)
 {
   for (int i = sol.size (); i--;)
-    if (sol[i] < 0 || sol[i] >1)
+    if (sol[i] < 0 || sol[i] > 1)
       sol.del (i);
   return sol;
 }
@@ -170,7 +170,7 @@ Bezier::extent (Axis a) const
 {
   int o = (a + 1)%NO_AXES;
   Offset d;
-  d[Axis (o)] =1.0;
+  d[Axis (o)] = 1.0;
   Interval iv;
   Array<Real> sols (solve_derivative (d));
   sols.push (1.0);
index bd15a691f9aeeda9a5483874d54e3d068dc05dbf..c933c1bc05fdde4c99e0a19ae435b45e90573f18 100644 (file)
@@ -44,13 +44,13 @@ Box::Box (Interval ix, Interval iy)
 }
 
 Interval &
-Box::operator[] (Axis a)
+Box::operator [] (Axis a)
 {
   return interval_a_[a];
 }
 
 Interval
-Box::operator[] (Axis a) const
+Box::operator [] (Axis a) const
 {
   return interval_a_[a];
 }
index 4575d8410e826f11a1ba26814c87d77015a14cd8..66be64c8dfa5bae836fe2860614f3778c161f6a0 100644 (file)
@@ -22,7 +22,7 @@ Break_algorithm::find_break_indices () const
   Link_array<Grob> all = pscore_->system_->columns ();
   Array<int> retval;
 
-  for (int i= 0; i < all.size (); i++)
+  for (int i = 0; i < all.size (); i++)
     if (Item::is_breakable (all[i]))
       retval.push (i);
 
@@ -39,12 +39,12 @@ Break_algorithm::find_breaks () const
   Link_array<Grob> all = pscore_->system_->columns ();
   Link_array<Grob> retval;
 
-  for (int i= 0; i < all.size (); i++)
+  for (int i = 0; i < all.size (); i++)
     if (Item::is_breakable (all[i]))
       retval.push (all[i]);
 
   if (linewidth_ <= 0)
-    while (retval.size () >2)
+    while (retval.size () > 2)
       retval.del (1);
 
   return retval;
index 7309342dd690a96f59f52c67079010728d1bf671..a9787ef377b48e9492f8f747569f93974592fcd9 100644 (file)
@@ -35,7 +35,6 @@ Break_align_engraver::add_column (SCM smob)
 {
   Grob *e = unsmob_grob (smob);
   Break_align_interface::add_element (align_, e);
-
 }
 
 void
@@ -121,7 +120,6 @@ Break_align_engraver::add_to_group (SCM align_name, Item *item)
       group->set_parent (align_, Y_AXIS);
 
       column_alist_ = scm_assoc_set_x (column_alist_, align_name, group->self_scm ());
-
     }
   Axis_group_interface::add_element (group, item);
 }
index 9afd8f13eaa40e1681718283beb6943448dc28dd..e41b09c553a775277ce0858665d79f9184a24211 100644 (file)
@@ -34,7 +34,6 @@ substitute_grob (Grob *sc)
       if (sc->get_system () != line)
        {
          sc = sc->find_broken_piece (line);
-
        }
 
       /* now: !sc || (sc && sc->get_system () == line) */
@@ -233,7 +232,7 @@ item_system_range (Item *it)
       if (bi && bi->get_system ())
        sr.add_point (bi->get_system ()->rank_);
     }
-  while (flip (&d)!= LEFT);
+  while (flip (&d) != LEFT);
 
   return sr;
 }
@@ -378,7 +377,7 @@ Spanner::fast_fubstitute_grob_list (SCM sym,
     ordering, since they go across the entire score.
   */
   for (int i = sp_indices.size (); i--;)
-    sp_indices[i]= Slice (sp_index, len - 1);
+    sp_indices[i] = Slice (sp_index, len - 1);
 
   assert (it_index <= sp_index);
 
@@ -387,7 +386,7 @@ Spanner::fast_fubstitute_grob_list (SCM sym,
     {
       Grob *sc = broken_intos_[i];
       System *l = sc->get_system ();
-      set_break_subsititution (l ? l->self_scm (): SCM_UNDEFINED);
+      set_break_subsititution (l ? l->self_scm () : SCM_UNDEFINED);
 
       SCM newval = SCM_EOL;
       SCM *tail = &newval;
@@ -396,13 +395,12 @@ Spanner::fast_fubstitute_grob_list (SCM sym,
        for (int j = (*arrs[k])[i][LEFT]; j <= (*arrs[k])[i][RIGHT]; j++)
          {
            SCM subs = substitute_grob (vec[j].grob_);
-           if (subs!= SCM_UNDEFINED)
+           if (subs != SCM_UNDEFINED)
              {
                *tail = scm_cons (subs, SCM_EOL);
 
                tail = SCM_CDRLOC (*tail);
              }
-
          }
 
 #ifdef PARANOIA
@@ -489,7 +487,7 @@ Spanner::substitute_one_mutable_property (SCM sym,
     fast_done = s->fast_fubstitute_grob_list (sym, val);
 
   if (!fast_done)
-    for (int i = 0; i < s->broken_intos_ .size (); i++)
+    for (int i = 0; i < s->broken_intos_.size (); i++)
       {
        Grob *sc = s->broken_intos_[i];
        System *l = sc->get_system ();
index 86aa555336d2672b3e4f1861ab3f8fc6b30db3e9..da241a2d4b05c8ee58460919a297dcc4caff95d9 100644 (file)
@@ -114,7 +114,6 @@ Clef_engraver::create_clef ()
          g->set_parent (clef_, X_AXIS);
          g->set_property ("direction", scm_int2num (dir));
          octavate_ = g;
-
        }
     }
 }
@@ -172,7 +171,6 @@ Clef_engraver::stop_translation_timestep ()
          if (octavate_)
            {
              octavate_->set_property ("break-visibility", vis);
-
            }
        }
 
index 02c7613cbcb8f699fb656a31f5bf173fe1e0170e..cdbfcd9b5dd72328c7bd49afb54b49d65ad85e2a 100644 (file)
@@ -79,7 +79,7 @@ Cluster_spanner_engraver::process_music ()
       int pmax = INT_MIN;
       int pmin = INT_MAX;
 
-      for (int i = 0; i <cluster_notes_.size (); i++)
+      for (int i = 0; i < cluster_notes_.size (); i++)
        {
          Pitch *pit = unsmob_pitch (cluster_notes_[i]->get_property ("pitch"));
 
index a277540df3aceb8c6ebbd621166404f40b135181..13edfdd486bee94df2fbf744f1f60850c590f7df 100644 (file)
@@ -33,10 +33,9 @@ Collision_engraver::process_acknowledged_grobs ()
   if (!col_)
     {
       col_ = make_item ("NoteCollision", SCM_EOL);
-
     }
 
-  for (int i = 0; i< note_columns_.size (); i++)
+  for (int i = 0; i < note_columns_.size (); i++)
     Note_collision_interface::add_column (col_, note_columns_[i]);
 }
 
@@ -65,7 +64,6 @@ Collision_engraver::Collision_engraver ()
   col_ = 0;
 }
 
-
 ADD_TRANSLATOR (Collision_engraver,
                /* descr */ "Collect NoteColumns, and as soon as there are two or more, put them in a NoteCollision object.",
                /* creats*/ "NoteCollision",
index 0c9631afab2eee92fcca4738c2fae41762de5d88..11b0e185fefe02c51c3ae518e5f29d70c4f476c4 100644 (file)
@@ -100,7 +100,6 @@ Completion_heads_engraver::try_music (Music *m)
     }
 
   return false;
-
 }
 
 /*
@@ -260,7 +259,6 @@ Completion_heads_engraver::process_music ()
          Tie::set_head (p, RIGHT, notes_[i]);
 
          ties_.push (p);
-
        }
     }
 
index a649ef02f22586cff82e4222721406a83bc5772f..ae0821054f55295bff5ae077b0bcc9955afb792a 100644 (file)
@@ -64,7 +64,7 @@ Interpretation_context_handle::try_music (Music *m)
 }
 
 void
-Interpretation_context_handle::operator= (Interpretation_context_handle const &s)
+Interpretation_context_handle::operator = (Interpretation_context_handle const &s)
 {
   set_context (s.outlet_);
 }
index 3d26ef368c50f1b6853bf7d175acd2c6d1cffb02..3ea9718f53769f18467a18e5a18a4a4028aa592e 100644 (file)
@@ -19,7 +19,7 @@ LY_DEFINE (ly_context_id, "ly:context-id",
   Context *tr = unsmob_context (context);
   SCM_ASSERT_TYPE (tr, context, SCM_ARG1, __FUNCTION__, "Context");
 
-  return scm_makfrom0str (tr->id_string (). to_str0 ());
+  return scm_makfrom0str (tr->id_string ().to_str0 ());
 }
 
 LY_DEFINE (ly_context_name, "ly:context-name",
index 7d7eddfc1966980978fffc9e3b26f4fa4af86959..13965e2fa0f50b54b0779ff8b96f95669dd6c506 100644 (file)
@@ -22,7 +22,7 @@ bool
 Context::is_removable () const
 {
   return context_list_ == SCM_EOL && ! iterator_count_
-    && !dynamic_cast < Score_context const *> (this);
+    && !dynamic_cast<Score_context const *> (this);
 }
 
 void
@@ -459,7 +459,6 @@ Context::get_output_def () const
 
 Context::~Context ()
 {
-
 }
 
 Moment
index 70b5bb92650f6b776b953a056aefa3eac529c657..0c5157d599c976e620a7e11747e360cf0ac14b51 100644 (file)
@@ -105,7 +105,6 @@ Custos_engraver::process_acknowledged_grobs ()
 
          c->set_property ("staff-position",
                           scm_int2num (p));
-
        }
 
       pitches_.clear ();
index 1102d918939060205db08178e653b4dff226d6f8..e4dd194632bbdb1d8fff1ec741fd3ad1077cb301 100644 (file)
@@ -41,5 +41,3 @@ Dimension_cache::init ()
   parent_ = 0;
 }
 
-
-
index 79f3a276863a1e96f6d51f8926752aa6af422935..2bd44f58afe410059f32e336b29fdb1e319f5b0d 100644 (file)
@@ -56,7 +56,6 @@ Dot_column_engraver::acknowledge_grob (Grob_info info)
       if (!dotcol_)
        {
          dotcol_ = make_item ("DotColumn", SCM_EOL);
-
        }
 
       Dot_column::add_head (dotcol_, info.grob_);
@@ -67,7 +66,6 @@ Dot_column_engraver::acknowledge_grob (Grob_info info)
     }
 }
 
-
 ADD_TRANSLATOR (Dot_column_engraver,
                /* descr */ "Engraves dots on dotted notes shifted to the right of the note.\n"
                "If omitted, then dots appear on top of the notes.",
index ec981b63bc9c5957640297a4e1937d7c12a3a24a..005651a1230f684499ce7de610184a92ef8e0077 100644 (file)
@@ -81,7 +81,7 @@ struct Dot_position
   }
 };
 
-typedef std::map < int, Dot_position> Dot_configuration;
+typedef std::map<int, Dot_position> Dot_configuration;
 
 /*
   Value CFG according.
@@ -301,7 +301,6 @@ Dot_column::add_head (Grob *me, Grob *rh)
     }
 }
 
-
 ADD_INTERFACE (Dot_column, "dot-column-interface",
               "Groups dot objects so they form a column, and position dots so they do not "
               "clash with staff lines ",
index 44eb51802fdc4bb827e12dd4050bded27d91bd19..a6f2e64a5c750126bd504711f62b17c33ff3f3e5 100644 (file)
@@ -41,14 +41,13 @@ Dots::print (SCM d)
 
       for (int i = scm_to_int (c); i--;)
        {
-         d.translate_axis (2*dw, X_AXIS);
+         d.translate_axis (2 * dw, X_AXIS);
          mol.add_at_edge (X_AXIS, RIGHT, d, dw, 0);
        }
     }
   return mol.smobbed_copy ();
 }
 
-
 ADD_INTERFACE (Dots, "dots-interface",
               "The dots to go with a notehead or rest."
               "@code{direction} sets the preferred direction to move in case of staff "
index d58a889d9d6cd552b4e1ef132ae313b5c42874ac..c73cbf979102d7335674c283aadb42b205b32204 100644 (file)
@@ -150,7 +150,6 @@ Drum_notes_engraver::acknowledge_grob (Grob_info inf)
            }
        }
     }
-
 }
 
 void
index 08a5bbb78c8e609b11713b1280a658bd60d43ec5..78c9275a4e971bb0b2cd4443c8bd985e859fcba9 100644 (file)
@@ -47,7 +47,7 @@ Duration::get_length () const
 {
   Rational mom (1 << abs (durlog_));
 
-  if (durlog_> 0)
+  if (durlog_ > 0)
     mom = Rational (1) / mom;
 
   Rational delta = mom;
index 9396c97f9a5498765a84f7019435a68328eca26d..8cddbbbcdd81613af519564ecd283854866ea134 100644 (file)
@@ -65,7 +65,6 @@ protected:
   virtual void process_music ();
 };
 
-
 Dynamic_engraver::Dynamic_engraver ()
 {
   script_ = 0;
@@ -112,7 +111,7 @@ Dynamic_engraver::process_music ()
       if (!line_spanner_)
        {
          Music *rq = accepted_spanreqs_drul_[START];
-         line_spanner_ = make_spanner ("DynamicLineSpanner", rq ? rq->self_scm (): SCM_EOL);
+         line_spanner_ = make_spanner ("DynamicLineSpanner", rq ? rq->self_scm () : SCM_EOL);
 
          if (script_ev_)
            rq = script_ev_;
@@ -144,8 +143,8 @@ Dynamic_engraver::process_music ()
       Axis_group_interface::add_element (line_spanner_, script_);
     }
 
-  Music *stop_ev = accepted_spanreqs_drul_ [STOP] ?
-    accepted_spanreqs_drul_[STOP] : script_ev_;
+  Music *stop_ev = accepted_spanreqs_drul_ [STOP]
+    accepted_spanreqs_drul_[STOP] : script_ev_;
 
   if (accepted_spanreqs_drul_[STOP] || script_ev_)
     {
@@ -172,7 +171,6 @@ Dynamic_engraver::process_music ()
          accepted_spanreqs_drul_[STOP]->origin ()->warning (_ ("can't find start of (de)crescendo"));
          stop_ev = 0;
        }
-
     }
 
   if (accepted_spanreqs_drul_[START])
@@ -225,7 +223,6 @@ Dynamic_engraver::process_music ()
              cresc_->set_property ("grow-direction",
                                    scm_int2num ((start_type == "crescendo")
                                                 ? BIGGER : SMALLER));
-
            }
 
          /*
@@ -392,7 +389,6 @@ Dynamic_engraver::acknowledge_grob (Grob_info info)
          cresc_->set_bound (LEFT, info.grob_);
          add_bound_item (line_spanner_, cresc_->get_bound (LEFT));
        }
-
     }
   else if (Script_interface::has_interface (info.grob_) && script_)
     {
index 8466dbde7d18eb8d5783a0fe034d67a64398d90d..89d0138f9c0423f65298be4d9ee5779302a72cbf 100644 (file)
@@ -18,7 +18,6 @@
 #include "warn.hh"
 #include "paper-column.hh"
 
-
 class Dynamic_text_spanner
 {
 public:
@@ -26,7 +25,6 @@ public:
   static bool has_interface (Grob *);
 };
 
-
 /*
   This is a partial C&P from text-spanner.cc
 
index 2f204cec18a8a8cfa5f693c9ee81fa2c7d7beded..37811f925b4017d5798698cb1f64c2b70f6930b7 100644 (file)
@@ -109,7 +109,7 @@ Engraver_group_engraver::do_announces ()
            group->do_announces ();
        }
 
-      do
+      while (1)
        {
          engraver_each (get_simple_trans_list (),
                         &Engraver::process_acknowledged_grobs);
@@ -120,11 +120,8 @@ Engraver_group_engraver::do_announces ()
          acknowledge_grobs ();
          announce_infos_.clear ();
        }
-      while (1);
-
     }
   while (pending_grob_count () > 0);
-
 }
 
 void
index bfd30de8988d278d01e59c8c0bb226afada4cc52..88985792dc877ef119b6b27f0d8d63bc58e3cf20 100644 (file)
@@ -49,7 +49,6 @@ Engraver::announce_grob (Grob *e, SCM cause)
     g->announce_grob (i);
 }
 
-
 Engraver::Engraver ()
 {
 }
index bcfb63a711e9d8dc2cf2cffc25f1644599310142..59570ba4a8e3326d68d8b553ceb15b8f41bf76c3 100644 (file)
@@ -139,7 +139,6 @@ Fingering_engraver::start_translation_timestep ()
 
 Fingering_engraver::Fingering_engraver ()
 {
-
 }
 
 ADD_TRANSLATOR (Fingering_engraver,
index 6d02eab213bdc304a8014c1e55c381f60aace933..a5f7848c7f455063899787b15ba332d2fe94b7a4 100644 (file)
@@ -20,7 +20,6 @@ private:
 
 Font_size_engraver::Font_size_engraver ()
 {
-
 }
 
 void
index ba66ad8715c8489ab688b85cdd98094331671965..3d89ea5b53cd02cfd607b8d13355f865a018f333 100644 (file)
@@ -97,7 +97,7 @@ LY_DEFINE (ly_dir_p, "ly:dir?",
   if (scm_is_number (s))
     {
       int i = scm_to_int (s);
-      return (i>= -1 && i <= 1) ? SCM_BOOL_T : SCM_BOOL_F;
+      return (i >= -1 && i <= 1) ? SCM_BOOL_T : SCM_BOOL_F;
     }
   return SCM_BOOL_F;
 }
index ceafb4672cb9d9a60557fe02feee83a05dd18c49..b7afb1dab41f59e20a07c75a474f64009288f9b1 100644 (file)
@@ -81,7 +81,6 @@ Global_context::prepare (Moment m)
   clear_key_disambiguations ();
   if (get_score_context ())
     get_score_context ()->prepare (m);
-
 }
 
 Moment
@@ -122,7 +121,7 @@ Global_context::finish ()
 void
 Global_context::run_iterator_on_me (Music_iterator *iter)
 {
-  if (iter-> ok ())
+  if (iter->ok ())
     prev_mom_ = now_mom_ = iter->pending_moment ();
 
   bool first = true;
index 3c988c6e0fc2fd1f455971cabb6760746229ee36..dc6649dfb279467eed33d67a3fa5308890bd118a 100644 (file)
@@ -88,7 +88,7 @@ Gourlay_breaking::do_solve () const
   bool ragged_last = to_boolean (pscore_->layout_->c_variable ("raggedlast"));
 
   Real worst_force = 0.0;
-  for (int break_idx = 1; break_idx< breaks.size (); break_idx++)
+  for (int break_idx = 1; break_idx < breaks.size (); break_idx++)
     {
       /*
        start with a short line, add measures. At some point
@@ -186,7 +186,7 @@ Gourlay_breaking::do_solve () const
   Array<Column_x_positions> lines;
 
   /* skip 0-th element, since it is a "dummy" elt*/
-  for (int i = optimal_paths.size () - 1; i> 0;)
+  for (int i = optimal_paths.size () - 1; i > 0;)
     {
       final_breaks.push (i);
       int prev = optimal_paths[i].prev_break_;
index 96c960b1c4ad4dc7869cbdc2099c6df9149da7a8..26c6cac55896bd4f9dd94e152c7541d1eadda2fd 100644 (file)
@@ -91,18 +91,18 @@ void check_and_fix_all_prefixes (Array<Grob_info> primitives)
 
       /* compute head prefix set by inspecting primitive grob properties */
       int prefix_set
-       = (VIRGA *to_boolean (primitive->get_property ("virga"))) |
-       (STROPHA *to_boolean (primitive->get_property ("stropha"))) |
-       (INCLINATUM *to_boolean (primitive->get_property ("inclinatum"))) |
-       (AUCTUM *to_boolean (primitive->get_property ("auctum"))) |
-       (DESCENDENS *to_boolean (primitive->get_property ("descendens"))) |
-       (ASCENDENS *to_boolean (primitive->get_property ("ascendens"))) |
-       (ORISCUS *to_boolean (primitive->get_property ("oriscus"))) |
-       (QUILISMA *to_boolean (primitive->get_property ("quilisma"))) |
-       (DEMINUTUM *to_boolean (primitive->get_property ("deminutum"))) |
-       (CAVUM *to_boolean (primitive->get_property ("cavum"))) |
-       (LINEA *to_boolean (primitive->get_property ("linea"))) |
-       (PES_OR_FLEXA *to_boolean (primitive->get_property ("pes-or-flexa")));
+       = (VIRGA *to_boolean (primitive->get_property ("virga")))
+       | (STROPHA *to_boolean (primitive->get_property ("stropha")))
+       | (INCLINATUM *to_boolean (primitive->get_property ("inclinatum")))
+       | (AUCTUM *to_boolean (primitive->get_property ("auctum")))
+       | (DESCENDENS *to_boolean (primitive->get_property ("descendens")))
+       | (ASCENDENS *to_boolean (primitive->get_property ("ascendens")))
+       | (ORISCUS *to_boolean (primitive->get_property ("oriscus")))
+       | (QUILISMA *to_boolean (primitive->get_property ("quilisma")))
+       | (DEMINUTUM *to_boolean (primitive->get_property ("deminutum")))
+       | (CAVUM *to_boolean (primitive->get_property ("cavum")))
+       | (LINEA *to_boolean (primitive->get_property ("linea")))
+       (PES_OR_FLEXA *to_boolean (primitive->get_property ("pes-or-flexa")));
 
       /* check: ascendens and descendens exclude each other; same with
         auctum and deminutum */
index 6e155aa68bde961d800f28fb915dffc066c7be49..b0a255d58f9f09f97d436afb4b26a3a8b4ad1fff 100644 (file)
@@ -32,7 +32,6 @@ check_interfaces_for_property (Grob const *me, SCM sym)
        otherwise we get in a nasty recursion loop.
       */
       return;
-
     }
   SCM ifs = me->get_property ("interfaces");
 
index 6f175b9cf5127799dfe8cdcd915b4edf39acbff6..62ede1af08f6326d01948e7dd95a7501aab03907 100644 (file)
@@ -15,7 +15,6 @@ int compare (Grob_pitch_tuple const &a, Grob_pitch_tuple const &b)
   return Grob_pitch_tuple::time_compare (a, b);
 }
 
-
 Grob_pitch_tuple::Grob_pitch_tuple ()
 {
   head_ = 0;
index 94b7b8f5a69b923aef32cda317a41b7528358f8f..10644e7775c47754bc756361b31378a28538d8af 100644 (file)
@@ -11,7 +11,7 @@
 #include "grob.hh"
 #include "warn.hh"
 
-class Grob_pq_engraver: public Engraver
+class Grob_pq_engraver : public Engraver
 {
 public:
   TRANSLATOR_DECLARATIONS (Grob_pq_engraver);
index 0594582d79ad343231f0307163a0b1a58081f8d8..d127c0094dddf5a80e698095f2044e4d13335cb5 100644 (file)
@@ -123,7 +123,7 @@ Grob::Grob (Grob const &s, int copy_index)
   : dim_cache_ (s.dim_cache_)
 {
   key_ = new Copied_key (s.key_, copy_index);
-  original_ = (Grob *) &s;
+  original_ = (Grob *) & s;
   self_scm_ = SCM_EOL;
 
   immutable_property_alist_ = s.immutable_property_alist_;
@@ -241,7 +241,7 @@ Grob::get_uncached_stencil () const
        {
          SCM expr = scm_list_3 (ly_symbol2scm ("grob-cause"), self_scm (),
                                 m->expr ());
-         stil = Stencil (m->extent_box (), expr). smobbed_copy ();
+         stil = Stencil (m->extent_box (), expr).smobbed_copy ();
        }
 
       /* color support... see interpret_stencil_expression() for more... */
@@ -439,11 +439,12 @@ Grob::extent (Grob *refp, Axis a) const
 {
   Real x = relative_coordinate (refp, a);
 
-  Dimension_cache *d = (Dimension_cache *) &dim_cache_[a];
+  Dimension_cache *d = (Dimension_cache *) & dim_cache_[a];
   Interval ext;
 
   SCM dimpair = d->dimension_;
-  if (scm_is_pair (dimpair));
+  if (scm_is_pair (dimpair))
+    ;
   else if (ly_c_procedure_p (d->dimension_callback_)
           && d->dimension_ == SCM_EOL)
     d->dimension_ = scm_call_2 (d->dimension_callback_, self_scm (), scm_int2num (a));
@@ -599,7 +600,7 @@ Grob::fixup_refpoint (SCM smob)
          if (parenti && i)
            {
              Direction my_dir = i->break_status_dir ();
-             if (my_dir!= parenti->break_status_dir ())
+             if (my_dir != parenti->break_status_dir ())
                {
                  Item *newparent = parenti->find_prebroken_piece (my_dir);
                  me->set_parent (newparent, ax);
index b3e5c6edce0d9889a25f2b0f48a4d124a1a43b80..2c7368fa5724cb4e8d5bebc449d9d2b5cba453a7 100644 (file)
@@ -65,7 +65,7 @@ Hairpin::print (SCM smob)
            {
              Interval e = b->extent (common, X_AXIS);
              if (!e.is_empty ())
-               x_points[d] = e[-d] - d*padding;
+               x_points[d] = e[-d] - d * padding;
            }
          else
            {
index c3b4d5cd98002ae5ba6a2a0d1b8129d031d852fd..6ff6f4a95c1dcaed88748939523e8444255775fc 100644 (file)
@@ -83,7 +83,6 @@ Hara_kiri_group_spanner::add_element (Grob *me, Grob *e)
   Axis_group_interface::add_element (me, e);
 }
 
-
 void
 Hara_kiri_group_spanner::add_interesting_item (Grob *me, Grob *n)
 {
index aa647816ba989e5d9073a2249b6a1d298a23f660..cbd8d1a2a7e0bffd05f3c647bc7520b3ad124be4 100644 (file)
@@ -28,10 +28,8 @@ protected:
   virtual void stop_translation_timestep ();
   virtual void process_music ();
 private:
-
 };
 
-
 Hyphen_engraver::Hyphen_engraver ()
 {
   hyphen_ = 0;
@@ -138,7 +136,6 @@ Hyphen_engraver::stop_translation_timestep ()
   ev_ = 0;
 }
 
-
 ADD_TRANSLATOR (Hyphen_engraver,
                /* descr */ "Create lyric hyphens",
                /* creats*/ "LyricHyphen",
index 7db3cbcf374fa1cb205518b9ecacd8b0da38b5b7..3f815e946127cacd609500fe15d7594cf92e2f13 100644 (file)
@@ -40,7 +40,7 @@ protected:
   AFM_CharMetricInfo const *find_ascii_metric (int) const;
 
   Array<int> ascii_to_metric_idx_;
-  std::map < String, int> name_to_metric_dict_;
+  std::map<String, int> name_to_metric_dict_;
 
   Adobe_font_metric (AFM_Font_info *);
 };
index 1ab00fd9158a2847b7b9310999b13c501efdbf19..44ac8c2378d948ec080e2ff1a67032990a5b0db6 100644 (file)
@@ -24,7 +24,7 @@ public:
 
 private:
   Audio_item (Audio_item const &);
-  Audio_item &operator= (Audio_item const &);
+  Audio_item &operator = (Audio_item const &);
 };
 
 class Audio_dynamic : public Audio_item
index 6792372c0984564677ef8446790597dc80a585fd..bcc5e7819cef4b03a22ae62c9cd2787b8858ee59 100644 (file)
@@ -23,7 +23,6 @@ struct Axis_group_interface
   static bool has_axis (Grob *, Axis);
   static Link_array<Grob> get_children (Grob *);
   static bool has_interface (Grob *);
-
 };
 
 #endif /* AXIS_GROUP_INTERFACE_HH */
index a564dbeb1f190e622829f69dae6784cef4cb75ea..eb2199b33be1edb5069248a670e08cf6be0684af 100644 (file)
@@ -40,9 +40,9 @@ public:
   Offset control_[4];
 };
 
-void scale (Array<Offset>array, Real xscale, Real yscale);
-void rotate (Array<Offset>array, Real phi);
-void translate (Array<Offset>array, Offset o);
+void scale (Array<Offset> *array, Real xscale, Real yscale);
+void rotate (Array<Offset> *array, Real phi);
+void translate (Array<Offset> *array, Offset o);
 
 Bezier slur_shape (Real width, Real height_limit,
                   Real height_proportion);
index 85173e0b5277ed15190661e8a7318457e0e42568..fc8eda7bec01e5b3dd8bd98f2d71ade0397443c6 100644 (file)
@@ -16,8 +16,8 @@ struct Box
   Interval &y (){ return interval_a_[Y_AXIS]; }
   Interval x () const{ return interval_a_[X_AXIS]; }
   Interval y () const{return interval_a_[Y_AXIS]; }
-  Interval operator[] (Axis a) const;
-  Interval &operator[] (Axis a);
+  Interval operator [] (Axis a) const;
+  Interval &operator [] (Axis a);
 
   Offset center () const;
 
index 96aec1122d0d6695e62561d4901be59e8f805505..8ab57760f660ae414d10b1f88d967ea33770e937 100644 (file)
@@ -20,7 +20,6 @@ public:
   static void add_element (Grob *me, Grob *add);
   DECLARE_SCHEME_CALLBACK (alignment_callback, (SCM element, SCM axis));
   DECLARE_SCHEME_CALLBACK (self_align_callback, (SCM element, SCM axis));
-
 };
 struct Break_aligned_interface
 {
index 0981bc536a4ec49c07a69e2004cc406ece50a24e..e17af62e1e2fa5975b34c7ff90b34bf13374833c 100644 (file)
@@ -28,8 +28,8 @@ private:
   int iterator_count_;
   bool init_;
 
-  std::map < String, int> grob_counts_;
-  std::map < String, int> context_counts_;
+  std::map<String, int> grob_counts_;
+  std::map<String, int> context_counts_;
 
 protected:
   Object_key const *key_;
@@ -91,7 +91,6 @@ public:
                                  SCM ops);
   Link_array<Context> path_to_acceptable_context (SCM alias,
                                                  Output_def *) const;
-
 };
 
 /*
index 5c706e8154a87269d18b8bded4e41acb45a706bf..fe2f13bdd2a4213c7d0fea95a19ae77eb061f91e 100644 (file)
@@ -22,7 +22,6 @@ struct Custos
 private:
   static void add_streepjes (Grob *me, int pos, int interspaces, Stencil *custos_);
   static Stencil create_ledger_line (Interval x_extent, Grob *me);
-
 };
 
 #endif // CUSTOS_HH
index 7d58562c3a20f949769e4b1a2bc886280ed2d457..63b126eabfdce6a1a2955e54535b1916f36f5e65 100644 (file)
@@ -31,7 +31,7 @@ private:
   virtual void acknowledge_grobs ();
 };
 
-typedef void (Engraver::*Engraver_method) (void);
+typedef void (Engraver:: *Engraver_method) (void);
 
 void engraver_each (SCM list, Engraver_method method);
 
index 3a44301b3ebc23a7afe19650655ffe3cd8f79a03..8031efebcb85c0004f0d0b906ba5de1b5caf13af 100644 (file)
@@ -57,5 +57,4 @@ public:
 Item *make_item_from_properties (Engraver *tg, SCM x, SCM cause, const char *name);
 Spanner *make_spanner_from_properties (Engraver *tg, SCM x, SCM cause, const char *name);
 
-
 #endif // ENGRAVER_HH
index 6878eb4e613053165a4d36adeb752bfaed216936..41d24d204175ebefac40e88b0226a5aedab5fa5e 100644 (file)
@@ -24,5 +24,4 @@ public:
   DECLARE_SCHEME_CALLBACK (length_callback, (SCM));
 };
 
-
 #endif
index 6511dc7565c5e43a87277c2a1d9ee064294f278f..9f46a06e1d87d2903bdc15696017ddbaa675a32b 100644 (file)
@@ -26,7 +26,7 @@ enum Grob_status
     POSTCALCED, // after spacing calcs done
   };
 
-typedef void (Grob::*Grob_method_pointer) (void);
+typedef void (Grob:: *Grob_method_pointer) (void);
 
 // looking at gtk+/pango docstrings .. WIP
 
index 55e541755da5cf7b3d46bccf95e85dbf2040d449..c8c0938e307c992192ce2d5cf19c014ed5af4647 100644 (file)
@@ -35,6 +35,5 @@ public:
 Link_array<Grob> extract_grob_array (Grob const *elt, SCM symbol);
 Link_array<Item> extract_item_array (Grob const *elt, SCM symbol);
 
-
 #endif /* GROUP_INTERFACE_HH */
 
index 86928e632463f286a1f9751ed6dd699dd0857b17..83b11c9cf2ffa885999ac657303ce345be7d501d 100644 (file)
@@ -22,7 +22,7 @@ public:
 
   void set_context (Context *);
   bool try_music (Music *);
-  void operator= (Interpretation_context_handle const &);
+  void operator = (Interpretation_context_handle const &);
   Interpretation_context_handle (Interpretation_context_handle const &);
   Context *get_outlet () const;
 
index 5bf69473ec94b1c974f73244b09ca196c00ff5fe..2138038481f9262fe2fbe49e2206bf5b14a172a1 100644 (file)
@@ -84,13 +84,13 @@ inline SCM ly_symbol2scm (char const *x) { return scm_str2symbol ((x)); }
   Make TYPE::FUNC available as a Scheme function.
 */
 #define MAKE_SCHEME_CALLBACK(TYPE, FUNC, ARGCOUNT)                     \
-  SCM TYPE :: FUNC ## _proc;                                           \
+  SCM TYPE ::FUNC ## _proc;                                            \
   void                                                                 \
   TYPE ## _ ## FUNC ## _init_functions ()                              \
   {                                                                    \
-    TYPE :: FUNC ## _proc = scm_c_define_gsubr (#TYPE "::" #FUNC,      \
-                                               (ARGCOUNT), 0, 0,       \
-                                               (Scheme_function_unknown)TYPE :: FUNC); \
+    TYPE ::FUNC ## _proc = scm_c_define_gsubr (#TYPE "::" #FUNC,       \
+                                              (ARGCOUNT), 0, 0,        \
+                                              (Scheme_function_unknown)TYPE ::FUNC); \
     scm_c_export (#TYPE "::" #FUNC, NULL);                             \
   }                                                                    \
                                                                        \
index c71d7c53ee7ff34f35ac19e2176a498e1339d9bd..9aa20c071cba8726f7d106ae795eb0f7ede10c43 100644 (file)
@@ -10,7 +10,6 @@
 #define LILY_PROTO_HH
 #include "flower-proto.hh"
 
-
 class Adobe_font_metric;
 class All_font_metrics;
 class Audio_column;
index c4512f82ec1ae14470e069bea51aec1687639a3e..6387feb38377af63d7599acb2f808aa171eb26de 100644 (file)
@@ -19,9 +19,9 @@ struct Midi_stream
   Midi_stream (String file_name_string);
   ~Midi_stream ();
 
-  Midi_stream &operator<< (String str);
-  Midi_stream &operator<< (Midi_item const &midi_c_r);
-  Midi_stream &operator<< (int i);
+  Midi_stream &operator << (String str);
+  Midi_stream &operator << (Midi_item const &midi_c_r);
+  Midi_stream &operator << (int i);
 
   void open ();
 
index 5f9e9e602f9db967a57f1a7ff34c5221e2fff2b3..138b47dbb3de94e6a56e8ab7b43cdee3e9c28230 100644 (file)
@@ -12,7 +12,7 @@
 #include "lily-proto.hh"
 #include "moment.hh"
 
-struct Midi_note_event : PQueue_ent < Moment, Midi_note *>
+struct Midi_note_event : PQueue_ent<Moment, Midi_note *>
 {
   bool ignore_b_;
   Midi_note_event ();
@@ -30,7 +30,7 @@ public:
   ~Midi_walker ();
 
   void process ();
-  void operator++ (int);
+  void operator ++ (int);
   bool ok () const;
 
 private:
@@ -41,7 +41,7 @@ private:
   Midi_track *track_;
   Audio_staff *staff_;
   int index_;
-  Link_array<Audio_item> * items_;
+  Link_array<Audio_item> *items_;
   PQueue<Midi_note_event> stop_note_queue;
   Moment last_mom_;
 };
index e7f5499646822e05278d124b3a58ca0022556b20..2192680b89e7534c1fb5c35a7ef4d76e9d07a4bf 100644 (file)
@@ -26,13 +26,13 @@ public:
   Moment (Rational, Rational);
   Moment (Rational m);
 
-  Moment operator- () const;
+  Moment operator - () const;
 
-  void operator+= (Moment const &m);
-  void operator-= (Moment const &m);
+  void operator += (Moment const &m);
+  void operator -= (Moment const &m);
 
-  void operator*= (Moment const &m);
-  void operator/= (Moment const &m);
+  void operator *= (Moment const &m);
+  void operator /= (Moment const &m);
 
   Rational main_part_;
   Rational grace_part_;
@@ -61,7 +61,7 @@ INSTANTIATE_COMPARE (Moment const &, Moment::compare);
 Moment robust_scm2moment (SCM, Moment);
 
 #ifdef STREAM_SUPPORT
-std::ostream & operator<< (std::ostream &, Moment const &);
+std::ostream &operator << (std::ostream &, Moment const &);
 #endif
 
 bool moment_less (SCM a, SCM b);
index efeb4332327e4863e2612232b9e248f01a86b18f..aad0123ddcc68b5b35da5cdf1e5f62a3b6b421a0 100644 (file)
@@ -21,7 +21,7 @@
   }                                                                    \
   static void _ ## type ## _adder ()                                   \
   {                                                                    \
-    add_music_ctor (#type, & _ ## type ## _ctor);                      \
+    add_music_ctor (#type, &_ ## type ## _ctor);                       \
   }                                                                    \
   ADD_SCM_INIT_FUNC (_ ## type ## _adder_prefix, _ ## type ## _adder);
 
@@ -29,6 +29,5 @@ typedef Music *(*Music_ctor) (SCM);
 void add_music_ctor (String, Music_ctor);
 Music *make_music (String, SCM);
 
-
 #endif /* MUSIC_CONSTRUCTOR_HH */
 
index de6d4dd290b69374d4a8f1da90967d435db75106..8a0a5ec79e90c3f28a83122c2af3518bdb1e7230 100644 (file)
 class Note_collision_interface
 {
 public:
-  static SCM automatic_shift (Grob *, Drul_array< Link_array<Grob> >);
+  static SCM automatic_shift (Grob *, Drul_array<Link_array<Grob> >);
   static SCM forced_shift (Grob *);
 
-  static Drul_array< Link_array<Grob> > get_clash_groups (Grob *me);
+  static Drul_array<Link_array<Grob> > get_clash_groups (Grob *me);
   DECLARE_SCHEME_CALLBACK (force_shift_callback, (SCM element, SCM axis));
   static void do_shifts (Grob *);
   static void add_column (Grob *me, Grob *ncol);
index ad7507a04e4ccd393b2bc2cc2b590bf455d239c6..457b273c44fba5cab088f1357001977dd74129b2 100644 (file)
@@ -13,9 +13,9 @@
 
 #include "object-key.hh"
 
-typedef std::map < Object_key const *, Object_key const *, Object_key_less> Key_to_key_map;
-typedef std::map < Object_key const *, int> Pointer_to_int_map;
-typedef std::map < int, Object_key const *> Int_to_key_map;
+typedef std::map<Object_key const *, Object_key const *, Object_key_less> Key_to_key_map;
+typedef std::map<Object_key const *, int> Pointer_to_int_map;
+typedef std::map<int, Object_key const *> Int_to_key_map;
 
 class Object_key_dumper
 {
index e74976a898e54873eed9d85ce82b9e65098c0b8f..02d98aab1a95ba57b3b3c709bf5bcace3950f4a6 100644 (file)
@@ -12,7 +12,7 @@
 #include <map>
 #include "object-key.hh"
 
-typedef std::map < int, Object_key const *> Int_to_key_map;
+typedef std::map<int, Object_key const *> Int_to_key_map;
 
 struct Object_key_undumper
 {
index d8ebf33eb6eb023f80966688a2602fe7fd1c2461..d6420eb1ba3645acc55d41c503b6b7426d517718 100644 (file)
@@ -66,7 +66,7 @@ DECLARE_UNSMOB (Object_key, key);
 
 struct Object_key_less
 {
-  bool operator() (Object_key const *const &t1, Object_key const *const &t2) const
+  bool operator () (Object_key const *const &t1, Object_key const *const &t2) const
   {
     return t1->compare (t2);
   }
index b58f6dcf895f45dd6ea8b1c9213f2f9433a13e7f..eea62045271fad1f80eac8eba23bb789d402c7b7 100644 (file)
@@ -13,7 +13,7 @@
 #include "freetype.hh"
 #include "font-metric.hh"
 
-typedef std::map < FT_UInt, FT_ULong> Index_to_charcode_map;
+typedef std::map<FT_UInt, FT_ULong> Index_to_charcode_map;
 Index_to_charcode_map make_index_to_charcode_map (FT_Face face);
 
 class Open_type_font : public Font_metric
index f2e4d449226320cd0cbe95e297db18efa6b03152..52939cf9ea4f948a66a91f72fdf36849dccb4345 100644 (file)
@@ -11,7 +11,7 @@
 #include "performer.hh"
 #include "translator-group.hh"
 
-typedef void (Performer::*Performer_method) (void);
+typedef void (Performer:: *Performer_method) (void);
 
 class Performer_group_performer : public Performer, public virtual Translator_group
 {
index 6c36392a9df1218b93a16e1cefb36481e439361d..f47d142bc0fc68a09796a00d9adb092c8e6446ac 100644 (file)
@@ -82,7 +82,7 @@ DECLARE_UNSMOB (Pitch, pitch);
 
 INSTANTIATE_COMPARE (Pitch, Pitch::compare);
 
-int compare (Array<Pitch>*, Array<Pitch>*);
+int compare (Array<Pitch> *, Array<Pitch> *);
 extern SCM pitch_less_proc;
 Pitch pitch_interval (Pitch const &from, Pitch const &to);
 
index 81c480422956b774dc8e23f754a810b767191b08..df24350c05b7e360c255e4f09014ed7805d8ce51 100644 (file)
@@ -11,7 +11,6 @@
 
 #include "simple-music-iterator.hh"
 
-
 /**
    Iterate a property.
 */
@@ -26,7 +25,6 @@ protected:
   virtual void process (Moment);
 };
 
-
 /**
    Iterate a property.
 */
index 0bb88dd2376d539c23076c0533aee3701aefc8ab..8b64ee009c277e11d0022a3b47ba272c6867c0fd 100644 (file)
@@ -22,8 +22,8 @@ public:
   Protected_scm (SCM);
   Protected_scm (Protected_scm const &);
   ~Protected_scm ();
-  Protected_scm &operator= (SCM);
-  Protected_scm &operator= (Protected_scm const &);
+  Protected_scm &operator = (SCM);
+  Protected_scm &operator = (Protected_scm const &);
   operator SCM () const;
   SCM to_SCM () const;
 };
index a0897dff64b48bead63f87bdadd0035e528f7582..f37fc1e97f88cbf6090fe201679053ba762b844d 100644 (file)
@@ -12,7 +12,6 @@
 #include "lily-proto.hh"
 #include "lily-guile.hh"
 
-
 class Rest_collision
 {
 public:
index 10b69b3ef95417e7f32e2fa9e3166c9f141a488b..2f46f76d0479d75a7a690646ae893ca03c194ddb 100644 (file)
@@ -22,7 +22,6 @@ public:
   static int dot_count (Grob *);
   DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));
   static bool has_interface (Grob *);
-
 };
 
 #endif // RHYTHMIC_HEAD_HH
index 8dd635f67dbe78a54a88c178ed98a6174808d495..368e80693670b8f32195a16ef4b36f5ac90ba00b 100644 (file)
@@ -45,7 +45,7 @@ public:
   SCM get (SCM k) const;
   void remove (SCM k);
   Scheme_hash_table ();
-  void operator= (Scheme_hash_table const &);
+  void operator = (Scheme_hash_table const &);
   Scheme_hash_table (Scheme_hash_table const &);
 
   SCM to_alist () const;
index 0bbb6625663f81dbad05a4def57dde9ffebfabe3..5017d0ed61d5daa8dbd8160d198e123d02af78eb 100644 (file)
@@ -18,7 +18,6 @@ public:
   static void add_staff_sided (Grob *, Item *);
   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
   static bool has_interface (Grob *);
-
 };
 
 #endif /* Script_COLUMN_HH */
index b1e6d45c2931b7b4061a77b44ac34e5530f49092..c3e5c277a7a781e5a6cdf2a5a67b2643d7232a62 100644 (file)
@@ -47,7 +47,6 @@ private:
   Moment here_mom_;
   SCM cursor_;
   Grace_fixup *grace_fixups_;
-
 };
 
 #endif /* SEQUENTIAL_ITERATOR_HH */
index 759bb78425b5e22149d626aba5c489bcf1e8bae0..faf8e5c66ba2479837b31994804b8e9d28879373 100644 (file)
@@ -33,7 +33,7 @@ public:
 
   char const *to_str0 () const;
   virtual String error_string (char const *pos_str0) const;
-  std::istream * get_istream ();
+  std::istream *get_istream ();
   bool contains (char const *pos_str0) const;
   int length () const;
   virtual int get_line (char const *pos_str0) const;
@@ -67,7 +67,7 @@ public:
 
 private:
   Link_array<char> newline_locations_;
-  std::istreamistream_;
+  std::istream *istream_;
   char *contents_str0_;
   int length_;
   void load_stdin ();
index 5e67b668b26988d32f10cdc00e9737e279972905..18d6f496801ab23a33f4fe67bbf62f9075f9bb37 100644 (file)
@@ -26,6 +26,5 @@ public:
   static int line_count (Grob *);
   DECLARE_SCHEME_CALLBACK (print, (SCM));
   static bool has_interface (Grob *);
-
 };
 #endif // STAFF_SYMBOL_HH
index 4c826d162e68331aef059a0baa414a9760ae7d80..a42a5601e6da97aa12d507ec92e288d8a063e73a 100644 (file)
@@ -26,8 +26,8 @@ private:
   void read_char_metrics ();
   Tex_font_char_metric read_char_metric (Char_code code);
   Tex_font_char_metric read_char ();
-  void read_lig_kern_program (Array<Tfm_ligature>ligatures,
-                             Array<Tfm_kern>kerns);
+  void read_lig_kern_program (Array<Tfm_ligature> *ligatures,
+                             Array<Tfm_kern> *kerns);
 
   Binary_source_file input_;
 
index e31766ad2e5caf6859acd18b68c069fd153c5a9b..ad4af88a55ecd14a44682be331652d5a43a2c4f4 100644 (file)
@@ -12,7 +12,7 @@
 #include "translator.hh"
 #include "parray.hh"
 
-typedef void (Translator::*Translator_method) (void);
+typedef void (Translator:: *Translator_method) (void);
 
 class Translator_group : public virtual Translator
 {
index 6173536b463a33def48fcd20fbeb6f0b1eb0f16a..7d965e4b5a4631517184f7b6a56343356d993131 100644 (file)
@@ -90,7 +90,6 @@ protected:                    // should be private.
   }                                                                    \
   ADD_GLOBAL_CTOR (_ ## T ## _adder);
 
-
 #define ADD_TRANSLATOR(classname, desc, grobs, accepted, acked, read, write) \
   ADD_THIS_TRANSLATOR (classname);                                     \
   SCM                                                                  \
index 77a154c69508b955e7ce1ec71119655d9a432bd7..ea52b1e41b61e11de52013ff2a8ac831b12976b9 100644 (file)
@@ -14,7 +14,7 @@
 #include "lily-proto.hh"
 #include "object-key.hh"
 
-typedef std::map < Object_key const *, SCM, Object_key_less> Tweak_map;
+typedef std::map<Object_key const *, SCM, Object_key_less> Tweak_map;
 
 class Tweak_registry
 {
index 83b9506c2fa35e5fc9c6c6b6bf58b8e35ea9035b..700bef1f56f8d967d0d831823c5b5a6056f19d93 100644 (file)
@@ -28,7 +28,7 @@ public:
   {                                                                    \
     TRANSLATOR_DECLARATIONS (TYPE ## _swallow_translator);             \
   };                                                                   \
-  TYPE ## _swallow_translator :: TYPE ## _swallow_translator ()                \
+  TYPE ## _swallow_translator ::TYPE ## _swallow_translator ()         \
   {                                                                    \
     swallow_string_ = #TYPE;                                           \
   }                                                                    \
index f833937a18e594227bef88be0e4615abb0f4abc1..a051da38c3c79ea5b09c996dde28495d1d1b9e19 100644 (file)
@@ -148,7 +148,6 @@ Input::line_number () const
     return source_file_->get_line (start_);
   else
     return 0;
-
 }
 
 int
@@ -158,7 +157,6 @@ Input::column_number () const
     return source_file_->get_column (start_);
   else
     return 0;
-
 }
 
 int
@@ -168,7 +166,6 @@ Input::end_line_number () const
     return source_file_->get_line (end_);
   else
     return 0;
-
 }
 
 int
@@ -178,5 +175,4 @@ Input::end_column_number () const
     return source_file_->get_column (end_);
   else
     return 0;
-
 }
index 1ae35630c6a5b12661c227c03f7a37e20b48be52..2a20e73fce8531c4cb90bbd05ab0a4269532fded 100644 (file)
@@ -73,7 +73,6 @@ Instrument_name_engraver::create_text ()
 
   if (text_->get_property ("text") != txt)
     text_->set_property ("text", txt);
-
 }
 
 void
@@ -168,7 +167,6 @@ Vocal_name_engraver::create_text ()
 
   if (text_->get_property ("text") != txt)
     text_->set_property ("text", txt);
-
 }
 
 ADD_TRANSLATOR (Vocal_name_engraver,
index e94b5bc26762862fd4e38a8a4406bfc5c590b690..369d4f5178849b53fc00673d6ce15216fbf751ed 100644 (file)
@@ -24,7 +24,7 @@ Item::clone (int count) const
 Item::Item (SCM s, Object_key const *key)
   : Grob (s, key)
 {
-  broken_to_drul_[LEFT] = broken_to_drul_[RIGHT]= 0;
+  broken_to_drul_[LEFT] = broken_to_drul_[RIGHT] = 0;
   Group_interface::add_thing (this, ly_symbol2scm ("interfaces"), ly_symbol2scm ("item-interface"));
 }
 
@@ -78,6 +78,7 @@ Item::copy_breakable_items ()
       new_copies[i] = item;
     }
   while (flip (&i) != LEFT);
+
   broken_to_drul_ = new_copies;
 }
 
index 3f5d722c0ba0282222a4b3e6646bdc8456ffe60f..8a178f02b0d8849202b48db9659c667f79c7156b 100644 (file)
@@ -73,7 +73,6 @@ Key_engraver::create_key (bool def)
          cancellation_->set_property ("old-accidentals", last);
          cancellation_->set_property ("c0-position",
                                       get_property ("middleCPosition"));
-
        }
       item_->set_property ("new-accidentals", key);
     }
@@ -178,7 +177,6 @@ Key_engraver::initialize ()
 
   Pitch p (0, 0, 0);
   context ()->set_property ("tonic", p.smobbed_copy ());
-
 }
 
 ADD_TRANSLATOR (Key_engraver,
index 9d776d9dced43db842e25da46195bd647437b660..375bac59b323a982f55c12b79d8a61395e28c285 100644 (file)
@@ -25,15 +25,14 @@ struct Key_signature_interface
 /*
   FIXME: too much hardcoding here.
 */
-const int FLAT_TOP_PITCH =2; /* fes, ges, as and bes typeset in lower octave */
-const int SHARP_TOP_PITCH =4; /*  ais and bis typeset in lower octave */
+const int FLAT_TOP_PITCH = 2; /* fes, ges, as and bes typeset in lower octave */
+const int SHARP_TOP_PITCH = 4; /*  ais and bis typeset in lower octave */
 
 /*
   TODO: look this up. I'm not sure where the naturals ought to go.
 */
 const int NATURAL_TOP_PITCH = 4;
 
-
 /*
   FIXME: key-item should just get a list of (position, acc), and leave
   the thinking to other parties.
@@ -56,8 +55,8 @@ alteration_pos (SCM what, int alter, int c0p)
   from_bottom_pos = (from_bottom_pos + 7)%7; // Precaution to get positive.
   int c0 = from_bottom_pos - 4;
 
-  if ((alter <0 && ((p > FLAT_TOP_PITCH) || (p + c0 > 4)) && (p + c0 > 1))
-      || (alter >0 && ((p > SHARP_TOP_PITCH) || (p + c0 > 5)) && (p + c0 > 2))
+  if ((alter < 0 && ((p > FLAT_TOP_PITCH) || (p + c0 > 4)) && (p + c0 > 1))
+      || (alter > 0 && ((p > SHARP_TOP_PITCH) || (p + c0 > 5)) && (p + c0 > 2))
       || (alter == 0 && ((p > NATURAL_TOP_PITCH) || (p + c0 > 5)) && (p + c0 > 2)))
     {
       p -= 7; /* Typeset below c_position */
@@ -67,7 +66,7 @@ alteration_pos (SCM what, int alter, int c0p)
      it's a hack, but probably not worth
      the effort of finding a nicer solution.
      --dl. */
-  if (c0 == 2 && alter >0 && p ==3)
+  if (c0 == 2 && alter > 0 && p == 3)
     p -= 7;
   if (c0==-3 && alter > 0 && p ==-1)
     p += 7;
@@ -158,7 +157,7 @@ Key_signature_interface::print (SCM smob)
              int pos = alteration_pos (what, alteration, c0p);
 
              Stencil m = natural;
-             m.translate_axis (pos* inter, Y_AXIS);
+             m.translate_axis (pos * inter, Y_AXIS);
 
              /*
                The natural sign (unlike flat & sharp)
@@ -167,7 +166,7 @@ Key_signature_interface::print (SCM smob)
              */
              Real padding = 0.0;
              if (last_pos < pos + 2
-                 && last_pos> pos - 6)
+                 && last_pos > pos - 6)
                padding = 0.3;
 
              mol.add_at_edge (X_AXIS, LEFT, m, padding, 0);
index e7f6b3058499bac455b5d39559a11e885d2ad591..f6d70478ce324920a8dfb4c3c430ba3ed62fa173 100644 (file)
@@ -42,7 +42,7 @@ minimise_least_squares (Real *coef, Real *offset,
     }
   else
     {
-      *coef = (N *sxy - sx*sy) / den;
+      *coef = (N *sxy - sx * sy) / den;
       *offset = (sy - (*coef) * sx) / N;
     }
 }
index ab591ac4c11b7229dcdba739b31c9f3868578dce..53da1d9463cd4219c36270a592edf2078c8cef88 100644 (file)
@@ -48,8 +48,8 @@ Ledger_line_spanner::brew_ledger_lines (Grob *staff,
     {
       Real blotdiameter = ledgerlinethickness;
       Interval y_extent
-       = Interval (-0.5* (ledgerlinethickness),
-                   +0.5* (ledgerlinethickness));
+       = Interval (-0.5 * (ledgerlinethickness),
+                   +0.5 * (ledgerlinethickness));
       Stencil proto_ledger_line
        = Lookup::round_filled_box (Box (x_extent, y_extent), blotdiameter);
 
@@ -76,7 +76,6 @@ Ledger_line_spanner::brew_ledger_lines (Grob *staff,
   return stencil;
 }
 
-
 static void
 set_rods (Drul_array<Interval> const &current_extents,
          Drul_array<Interval> const &previous_extents,
@@ -95,7 +94,7 @@ set_rods (Drul_array<Interval> const &current_extents,
 
          Rod rod;
          rod.distance_ = total_head_length
-           * (3/2 * min_length_fraction)
+           * (3 / 2 * min_length_fraction)
            /*
              we go from right to left.
            */
@@ -106,12 +105,10 @@ set_rods (Drul_array<Interval> const &current_extents,
          rod.item_drul_[RIGHT] = previous_column;
          rod.add_to_cols ();
        }
-
     }
   while (flip (&d) != DOWN);
 }
 
-
 MAKE_SCHEME_CALLBACK (Ledger_line_spanner, set_spacing_rods, 1);
 SCM
 Ledger_line_spanner::set_spacing_rods (SCM smob)
@@ -125,11 +122,9 @@ Ledger_line_spanner::set_spacing_rods (SCM smob)
 
   SCM heads = me->get_property ("note-heads");
 
-
   Real min_length_fraction
     = robust_scm2double (me->get_property ("minimum-length-fraction"), 0.15);
 
-
   Drul_array<Interval> current_extents;
   Drul_array<Interval> previous_extents;
   Item *previous_column = 0;
@@ -143,27 +138,26 @@ Ledger_line_spanner::set_spacing_rods (SCM smob)
   for (SCM hp = heads; scm_is_pair (hp); hp = scm_cdr (hp))
     {
       Item *h = dynamic_cast<Item *> (unsmob_grob (scm_car (hp)));
-      
+
       int pos = Staff_symbol_referencer::get_rounded_position (h);
       if (abs (pos) <= interspaces)
        continue;
-      
+
       Item *column = h->get_column ();
       if (current_column != column)
        {
          set_rods (current_extents, previous_extents,
                    current_column, previous_column,
                    min_length_fraction);
-         
+
          previous_column = current_column;
          current_column = column;
          previous_extents = current_extents;
-         
-         current_extents[DOWN].set_empty();
-         current_extents[UP].set_empty();
+
+         current_extents[DOWN].set_empty ();
+         current_extents[UP].set_empty ();
        }
-      
-      
+
       Interval head_extent = h->extent (column, X_AXIS);
       Direction vdir = Direction (sign (pos));
       if (!vdir)
@@ -177,8 +171,6 @@ Ledger_line_spanner::set_spacing_rods (SCM smob)
              current_column, previous_column,
              min_length_fraction);
 
-  
-  
   return SCM_UNSPECIFIED;
 }
 
@@ -201,7 +193,6 @@ typedef std::map < int, Drul_array<Ledger_request> > Ledger_requests;
 /*
   TODO: ledger share a lot of info. Lots of room to optimize away
   common use of objects/variables.
-
 */
 MAKE_SCHEME_CALLBACK (Ledger_line_spanner, print, 1);
 SCM
@@ -255,7 +246,7 @@ Ledger_line_spanner::print (SCM smob)
          reqs[rank][vdir].ledger_extent_.unite (ledger_extent);
          reqs[rank][vdir].head_extent_.unite (head_extent);
          reqs[rank][vdir].position_
-           = vdir * ((vdir* reqs[rank][vdir].position_) >? (vdir *pos));
+           = vdir * ((vdir * reqs[rank][vdir].position_) >? (vdir * pos));
        }
     }
 
@@ -283,14 +274,14 @@ Ledger_line_spanner::print (SCM smob)
              Direction which = LEFT;
              do
                {
-                 Ledger_request &lr = ((which == LEFT) ? *last : *i).second[d];
+                 Ledger_request &lr = ((which == LEFT) ? * last : *i).second[d];
 
                  // due tilt of quarter note-heads
                  bool both
                    = (abs (last->second[d].position_) > interspaces + 1
                       && abs (i->second[d].position_) > interspaces + 1);
 
-                 Real limit = (center + (both? which * gap / 2 : 0));
+                 Real limit = (center + (both ? which * gap / 2 : 0));
                  lr.ledger_extent_.elem_ref (-which)
                    = which * (which * lr.ledger_extent_[-which] >? which * limit);
                }
@@ -313,7 +304,7 @@ Ledger_line_spanner::print (SCM smob)
        {
          Interval head_size = h->extent (common[X_AXIS], X_AXIS);
          Interval ledger_size = head_size;
-         ledger_size.widen (ledger_size.length ()* length_fraction);
+         ledger_size.widen (ledger_size.length () * length_fraction);
 
          Interval max_size = reqs[Paper_column::get_rank (h->get_column ())][Direction (sign (pos))].ledger_extent_;
 
@@ -333,7 +324,6 @@ Ledger_line_spanner::print (SCM smob)
                TODO: shorten 2 ledger lines for the case natural +
                downstem.
              */
-
            }
 
          ledgers.add_stencil (brew_ledger_lines (staff, pos, interspaces,
index 0547aef254ed2e98b70533d5ac5586feee71beaa..55f5de5a239ae1038e4737bbb78ca0395268b9e6 100644 (file)
@@ -229,7 +229,7 @@ is_direction (SCM s)
   if (scm_is_number (s))
     {
       int i = scm_to_int (s);
-      return i>= -1 && i <= 1;
+      return i >= -1 && i <= 1;
     }
   return false;
 }
@@ -595,7 +595,6 @@ ly_split_list (SCM s, SCM list)
       before = scm_cons (i, before);
     }
   return scm_cons (scm_reverse_x (before, SCM_EOL), after);
-
 }
 
 void
@@ -659,8 +658,8 @@ Interval
 robust_scm2interval (SCM k, Drul_array<Real> v)
 {
   Interval i;
-  i[LEFT]= v[LEFT];
-  i[RIGHT]= v[RIGHT];
+  i[LEFT] = v[LEFT];
+  i[RIGHT] = v[RIGHT];
   if (is_number_pair (k))
     i = ly_scm2interval (k);
   return i;
index af4a521880688684769b3cf576a4f37ca6080084..6d96a33add41a180a8ce475b646ccfec94ca7cc3 100644 (file)
@@ -29,7 +29,7 @@ Lilypond_grob_key::derived_mark () const
 int
 Lilypond_grob_key::do_compare (Object_key const *key) const
 {
-  Lilypond_grob_key const *other = dynamic_cast < Lilypond_grob_key const *> (key);
+  Lilypond_grob_key const *other = dynamic_cast<Lilypond_grob_key const *> (key);
   int c;
 
   c = context_->compare (other->context_);
@@ -101,7 +101,7 @@ int
 Lilypond_context_key::do_compare (Object_key const *key) const
 {
   Lilypond_context_key const *other
-    = dynamic_cast < Lilypond_context_key const *> (key);
+    = dynamic_cast<Lilypond_context_key const *> (key);
 
   int c;
   if (parent_context_ && other->parent_context_)
@@ -188,7 +188,7 @@ int
 Lilypond_general_key::do_compare (Object_key const *key)const
 {
   Lilypond_general_key const *other
-    = dynamic_cast < Lilypond_general_key const *> (key);
+    = dynamic_cast<Lilypond_general_key const *> (key);
 
   if (parent_ && other->parent_)
     parent_->compare (other->parent_);
index c7b2677f5d478ddda5d0d7e0cd2b8ad4e50e5dcc..3aaf75f2886d276d7f14ca8c13aa116d83691751 100644 (file)
@@ -34,9 +34,9 @@ zigzag_stencil (Grob *me,
 
   Real staff_space = Staff_symbol_referencer::staff_space (me);
 
-  double w = robust_scm2double (me->get_property ("zigzag-width"), 1)*staff_space;
-  double l = robust_scm2double (me->get_property ("zigzag-length"), 1)* w;
-  double h = l > w / 2 ? sqrt (l*l - w*w / 4) : 0;
+  double w = robust_scm2double (me->get_property ("zigzag-width"), 1) * staff_space;
+  double l = robust_scm2double (me->get_property ("zigzag-length"), 1) * w;
+  double h = l > w / 2 ? sqrt (l * l - w * w / 4) : 0;
 
   SCM list = scm_list_n (ly_symbol2scm ("zigzag-line"),
                         ly_bool2scm (true),
@@ -84,7 +84,6 @@ Line_spanner::after_line_breaking (SCM g)
        Can't do suicide, since this mucks up finding the trend.
       */
       me->set_property ("print-function", SCM_EOL);
-
     }
   return SCM_EOL;
 }
@@ -125,7 +124,8 @@ Line_spanner::line_stencil (Grob *me,
        mol.add_at_edge (X_AXIS, RIGHT, m, 0, 0);
       while (m.extent (X_AXIS).length ()
             && mol.extent (X_AXIS).length ()
-            + m.extent (X_AXIS).length () < dz[X_AXIS]);
+            + m.extent (X_AXIS).length () < dz[X_AXIS])
+       ;
 
       /*
        FIXME: should center element on x/y
@@ -237,8 +237,8 @@ Line_spanner::print (SCM smob)
       Offset dz (p2 -p1);
       Real len = dz.length ();
 
-      Offset dir = dz * (1/ len);
-      dz = (dz.length () - 2*gap) *dir;
+      Offset dir = dz * (1 / len);
+      dz = (dz.length () - 2 * gap) * dir;
 
       Stencil l (line_stencil (me, Offset (0, 0), dz));
 
@@ -258,7 +258,7 @@ Line_spanner::print (SCM smob)
        }
 
       // distance from center to start of line      
-      Real off = gap + ((bound[LEFT]->extent (bound[LEFT], X_AXIS).length ()*3) / 4);
+      Real off = gap + ((bound[LEFT]->extent (bound[LEFT], X_AXIS).length () * 3) / 4);
 
       for (int a = X_AXIS; a < NO_AXES; a++)
        {
@@ -269,7 +269,6 @@ Line_spanner::print (SCM smob)
 
          my_off[ax] = me->relative_coordinate (common[a], ax);
          his_off[ax] = bound[LEFT]->relative_coordinate (common[a], ax);
-
        }
 
       ofxy = dxy * (off / dxy.length ());
index df15d3d1ed729a5264fc562a222a82fb10ed41f9..56b0985421ee260925bb55eabad5da4097e0d388 100644 (file)
@@ -358,15 +358,15 @@ Lookup::slur (Bezier curve, Real curvethick, Real linethick)
 
   SCM scontrols[8];
 
-  for (int i =4; i--;)
+  for (int i = 4; i--;)
     scontrols[ i ] = ly_offset2scm (back.control_[i]);
-  for (int i =4; i--;)
+  for (int i = 4; i--;)
     scontrols[i + 4] = ly_offset2scm (curve.control_[i]);
 
   /*
     Need the weird order b.o. the way PS want its arguments
   */
-  int indices[]= {5, 6, 7, 4, 1, 2, 3, 0};
+  int indices[] = {5, 6, 7, 4, 1, 2, 3, 0};
   SCM list = SCM_EOL;
   for (int i = 8; i--;)
     {
index e3b876967f7aaa5bc1200c5b624b837ef2b931a5..fb4d3abd16fae79c0d3f232db111cb091426573c 100644 (file)
@@ -75,7 +75,7 @@ LY_DEFINE (ly_module_copy, "ly:module-copy",
           "Copy all bindings from module SRC into DEST.")
 {
   SCM_VALIDATE_MODULE (1, src);
-  scm_internal_hash_fold ((Hash_cl_func) &module_define_closure_func,
+  scm_internal_hash_fold ((Hash_cl_func) & module_define_closure_func,
                          (void *) dest,
                          SCM_EOL, SCM_MODULE_OBARRAY (src));
   return SCM_UNSPECIFIED;
@@ -95,7 +95,7 @@ ly_module_symbols (SCM mod)
   SCM_VALIDATE_MODULE (1, mod);
 
   SCM obarr = SCM_MODULE_OBARRAY (mod);
-  return scm_internal_hash_fold ((Hash_cl_func) &accumulate_symbol,
+  return scm_internal_hash_fold ((Hash_cl_func) & accumulate_symbol,
                                 NULL, SCM_EOL, obarr);
 }
 
@@ -121,7 +121,7 @@ LY_DEFINE (ly_module2alist, "ly:module->alist",
   SCM_VALIDATE_MODULE (1, mod);
   SCM obarr = SCM_MODULE_OBARRAY (mod);
 
-  return scm_internal_hash_fold ((Hash_cl_func) &entry_to_alist, NULL, SCM_EOL, obarr);
+  return scm_internal_hash_fold ((Hash_cl_func) & entry_to_alist, NULL, SCM_EOL, obarr);
 }
 
 /* Lookup SYM, but don't give error when it is not defined.  */
index 09fe51c2932e468bed19bc3bed435203a1ad133c..84abe734ef6ed3132711019b7108483e3f5a6092 100644 (file)
@@ -147,7 +147,7 @@ Lyric_combine_music_iterator::get_busy_status () const
   for (; scm_is_pair (grobs); grobs = scm_cdr (grobs))
     {
       SCM grob = scm_cdar (grobs);
-      Moment end =*unsmob_moment (scm_caar (grobs));
+      Moment end = *unsmob_moment (scm_caar (grobs));
 
       /*
        This is slightly ugh: we are now confunding the frontend
index 10e9c645802704036be052792db2d6d8611ec195..95e8fd881f3c45663031fa66d40010ca822a46f4 100644 (file)
@@ -16,7 +16,7 @@
 #include "moment.hh"
 
 MAKE_SCHEME_CALLBACK (Hyphen_spanner, print, 1)
-SCM
+  SCM
 Hyphen_spanner::print (SCM smob)
 {
   Spanner *me = unsmob_spanner (smob);
@@ -35,7 +35,7 @@ Hyphen_spanner::print (SCM smob)
   do
     {
       Interval iv = bounds[d]->extent (common, X_AXIS);
-      
+
       span_points[d] = iv.is_empty ()
        ? bounds[d]->relative_coordinate (common, X_AXIS)
        : iv[-d];
@@ -51,24 +51,23 @@ Hyphen_spanner::print (SCM smob)
   Real dash_period = robust_scm2double (me->get_property ("dash-period"), 1.0);
   Real dash_length = robust_scm2double (me->get_property ("length"), .5);
   Real padding = robust_scm2double (me->get_property ("padding"), 0.1);
-  
+
   if (dash_period < dash_length)
     dash_period = 1.5 * dash_length;
 
-  
   Real l = span_points.length ();
 
   int n = int (ceil (l / dash_period - 0.5));
   if (n <= 0)
     n = 1;
 
-  if (l < dash_length + 2*padding
+  if (l < dash_length + 2 * padding
       && !bounds[RIGHT]->break_status_dir ())
     {
       Real minimum_length = robust_scm2double (me->get_property ("minimum-length"), .3);
-      dash_length = (l - 2*padding) >? minimum_length;
+      dash_length = (l - 2 * padding) >? minimum_length;
     }
-  
+
   Real space_left = l - dash_length - (n - 1) * dash_period;
 
   /*
@@ -124,7 +123,7 @@ Hyphen_spanner::set_spacing_rods (SCM smob)
          && r.item_drul_[RIGHT])
        r.add_to_cols ();
     }
-  
+
   return SCM_UNSPECIFIED;
 }
 
index 7c2aa33c9b59d84343762184d20a28ed7095477f..f9faa7269329258d016d41b969a76d8fb6e58b79 100644 (file)
@@ -24,7 +24,6 @@ private:
   Audio_text *audio_;
 };
 
-
 Lyric_performer::Lyric_performer ()
 {
   audio_ = 0;
index a5a3d3afc9269c071cb61e7015c4c71f860e282b..351adc8ed32bbcbd5d9ce8c2f06db8ad46807532 100644 (file)
@@ -278,7 +278,7 @@ do_chroot_jail ()
   errno = 0;
 
   int uid;
-  if (passwd *passwd = getpwnam (components[USER_NAME].to_str0 ()))
+  if (passwd * passwd = getpwnam (components[USER_NAME].to_str0 ()))
     uid = passwd->pw_uid;
   else
     {
@@ -295,7 +295,7 @@ do_chroot_jail ()
   errno = 0;
 
   int gid;
-  if (group *group = getgrnam (components[GROUP_NAME].to_str0 ()))
+  if (group * group = getgrnam (components[GROUP_NAME].to_str0 ()))
     gid = group->gr_gid;
   else
     {
index cc62a17d7fd82e86f00f20fa04aa5531c02f77bf..07cbd59aa24306264e4ca35694a8f0ec0a03f2af 100644 (file)
@@ -36,7 +36,6 @@ private:
   Music *mark_ev_;
 };
 
-
 Mark_engraver::Mark_engraver ()
 {
   text_ = 0;
index 9afeeabf8d58a1da91790a93a6cf3a231f65dee5..3c24d3c7713287fe5a794477c8033e0de537d3fd 100644 (file)
@@ -52,7 +52,6 @@ Melisma_translator::process_music ()
       else
        context ()->unset_property (ly_symbol2scm ("melismaBusy"));
     }
-
 }
 
 void
index 0975ad73586641ad8d432387c9760c83455ac811..3b73a54a9188731e04fb82fe32ce9c4fa74b5540 100644 (file)
@@ -38,8 +38,8 @@ brew_flexa (Grob *me,
 
   // Compensate optical illusion regarding vertical position of left
   // and right endings due to slope.
-  Real ypos_correction = -0.1*staff_space * sign (slope);
-  Real slope_correction = 0.2*staff_space * sign (slope);
+  Real ypos_correction = -0.1 * staff_space * sign (slope);
+  Real slope_correction = 0.2 * staff_space * sign (slope);
   Real corrected_slope = slope + slope_correction / width;
 
   if (solid) // this will come handy for colorated flexae
@@ -62,12 +62,12 @@ brew_flexa (Grob *me,
 
       Stencil bottom_edge
        = Lookup::beam (corrected_slope, width, thickness, 0.0);
-      bottom_edge.translate_axis (-0.5*height, Y_AXIS);
+      bottom_edge.translate_axis (-0.5 * height, Y_AXIS);
       stencil.add_stencil (bottom_edge);
 
       Stencil top_edge
        = Lookup::beam (corrected_slope, width, thickness, 0.0);
-      top_edge.translate_axis (+0.5*height, Y_AXIS);
+      top_edge.translate_axis (+0.5 * height, Y_AXIS);
       stencil.add_stencil (top_edge);
     }
   stencil.translate_axis (ypos_correction, Y_AXIS);
@@ -189,7 +189,7 @@ internal_brew_primitive (Grob *me)
   if (primitive & MLP_FLEXA)
     {
       pos += delta_pitch;
-      add_ledger_lines (me, &out, pos, 0.5*delta_pitch, ledger_take_space);
+      add_ledger_lines (me, &out, pos, 0.5 * delta_pitch, ledger_take_space);
     }
 #endif
 
index b59d3c962fb90b3ee2d1cc36beac2abaeaff9871..897bb909fd70a5a2c6f5e426af754a2b8ad59d79 100644 (file)
@@ -61,7 +61,6 @@ Metronome_mark_engraver::create_items (Music *rq)
     return;
 
   text_ = make_item ("MetronomeMark", rq->self_scm ());
-
 }
 
 bool
index 564b5057c07c49f5590409d8e45afedb682cebdb..4526cc1dfb97dcc4cf383153ab8a621af9a0cc63 100644 (file)
@@ -101,7 +101,7 @@ String
 Midi_event::to_string () const
 {
   Rational rat_dt = (delta_mom_.main_part_ * Rational (384)
-                    + delta_mom_.grace_part_ * Rational (100))*Rational (4);
+                    + delta_mom_.grace_part_ * Rational (100)) * Rational (4);
   int delta_i = int (rat_dt);
 
   String delta_string = Midi_item::i2varint_string (delta_i);
@@ -149,7 +149,7 @@ Midi_instrument::to_string () const
   else
     warning (_f ("no such MIDI instrument: `%s'", audio_->str_.to_str0 ()));
 
-  String str = ::to_string ((char) (0xc0 + channel_)); //YIKES! FIXME: Should be track. -rz
+  String str = ::to_string ((char) (0xc0 + channel_)); //YIKES! FIXME : Should be track. -rz
   str += ::to_string ((char)program_byte);
   return str;
 }
@@ -340,7 +340,7 @@ Midi_dynamic::to_string () const
   */
   static Real const full_scale = 127;
 
-  int volume = (int) (audio_->volume_*full_scale);
+  int volume = (int) (audio_->volume_ * full_scale);
   if (volume <= 0)
     volume = 1;
   if (volume > full_scale)
index aa1619e2c44e1ffe66383c8b7dd5ed641719a920..0112fdb73f67c09995cbcbb56b2111fc8c22eb15 100644 (file)
@@ -28,7 +28,7 @@ Midi_stream::~Midi_stream ()
 }
 
 Midi_stream &
-Midi_stream::operator<< (String str)
+Midi_stream::operator << (String str)
 {
   size_t sz = sizeof (Byte);
   size_t n = str.length ();
@@ -42,7 +42,7 @@ Midi_stream::operator<< (String str)
 }
 
 Midi_stream &
-Midi_stream::operator<< (Midi_item const &midi_c_r)
+Midi_stream::operator << (Midi_item const &midi_c_r)
 {
   String str = midi_c_r.to_string ();
 
index 1223133d13294e087343769cfa038de2565d7947..57e5ac499390b7de56901e2f661e46bd3a729749 100644 (file)
@@ -161,11 +161,11 @@ Midi_walker::process ()
 bool
 Midi_walker::ok () const
 {
-  return index_ <items_->size ();
+  return index_ < items_->size ();
 }
 
 void
-Midi_walker::operator++ (int)
+Midi_walker::operator ++ (int)
 {
   assert (ok ());
   index_++;
index 0d1144ec13f67771a6fee106936108ca01597fb8..bb8a05201c103904bd3a3e2aa8900c5db260e855 100644 (file)
@@ -33,7 +33,7 @@ intlog2 (int d)
 double
 log_2 (double x)
 {
-  return log (x) /log (2.0);
+  return log (x) / log (2.0);
 }
 
 Array<String>
index 865431c6da63b9f84bfd7135c324c1355d31eaea..0450259135eaa96a0b1b2d10621672ea15a8393c 100644 (file)
@@ -61,7 +61,7 @@ LY_DEFINE (ly_mul_moment, "ly:mul-moment",
   Moment *mb = unsmob_moment (b);
   SCM_ASSERT_TYPE (ma, a, SCM_ARG1, __FUNCTION__, "moment");
   SCM_ASSERT_TYPE (mb, b, SCM_ARG2, __FUNCTION__, "moment");
-  return (*ma * *mb).smobbed_copy ();
+  return (*ma * * mb).smobbed_copy ();
 }
 
 LY_DEFINE (ly_div_moment, "ly:div-moment",
@@ -72,7 +72,7 @@ LY_DEFINE (ly_div_moment, "ly:div-moment",
   Moment *mb = unsmob_moment (b);
   SCM_ASSERT_TYPE (ma, a, SCM_ARG1, __FUNCTION__, "moment");
   SCM_ASSERT_TYPE (mb, b, SCM_ARG2, __FUNCTION__, "moment");
-  return (*ma / *mb).smobbed_copy ();
+  return (*ma / * mb).smobbed_copy ();
 }
 
 LY_DEFINE (ly_moment_main_numerator, "ly:moment-main-numerator",
index c892d5f459d4183dc579408b35530d64b2cdd8df..a50ce3cbd1f0004c7a4a17bf6a4f095fd64290a8 100644 (file)
@@ -91,13 +91,13 @@ Moment::compare (Moment const &a, Moment const &b)
 }
 
 void
-Moment::operator+= (Moment const &src)
+Moment::operator += (Moment const &src)
 {
   main_part_ += src.main_part_;
   grace_part_ += src.grace_part_;
 }
 void
-Moment::operator-= (Moment const &src)
+Moment::operator -= (Moment const &src)
 {
   main_part_ -= src.main_part_;
   grace_part_ -= src.grace_part_;
@@ -107,7 +107,7 @@ Moment::operator-= (Moment const &src)
   only take the main part of SRC for multiplication.
 */
 void
-Moment::operator*= (Moment const &src)
+Moment::operator *= (Moment const &src)
 {
   main_part_ *= src.main_part_;
   grace_part_ *= src.main_part_;
@@ -117,7 +117,7 @@ Moment::operator*= (Moment const &src)
   only take the main part of SRC for multiplication.
 */
 void
-Moment::operator/= (Moment const &src)
+Moment::operator /= (Moment const &src)
 {
   main_part_ /= src.main_part_;
   grace_part_ /= src.main_part_;
@@ -159,17 +159,17 @@ Moment::to_string () const
 }
 
 Moment
-Moment::operator- () const
+Moment::operator - () const
 {
   Moment m;
   m.grace_part_ = -grace_part_;
-  m. main_part_ = -main_part_;
+  m.main_part_ = -main_part_;
   return m;
 }
 
 #ifdef STREAM_SUPPORT
 std::ostream &
-operator<< (std::ostream &os, Moment const &m)
+operator << (std::ostream &os, Moment const &m)
 {
   os << m.to_string ();
   return os;
index a078e4db1e1c4cf68fe87b07e92a6b0337b419fa..837b52e201ce4fddf1498ae34299d90603293fec 100644 (file)
@@ -107,7 +107,7 @@ Multi_measure_rest_engraver::process_music ()
          do
            {
              Grob *last = 0;
-             for (int i = 0; i <numbers_.size (); i++)
+             for (int i = 0; i < numbers_.size (); i++)
                {
                  if (scm_int2num (d) == numbers_[i]->get_property ("direction"))
                    {
@@ -118,7 +118,6 @@ Multi_measure_rest_engraver::process_music ()
                }
            }
          while (flip (&d) != DOWN);
-
        }
 
       for (int i = 0; i < numbers_.size (); i++)
index 1cc6d2b0311cf8c79c4f8f444f1d6a7c0d3d2acf..a1eb2dbfbfbe97fb72164ef05e3e7898c66f98b9 100644 (file)
@@ -55,7 +55,7 @@ Multi_measure_rest::percent (SCM smob)
   /*
     center between stuff.
   */
-  x_off += sp_iv.length ()/ 2;
+  x_off += sp_iv.length () / 2;
 
   r.translate_axis (x_off, X_AXIS);
 
@@ -124,7 +124,7 @@ Multi_measure_rest::symbol_stencil (Grob *me, Real space)
   if (measures > scm_to_int (limit))
     {
       Real padding = 0.15;
-      Stencil s = big_rest (me, (1.0 - 2*padding) * space);
+      Stencil s = big_rest (me, (1.0 - 2 * padding) * space);
       s.translate_axis (padding * space, X_AXIS);
       return s;
     }
@@ -185,7 +185,7 @@ Multi_measure_rest::big_rest (Grob *me, Real width)
   Real blot = width ? (.8 * (y <? ythick)) : 0.0;
 
   Stencil m = Lookup::round_filled_box (b, blot);
-  Stencil yb = Lookup::round_filled_box (Box (Interval (-0.5, 0.5)* ythick, Interval (-ss, ss)), blot);
+  Stencil yb = Lookup::round_filled_box (Box (Interval (-0.5, 0.5) * ythick, Interval (-ss, ss)), blot);
 
   m.add_at_edge (X_AXIS, RIGHT, yb, 0, 0);
   m.add_at_edge (X_AXIS, LEFT, yb, 0, 0);
@@ -239,7 +239,7 @@ Multi_measure_rest::church_rest (Grob *me, Font_metric *musfont, int measures,
              l -= 4;
              k = -2;
            }
-         else if (l>= 2)
+         else if (l >= 2)
            {
              l -= 2;
              k = -1;
index c576580048728ac3bfb3a27d661c9b1b1ced5775..481b9ebc9026d899109988d1e2fd3d4ba82d7cc6 100644 (file)
 
 #include "warn.hh"
 
-static std::map < String, Music_ctor> *ctors_map_;
+static std::map<String, Music_ctor> *ctors_map_;
 
 void
 add_music_ctor (String s, Music_ctor c)
 {
   if (!ctors_map_)
-    ctors_map_ = new std::map < String, Music_ctor>;
+    ctors_map_ = new std::map<String, Music_ctor>;
 
   (*ctors_map_)[s] = c;
 }
index a666c87aecf44a4daa1f24f3b58bb4249007df26..b67c0c775dc022fee6f598c26403dda83ec82c7d 100644 (file)
@@ -170,7 +170,6 @@ LY_DEFINE (ly_music_duration_length, "ly:music-duration-length", 1, 0, 0,
   else
     programming_error ("Music has no duration");
   return l.smobbed_copy ();
-
 }
 
 LY_DEFINE (ly_music_duration_compress, "ly:music-duration-compress", 2, 0, 0,
index ed29db0fb03e0ebadf6819312280057cc8328e83..560d8aba3fe9cd7d04270d71b4977e9ba51adafa 100644 (file)
@@ -38,7 +38,7 @@ Music_wrapper_iterator::derived_substitute (Context *f, Context *t)
 void
 Music_wrapper_iterator::construct_children ()
 {
-  Music *m = dynamic_cast < Music_wrapper const *> (get_music ())-> element ();
+  Music *m = dynamic_cast<Music_wrapper const *> (get_music ())->element ();
   child_iter_ = unsmob_iterator (get_iterator (m));
 }
 
index 3317ba3c764d24ddfdc91dc6875fc7ed9d55bdda..12066fe04aa67ed9271bc7adf1685a41a83e540c 100644 (file)
@@ -215,7 +215,7 @@ Music::compress (Moment factor)
   compress_music_list (get_property ("elements"), factor);
   Duration *d = unsmob_duration (get_property ("duration"));
   if (d)
-    set_property ("duration", d ->compressed (factor.main_part_).smobbed_copy ());
+    set_property ("duration", d->compressed (factor.main_part_).smobbed_copy ());
 }
 
 void
@@ -257,7 +257,6 @@ Music::transpose (Pitch delta)
     {
       set_property ("pitch-alist", ly_transpose_key_alist (pa, delta.smobbed_copy ()));
     }
-
 }
 
 IMPLEMENT_TYPE_P (Music, "ly:music?");
@@ -295,7 +294,7 @@ Input *
 Music::origin () const
 {
   Input *ip = unsmob_input (get_property ("origin"));
-  return ip ? ip : & dummy_input_global;
+  return ip ? ip : &dummy_input_global;
 }
 
 int
index 38f4b1d57939e19dc18b2634046a131091985ed3..2a6930bec394e969548dcb8b938a161a49622375 100644 (file)
@@ -35,7 +35,6 @@ struct Finger_tuple
   {
     return c1.position_- c2.position_;
   }
-
 };
 
 class New_fingering_engraver : public Engraver
@@ -174,7 +173,7 @@ New_fingering_engraver::position_scripts ()
   */
   for (int i = 0; i < fingerings_.size (); i++)
     {
-      fingerings_[i].position_ = scm_to_int (fingerings_[i].head_ -> get_property ("staff-position"));
+      fingerings_[i].position_ = scm_to_int (fingerings_[i].head_->get_property ("staff-position"));
     }
 
   for (int i = fingerings_.size (); i--;)
@@ -222,7 +221,7 @@ New_fingering_engraver::position_scripts ()
   else if (up_p)
     {
       up.concat (fingerings_);
-      fingerings_ .clear ();
+      fingerings_.clear ();
     }
   else
     {
@@ -258,7 +257,6 @@ New_fingering_engraver::position_scripts ()
       f->add_offset_callback (Self_alignment_interface::aligned_on_self_proc, X_AXIS);
 
       f->set_property ("direction", scm_int2num (UP));
-
     }
 
   for (int i = 0; i < down.size (); i++)
index 0eece029aedb99559648632054ee3f4494d68711..005a8f03a017c94c8f6fe137adcd02229da1715b 100644 (file)
@@ -42,9 +42,9 @@ Note_collision_interface::force_shift_callback (SCM element_smob, SCM axis)
 
 void
 check_meshing_chords (Grob *me,
-                     Drul_array< Array<Real> > *offsets,
-                     Drul_array< Array<Slice> > const &extents,
-                     Drul_array < Link_array<Grob> > const &clash_groups)
+                     Drul_array<Array<Real> > *offsets,
+                     Drul_array<Array<Slice> > const &extents,
+                     Drul_array<Link_array<Grob> > const &clash_groups)
 
 {
   if (!extents[UP].size () || ! extents[DOWN].size ())
@@ -147,11 +147,11 @@ check_meshing_chords (Grob *me,
          else
            distant_half_collide = true;
        }
-      else if (ups[i]== dps[j])
+      else if (ups[i] == dps[j])
        full_collide = true;
-      else if (ups[i] >dps[0] && ups[i] < dps.top ())
+      else if (ups[i] > dps[0] && ups[i] < dps.top ())
        merge_possible = false;
-      else if (dps[j] >ups[0] && dps[j] < ups.top ())
+      else if (dps[j] > ups[0] && dps[j] < ups.top ())
        merge_possible = false;
 
       if (ups[i] < dps[j])
@@ -284,13 +284,13 @@ check_meshing_chords (Grob *me,
       for (int i = 0; i < clash_groups[d].size (); i++)
        (*offsets)[d][i] += d * shift_amount;
     }
-  while ((flip (&d))!= UP);
+  while ((flip (&d)) != UP);
 }
 
 void
 Note_collision_interface::do_shifts (Grob *me)
 {
-  Drul_array< Link_array<Grob> > cg = get_clash_groups (me);
+  Drul_array<Link_array<Grob> > cg = get_clash_groups (me);
 
   SCM autos (automatic_shift (me, cg));
   SCM hand (forced_shift (me));
@@ -320,12 +320,11 @@ Note_collision_interface::do_shifts (Grob *me)
       amounts.push (amount);
       if (amount < left_most)
        left_most = amount;
-
     }
   for (; scm_is_pair (autos); autos = scm_cdr (autos))
     {
       Grob *s = unsmob_grob (scm_caar (autos));
-      Real amount = scm_to_double (scm_cdar (autos)) *wid;
+      Real amount = scm_to_double (scm_cdar (autos)) * wid;
 
       if (!done.find (s))
        {
@@ -342,10 +341,10 @@ Note_collision_interface::do_shifts (Grob *me)
     }
 }
 
-Drul_array< Link_array<Grob>
+Drul_array < Link_array<Grob>
 > Note_collision_interface::get_clash_groups (Grob *me)
 {
-  Drul_array < Link_array<Grob> > clash_groups;
+  Drul_array<Link_array<Grob> > clash_groups;
 
   SCM s = me->get_property ("elements");
   for (; scm_is_pair (s); s = scm_cdr (s))
@@ -360,10 +359,10 @@ Drul_array< Link_array<Grob>
   Direction d = UP;
   do
     {
-      Link_array<Grob> & clashes (clash_groups[d]);
+      Link_array<Grob> &clashes (clash_groups[d]);
       clashes.sort (Note_column::shift_compare);
     }
-  while ((flip (&d))!= UP);
+  while ((flip (&d)) != UP);
 
   return clash_groups;
 }
@@ -375,7 +374,7 @@ Drul_array< Link_array<Grob>
 */
 SCM
 Note_collision_interface::automatic_shift (Grob *me,
-                                          Drul_array< Link_array<Grob>
+                                          Drul_array < Link_array<Grob>
                                           > clash_groups)
 {
   Drul_array < Array<int> > shifts;
@@ -384,8 +383,8 @@ Note_collision_interface::automatic_shift (Grob *me,
   Direction d = UP;
   do
     {
-      Array<int> & shift (shifts[d]);
-      Link_array<Grob> & clashes (clash_groups[d]);
+      Array<int> &shift (shifts[d]);
+      Link_array<Grob> &clashes (clash_groups[d]);
 
       for (int i = 0; i < clashes.size (); i++)
        {
@@ -398,7 +397,7 @@ Note_collision_interface::automatic_shift (Grob *me,
            shift.push (0);
        }
 
-      for (int i =1; i < shift.size (); i++)
+      for (int i = 1; i < shift.size (); i++)
        {
          if (shift[i - 1] == shift[i])
            {
@@ -407,10 +406,10 @@ Note_collision_interface::automatic_shift (Grob *me,
            }
        }
     }
-  while ((flip (&d))!= UP);
+  while ((flip (&d)) != UP);
 
-  Drul_array< Array<Slice> > extents;
-  Drul_array< Array<Real> > offsets;
+  Drul_array<Array<Slice> > extents;
+  Drul_array<Array<Real> > offsets;
   d = UP;
   do
     {
@@ -423,7 +422,7 @@ Note_collision_interface::automatic_shift (Grob *me,
          offsets[d].push (d * 0.5 * i);
        }
     }
-  while ((flip (&d))!= UP);
+  while ((flip (&d)) != UP);
 
   /*
     do horizontal shifts of each direction
@@ -436,17 +435,17 @@ Note_collision_interface::automatic_shift (Grob *me,
 
   do
     {
-      for (int i =1; i < clash_groups[d].size (); i++)
+      for (int i = 1; i < clash_groups[d].size (); i++)
        {
          Slice prev = extents[d][i - 1];
          prev.intersect (extents[d][i]);
-         if (prev.length ()> 0
+         if (prev.length () > 0
              || (extents[-d].size () && d * (extents[d][i][-d] - extents[-d][0][d]) < 0))
            for (int j = i; j < clash_groups[d].size (); j++)
              offsets[d][j] += d * 0.5;
        }
     }
-  while ((flip (&d))!= UP);
+  while ((flip (&d)) != UP);
 
   /*
     Check if chords are meshing
@@ -462,6 +461,7 @@ Note_collision_interface::automatic_shift (Grob *me,
                         tups);
     }
   while (flip (&d) != UP);
+
   return tups;
 }
 
index fa8e70768f553065a41de13ebb7d9f91ccc5d435..8258e9eecc119cee63341968bd5662a6daa0b6e0 100644 (file)
@@ -36,8 +36,8 @@ Note_column::shift_compare (Grob *const &p1, Grob *const &p2)
   SCM s1 = p1->get_property ("horizontal-shift");
   SCM s2 = p2->get_property ("horizontal-shift");
 
-  int h1 = (scm_is_number (s1))? scm_to_int (s1) :0;
-  int h2 = (scm_is_number (s2)) ? scm_to_int (s2):0;
+  int h1 = (scm_is_number (s1)) ? scm_to_int (s1) : 0;
+  int h2 = (scm_is_number (s2)) ? scm_to_int (s2) : 0;
   return h1 - h2;
 }
 
@@ -139,12 +139,11 @@ Note_column::set_dotcol (Grob *me, Grob *d)
   Axis_group_interface::add_element (me, d);
 }
 
-
 Grob *
 Note_column::first_head (Grob *me)
 {
   Grob *st = get_stem (me);
-  return st? Stem::first_head (st): 0;
+  return st ? Stem::first_head (st) : 0;
 }
 
 /*
index cc9decc52a65e81436fd906474da1ef5765e895f..12fd61e212e673a01f58b061aa10702c3919daa2 100644 (file)
@@ -99,7 +99,6 @@ Note_head_line_engraver::stop_translation_timestep ()
   head_ = 0;
 }
 
-
 ADD_TRANSLATOR (Note_head_line_engraver,
                /* descr */ "Engrave a line between two note heads, for example a glissando.  If "
                " followVoice is set, staff switches also generate a line.",
index b4d85287d20dbd53b2c6e76cbb9ce40d5f919f5e..5b8bc0ed38a0208a2d082cdc336a745bd333472b 100644 (file)
@@ -43,8 +43,7 @@ Note_spacing::get_spacing (Grob *me, Item *right_col,
 
          if (d == RIGHT && it->break_status_dir () != col_dir)
            {
-             it = it -> find_prebroken_piece (col_dir);
-
+             it = it->find_prebroken_piece (col_dir);
            }
          /*
            some kind of mismatch, eg. a note column, that is behind a
@@ -110,10 +109,10 @@ Note_spacing::get_spacing (Grob *me, Item *right_col,
     FIXED also includes the left part of the right object.
   */
   *fixed
-    = (left_head_wid.is_empty () ? increment :
-       /*
-        Size of the head:
-       */
+    = (left_head_wid.is_empty () ? increment
+       :        /*
+                 Size of the head:
+               */
        (left_head_wid[RIGHT]+
 
        /*
@@ -339,7 +338,7 @@ Note_spacing::stem_dir_correction (Grob *me, Item *rcolumn,
       stem_posns[RIGHT] = bar_yextent;
     }
 
-  if (correct_stem_dirs && stem_dirs[LEFT] *stem_dirs[RIGHT] == -1)
+  if (correct_stem_dirs && stem_dirs[LEFT] * stem_dirs[RIGHT] == -1)
     {
       if (beams_drul[LEFT] && beams_drul[LEFT] == beams_drul[RIGHT])
        {
@@ -367,7 +366,7 @@ Note_spacing::stem_dir_correction (Grob *me, Item *rcolumn,
                }
            }
 
-         correction = note_head_width* stem_dirs[LEFT];
+         correction = note_head_width * stem_dirs[LEFT];
          correction *= robust_scm2double (me->get_property ("knee-spacing-correction"), 0);
          *fixed += correction;
        }
@@ -396,7 +395,7 @@ Note_spacing::stem_dir_correction (Grob *me, Item *rcolumn,
            }
        }
     }
-  else if (correct_stem_dirs && stem_dirs[LEFT] *stem_dirs[RIGHT] == UP)
+  else if (correct_stem_dirs && stem_dirs[LEFT] * stem_dirs[RIGHT] == UP)
     {
       /*
        Correct for the following situation:
@@ -437,10 +436,8 @@ Note_spacing::stem_dir_correction (Grob *me, Item *rcolumn,
   /* there used to be a correction for bar_xextent () here, but
      it's unclear what that was good for ?
   */
-
 }
 
-
 ADD_INTERFACE (Note_spacing, "note-spacing-interface",
               "This object calculates spacing wishes for individual voices.",
               "left-items right-items stem-spacing-correction knee-spacing-correction");
index f904646b385916d34d3a0274561bcf7c6ede3115..59bcaa65b62ad5e2dfe53b65a1fb6c0fe803f62d 100644 (file)
@@ -74,7 +74,6 @@ Object_key_undumper::parse_contents (SCM contents)
       keys_[number] = k;
       scm_gc_unprotect_object (k->self_scm ());
     }
-
 }
 
 Object_key const *
index 134ff7fb232a3b757e0bc34b3306574bcf59023d..1a350268f517129594cf0d2208513886945678db 100644 (file)
@@ -20,7 +20,6 @@ Object_key::mark_smob (SCM key)
 void
 Object_key::derived_mark () const
 {
-
 }
 
 Object_key::~Object_key ()
@@ -138,7 +137,7 @@ Copied_key::get_type () const
 int
 Copied_key::do_compare (Object_key const *key) const
 {
-  Copied_key const *other = dynamic_cast < Copied_key const *> (key);
+  Copied_key const *other = dynamic_cast<Copied_key const *> (key);
 
   int c = original_->compare (other->original_);
   if (c)
index 386a618a9c5a1728f71d028676d253ef7b3a7a28..b23f947602b1e61a04d0b976947a36f22a6aa177 100644 (file)
@@ -137,7 +137,7 @@ Open_type_font::get_indexed_char (int signed_idx) const
 {
   if (SCM_HASHTABLE_P (lily_character_table_))
     {
-      const int len =256;
+      const int len = 256;
       char name[len];
       int code = FT_Get_Glyph_Name (face_, signed_idx, name, len);
       if (code)
index 6eba7c878098709fb6c4c4d255841203561db8d1..0d7189378d221f69104e31cb61033ecd90ed5dd5 100644 (file)
@@ -33,7 +33,7 @@ Pango_font::Pango_font (PangoFT2FontMap *fontmap,
 
   pango_description_ = pango_font_description_copy (description);
   //  context_ = pango_ft2_font_map_create_context (fontmap);
-  attribute_list_= pango_attr_list_new ();
+  attribute_list_ = pango_attr_list_new ();
 
   /*
     urgh. I don't understand this. Why isn't this 1/(scale *
@@ -123,7 +123,7 @@ Pango_font::pango_item_string_stencil (PangoItem *item, String str, Real dx) con
 
   FcPattern *fcpat = fcfont->font_pattern;
   char *filename = 0;
-  FcPatternGetString (fcpat, FC_FILE, 0, (FcChar8 **) &filename);
+  FcPatternGetString (fcpat, FC_FILE, 0, (FcChar8 **) & filename);
   char const *ps_name_str0 = FT_Get_Postscript_Name (ftface);
 
   if (!ps_name_str0)
@@ -238,8 +238,8 @@ Pango_font::text_stencil (String str) const
     {
       Stencil frame = Lookup::frame (dest.extent_box (), 0.1, 0.1);
       Box empty;
-      empty.set_empty();
-      Stencil dimless_frame (empty, frame.expr());
+      empty.set_empty ();
+      Stencil dimless_frame (empty, frame.expr ());
       dest.add_stencil (frame);
     }
 #endif
index 453a524f22a31d2d5abb6749209e98f5305795e1..4fa9cd285391fe64f98fdff1b99a99c0b6b1d8a5 100644 (file)
@@ -79,7 +79,6 @@ LY_DEFINE (ly_outputter_close, "ly:outputter-close",
   return SCM_UNSPECIFIED;
 }
 
-
 LY_DEFINE (ly_outputter_output_scheme, "ly:outputter-output-scheme",
           2, 0, 0, (SCM outputter, SCM expr),
           "Eval @var{expr} in module of @var{outputter}.")
index c519404a65d0f104a656a5fb5af82f89dfa98535..e78a1e9be90722987e9d077997efd09ce66203aa 100644 (file)
@@ -34,7 +34,7 @@ SCM
 Paper_system::mark_smob (SCM smob)
 {
   Paper_system *system = (Paper_system *) SCM_CELL_WORD_1 (smob);
-  return system-> stencil_.expr ();
+  return system->stencil_.expr ();
 }
 
 int
index 70086010b798e81633abc4b3643f36f50de24302..23d770b61be17a87aa3517b42b5fedae9b3a0088 100644 (file)
@@ -88,11 +88,10 @@ Part_combine_iterator::do_quit ()
     second_iter_->quit ();
 
   null_.set_context (0);
-  one_ .set_context (0);
+  one_.set_context (0);
   two_.set_context (0);
   shared_.set_context (0);
   solo_.set_context (0);
-
 }
 
 Part_combine_iterator::Part_combine_iterator ()
@@ -125,7 +124,6 @@ Part_combine_iterator::derived_substitute (Context *f,
 {
   if (first_iter_)
     first_iter_->substitute_outlet (f, t);
-
 }
 
 Moment
@@ -194,7 +192,7 @@ Part_combine_iterator::solo1 ()
          if (!event)
            event = make_music_by_name (ly_symbol2scm ("SoloOneEvent"));
 
-         first_iter_-> try_music_in_children (event);
+         first_iter_->try_music_in_children (event);
        }
       playing_state_ = SOLO1;
     }
@@ -282,7 +280,7 @@ Part_combine_iterator::solo2 ()
          if (!event)
            event = make_music_by_name (ly_symbol2scm ("SoloTwoEvent"));
 
-         second_iter_-> try_music_in_children (event);
+         second_iter_->try_music_in_children (event);
          playing_state_ = SOLO2;
        }
     }
@@ -331,7 +329,7 @@ Part_combine_iterator::construct_children ()
     = get_outlet ()->find_create_context (ly_symbol2scm ("Voice"),
                                          "solo", props);
 
-  solo_ .set_context (solo_tr);
+  solo_.set_context (solo_tr);
 
   Context *null
     = get_outlet ()->find_create_context (ly_symbol2scm ("Devnull"),
@@ -380,7 +378,6 @@ Part_combine_iterator::construct_children ()
       execute_pushpop_property (two, sym,
                                ly_symbol2scm ("direction"), scm_int2num (-1));
     }
-
 }
 
 void
index 99d440e9fba3059ad0a90b1565f914cf8e3fdecf..e5da150a4487a2142af48102ae14d7f50df0f188 100644 (file)
@@ -90,7 +90,7 @@ Percent_repeat_engraver::try_music (Music *m)
       Moment meas_len (robust_scm2moment (get_property ("measureLength"), Moment (1)));
       if (meas_len == body_length_)
        repeat_sign_type_ = MEASURE;
-      else if (Moment (2)* meas_len == body_length_)
+      else if (Moment (2) * meas_len == body_length_)
        {
          repeat_sign_type_ = DOUBLE_MEASURE;
          next_moment_ += meas_len;
@@ -113,7 +113,6 @@ Percent_repeat_engraver::try_music (Music *m)
          */
          if (repeat_sign_type_ == DOUBLE_MEASURE)
            global->add_moment_to_process (next_moment_ + meas_len + Moment (i) * body_length_);
-
        }
 
       return true;
@@ -174,7 +173,6 @@ Percent_repeat_engraver::typeset_perc ()
   double_percent_ = 0;
 }
 
-
 void
 Percent_repeat_engraver::start_translation_timestep ()
 {
@@ -197,7 +195,6 @@ Percent_repeat_engraver::stop_translation_timestep ()
   typeset_perc ();
 }
 
-
 ADD_TRANSLATOR (Percent_repeat_engraver,
                /* descr */ "Make whole bar and double bar repeats.",
                /* creats*/ "PercentRepeat DoublePercentRepeat",
index 39d6ccc7c5bc92cb814b12d28b50e348e7193239..053a5f32fce04e61dc2fabdeff25d6e3e6ded9fa 100644 (file)
@@ -43,7 +43,7 @@ Performer_group_performer::acknowledge_audio_elements ()
        {
          Translator *t = unsmob_translator (scm_car (p));
          Performer *eng = dynamic_cast<Performer *> (t);
-         if (eng && eng!= info.origin_trans_)
+         if (eng && eng != info.origin_trans_)
            eng->acknowledge_audio_element (info);
        }
     }
index 7eda8473f3538d2b17d9abdf970b72de6ec61bc4..318e8da6db85b66cda5d3accccf4a9e5f9c5c02e 100644 (file)
@@ -95,7 +95,7 @@ Phrasing_slur_engraver::acknowledge_grob (Grob_info info)
        }
       else if (inside == SCM_BOOL_F)
        {
-         Grob *slur = slurs_.size ()?slurs_[0] : 0;
+         Grob *slur = slurs_.size () ? slurs_[0] : 0;
          slur = (end_slurs_.size () && !slur)
            ? end_slurs_[0] : slur;
 
index e8ee2a12e6468e0987a324a71e8017c4080c3947..e2e1896b17fbe7d11676d17cb79196cdd8519c70 100644 (file)
@@ -95,7 +95,7 @@ Piano_pedal_engraver::initialize ()
 {
   char *names [] = { "Sostenuto", "Sustain", "UnaCorda", 0 };
 
-  info_list_ = new Pedal_info[sizeof (names)/ sizeof (const char *)];
+  info_list_ = new Pedal_info[sizeof (names) / sizeof (const char *)];
   Pedal_info *p = info_list_;
 
   char **np = names;
@@ -178,7 +178,6 @@ Piano_pedal_engraver::process_music ()
              String name = String (p->name_) + "PedalLineSpanner";
              Music *rq = (p->event_drul_[START] ? p->event_drul_[START] : p->event_drul_[STOP]);
              p->line_spanner_ = make_spanner (name.to_str0 (), rq->self_scm ());
-
            }
 
          /* Choose the appropriate grobs to add to the line spanner
@@ -429,7 +428,7 @@ Piano_pedal_engraver::finalize ()
            {
              p->line_spanner_->set_bound (RIGHT, c);
            }
-         p->bracket_ ->set_bound (RIGHT, c);
+         p->bracket_->set_bound (RIGHT, c);
 
          p->finished_bracket_ = p->bracket_;
          p->bracket_ = 0;
index 82c5f9b21b3e21bb698c9aab173f27cd1f7eeb43..8393fbe83d7079a1167f155b9a3b530552293444 100644 (file)
@@ -105,7 +105,7 @@ Piano_pedal_performer::create_audio_elements ()
 void
 Piano_pedal_performer::stop_translation_timestep ()
 {
-  for (int i = 0; i< audios_.size (); i++)
+  for (int i = 0; i < audios_.size (); i++)
     play_element (audios_[i]);
   audios_.clear ();
 }
index c417c850f0481a9d3ca24ac5be2d856dd9ecf904..18f3a6730755ef7453a4769161b5be04246a393f 100644 (file)
@@ -30,9 +30,9 @@ LY_DEFINE (ly_make_pitch, "ly:make-pitch",
           "The @var{alter} is zero for a natural, negative for "
           "flats, or positive for sharps. ")
 {
-  SCM_ASSERT_TYPE (scm_integer_p (octave)== SCM_BOOL_T, octave, SCM_ARG1, __FUNCTION__, "integer");
-  SCM_ASSERT_TYPE (scm_integer_p (note)== SCM_BOOL_T, note, SCM_ARG2, __FUNCTION__, "integer");
-  SCM_ASSERT_TYPE (scm_integer_p (alter)== SCM_BOOL_T, alter, SCM_ARG3, __FUNCTION__, "integer");
+  SCM_ASSERT_TYPE (scm_integer_p (octave) == SCM_BOOL_T, octave, SCM_ARG1, __FUNCTION__, "integer");
+  SCM_ASSERT_TYPE (scm_integer_p (note) == SCM_BOOL_T, note, SCM_ARG2, __FUNCTION__, "integer");
+  SCM_ASSERT_TYPE (scm_integer_p (alter) == SCM_BOOL_T, alter, SCM_ARG3, __FUNCTION__, "integer");
 
   Pitch p (scm_to_int (octave), scm_to_int (note), scm_to_int (alter));
   return p.smobbed_copy ();
index 01bb70d5b1bc69eaac6cb15ff0bf7491c246fb7b..5504db6bcd858762990c7e096498cbca3aa106bc 100644 (file)
@@ -47,7 +47,7 @@ Pitch::compare (Pitch const &m1, Pitch const &m2)
 int
 Pitch::steps () const
 {
-  return notename_ + octave_*7;
+  return notename_ + octave_ * 7;
 }
 
 /* Should be settable from input?  */
index 976563ac8971feaef05f3f49f0fb699f3bd2da91..36e527a2a1c147979b50eac9131cbb656ea48752 100644 (file)
@@ -15,7 +15,7 @@ Protected_scm::Protected_scm ()
 
 Protected_scm::Protected_scm (SCM s)
 {
-  object_ = SCM_NIMP (s) ? scm_gc_protect_object (s): s;
+  object_ = SCM_NIMP (s) ? scm_gc_protect_object (s) : s;
 }
 
 Protected_scm::Protected_scm (Protected_scm const &s)
@@ -31,7 +31,7 @@ Protected_scm::~Protected_scm ()
 }
 
 Protected_scm &
-Protected_scm::operator= (SCM s)
+Protected_scm::operator = (SCM s)
 {
   if (object_ == s)
     return *this;
@@ -44,9 +44,9 @@ Protected_scm::operator= (SCM s)
 }
 
 Protected_scm &
-Protected_scm::operator= (Protected_scm const &s)
+Protected_scm::operator = (Protected_scm const &s)
 {
-  return operator= (s.object_);
+  return operator = (s.object_);
 }
 
 Protected_scm::operator SCM () const
index 0fdc7413506074ec77bbad4dfbd8ae6607c151e1..376a89b0ab4c94f67c99e2addc4c9a17e80b4901 100644 (file)
@@ -30,7 +30,6 @@ protected:
   virtual void start_translation_timestep ();
   virtual void process_music ();
   virtual void initialize ();
-
 };
 
 void
index 4a0f7d6e88a8dbc6ac7d34140cbcf5ba3196daad..0081363e7f2a329536c879312b7c17f8f425c4cb 100644 (file)
@@ -161,8 +161,8 @@ Repeated_music::first_start (SCM m)
   Music *me = unsmob_music (m);
   Music *body = unsmob_music (me->get_property ("element"));
 
-  Moment rv = (body) ? body->start_mom () :
-    Music_sequence::first_start (me->get_property ("elements"));
+  Moment rv = (body) ? body->start_mom ()
+    Music_sequence::first_start (me->get_property ("elements"));
 
   return rv.smobbed_copy ();
 }
index bcc8a8545a12669111cfc943c4433ff7af0520ab..9e4ff6e50d3114ed39bdc3bb2d579a11de3aca43 100644 (file)
@@ -133,7 +133,7 @@ Rest_collision::do_shift (Grob *me)
        This is incomplete: in case of an uneven number of rests, the
        center one should be centered on the staff.
       */
-      Drul_array< Link_array<Grob> > ordered_rests;
+      Drul_array<Link_array<Grob> > ordered_rests;
       for (int i = 0; i < rests.size (); i++)
        {
          Grob *r = Note_column::get_rest (rests[i]);
@@ -191,13 +191,12 @@ Rest_collision::do_shift (Grob *me)
              Real last_y = ordered_rests[d][i + 1]->extent (common, Y_AXIS)[d];
              Real y = ordered_rests[d][i]->extent (common, Y_AXIS)[-d];
 
-             Real diff = d * ((last_y - y) /staff_space);
+             Real diff = d * ((last_y - y) / staff_space);
              if (diff > 0)
                Note_column::translate_rests (ordered_rests[d][i], d * (int) ceil (diff) * 2);
            }
        }
       while (flip (&d) != LEFT);
-
     }
   else
     {
@@ -243,15 +242,15 @@ Rest_collision::do_shift (Grob *me)
       if (!stafflines)
        {
          programming_error ("No staff line count ? ");
-         stafflines =5;
+         stafflines = 5;
        }
 
       // move discretely by half spaces.
-      int discrete_dist = int (ceil (dist / (0.5 *staff_space)));
+      int discrete_dist = int (ceil (dist / (0.5 * staff_space)));
 
       // move by whole spaces inside the staff.
       if (discrete_dist < stafflines + 1)
-       discrete_dist = int (ceil (discrete_dist / 2.0)* 2.0);
+       discrete_dist = int (ceil (discrete_dist / 2.0) * 2.0);
 
       Note_column::translate_rests (rcol, dir * discrete_dist);
     }
index d6436d6a217bf0eb4c44fbbb959bc5dc136f75cb..009d16f768d0db136ee71c409100cd541ec846cd 100644 (file)
@@ -57,7 +57,7 @@ Rest_engraver::process_music ()
     {
       rest_ = make_item ("Rest", rest_req_->self_scm ());
 
-      int durlog = unsmob_duration (rest_req_->get_property ("duration"))-> duration_log ();
+      int durlog = unsmob_duration (rest_req_->get_property ("duration"))->duration_log ();
 
       rest_->set_property ("duration-log",
                           scm_int2num (durlog));
@@ -71,7 +71,6 @@ Rest_engraver::process_music ()
          Rhythmic_head::set_dots (rest_, dot_);
          dot_->set_parent (rest_, Y_AXIS);
          dot_->set_property ("dot-count", scm_int2num (dots));
-
        }
 
       Pitch *p = unsmob_pitch (rest_req_->get_property ("pitch"));
@@ -89,7 +88,6 @@ Rest_engraver::process_music ()
 
          rest_->set_property ("staff-position", scm_int2num (pos));
        }
-
     }
 }
 
index 934e25b9dd97f4f54eee0c0282cef58e168922a6..f726dc88ab5c4533b026824412419386eb707740 100644 (file)
@@ -37,7 +37,7 @@
   the default spacing do its work.
 */
 
-class Rhythmic_column_engraver :public Engraver
+class Rhythmic_column_engraver : public Engraver
 {
   Link_array<Grob> rheads_;
   Grob *stem_;
@@ -77,14 +77,12 @@ Rhythmic_column_engraver::process_acknowledged_grobs ()
          spacing_ = make_item ("NoteSpacing", SCM_EOL);
          spacing_->set_property ("left-items", scm_cons (note_column_->self_scm (), SCM_EOL));
 
-
          if (last_spacing_)
            {
              Pointer_group_interface::add_grob (last_spacing_,
                                                 ly_symbol2scm ("right-items"),
                                                 note_column_);
            }
-
        }
 
       for (int i = 0; i < rheads_.size (); i++)
@@ -109,7 +107,6 @@ Rhythmic_column_engraver::process_acknowledged_grobs ()
          Note_column::set_stem (note_column_, stem_);
          stem_ = 0;
        }
-
     }
 }
 
index 268c5e737ec4d1873bccdf7e8b2217fa1694ba9c..7ad5db343c76e6bb1ce928caf51231044f1afd4e 100644 (file)
@@ -33,8 +33,7 @@ Rod::columnize ()
       distance_ += -d * item_drul_[d]->relative_coordinate (pc, X_AXIS);
       item_drul_[d] = pc;
     }
-  while ((flip (&d))!= LEFT);
-
+  while ((flip (&d)) != LEFT);
 }
 
 void
index 2e21757f4ca6f8181befa205cb38d5a99049b623..af73ca3a306807f6f481b514ba7ddb788ab381f1 100644 (file)
@@ -48,7 +48,7 @@ Scheme_hash_table::Scheme_hash_table (Scheme_hash_table const &src)
 }
 
 void
-Scheme_hash_table::operator= (Scheme_hash_table const &src)
+Scheme_hash_table::operator = (Scheme_hash_table const &src)
 {
   if (&src == this)
     return;
@@ -115,7 +115,7 @@ Scheme_hash_table::set (SCM k, SCM v)
   */
   if (elt_count_ > 2 * scm_c_vector_length (hash_tab_))
     {
-      SCM nh = scm_make_vector (scm_int2num (3* elt_count_ + 1), SCM_EOL);
+      SCM nh = scm_make_vector (scm_int2num (3 * elt_count_ + 1), SCM_EOL);
       elt_count_ = copy_scm_hashes (nh, hash_tab_);
       hash_tab_ = nh;
     }
index d83645137390b6f09649dc7164f9ee2f4e95bc93..3fc6a3b726b95cda79f9a863cb62be49812b6112 100644 (file)
@@ -59,7 +59,7 @@ LY_DEFINE (ly_option_usage, "ly:option-usage", 0, 0, 0, (SCM),
   puts ("");
   printf (_ ("  The function ly:set-option allows for access to some internal variables.").to_str0 ());
   puts ("\n");
-  printf (_ ("Usage: lilypond -e \"(ly:set - option SYMBOL VAL)\"").to_str0 ());
+  printf (_ ("Usage: lilypond -e \"(ly : set - option SYMBOL VAL)\"").to_str0 ());
   puts ("\n");
   printf (_ ("Use help as  SYMBOL to get online help.").to_str0 ());
 
@@ -96,7 +96,7 @@ LY_DEFINE (ly_set_option, "ly:set-option", 1, 1, 0, (SCM var, SCM val),
           "@end table\n"
           "\n"
           "This function is useful to call from the command line: @code{lilypond -e\n"
-          "\"(ly:set - option 'midi-debug #t)\"}.\n")
+          "\"(ly : set - option 'midi-debug #t)\"}.\n")
 {
   if (val == SCM_UNDEFINED)
     val = SCM_BOOL_T;
index f7cba549b26c9e35e1d0e3c39f67e41444ee1ea1..648cc6a7581cd6318a3ec6a4c559f7af50c2b231 100644 (file)
@@ -176,7 +176,6 @@ Score_engraver::typeset_all ()
            {
              bool br = to_boolean (elem->get_property ("breakable"));
              Axis_group_interface::add_element (br ? command_column_ : musical_column_, elem);
-
            }
        }
       if (!elem->get_parent (Y_AXIS))
@@ -229,7 +228,7 @@ Music_output *
 Score_engraver::get_output ()
 {
   Music_output *o = pscore_;
-  ///FIXME WTF? pscore_ = 0;
+  ///FIXME WTF ? pscore_ = 0;
   return o;
 }
 
@@ -303,7 +302,6 @@ Score_engraver::acknowledge_grob (Grob_info gi)
                                             gi.grob_);
        }
     }
-
 }
 
 ADD_TRANSLATOR (Score_engraver,
index e0cb8469a7ae3b4ad63a2d8098d0b9f059a7d84c..f3cca4d3340a069fd020e17997bb64369bceaafb 100644 (file)
@@ -200,7 +200,6 @@ Score::book_rendering (String outname,
   return systems;
 }
 
-
 void
 Score::set_music (SCM music, SCM parser)
 {
@@ -220,14 +219,12 @@ Score::set_music (SCM music, SCM parser)
       m->origin ()->error (_ ("Error found in this music expression. Ignoring it"));
 
       this->error_found_ = this->error_found_ || to_boolean (m->get_property ("error-found"));
-
     }
 
   if (this->error_found_)
     this->music_ = SCM_EOL;
   else
     this->music_ = music;
-
 }
 
 SCM
index 5395e4c3b4f53dcdd92ddc63100a457f882c7506..7e027aacfc11e6f2894b2bb36cc562466f99b014 100644 (file)
@@ -58,7 +58,6 @@ Script_column_engraver::process_acknowledged_grobs ()
   if (!scol_ && scripts_.size () > 1)
     {
       scol_ = make_item ("ScriptColumn", SCM_EOL);
-
     }
 
   if (scol_)
@@ -67,7 +66,6 @@ Script_column_engraver::process_acknowledged_grobs ()
        Script_column::add_staff_sided (scol_, scripts_[i]);
       scripts_.clear ();
     }
-
 }
 
 ADD_TRANSLATOR (Script_column_engraver,
index 37051bd6a477635116c2ef05d90d1678d703e587..f70c73aa5c2d3d3531f20652074217660c203bef 100644 (file)
@@ -86,7 +86,6 @@ Script_column::before_line_breaking (SCM smob)
 
          last = g;
        }
-
     }
   while (flip (&d) != DOWN);
 
index f393128911d0954a8aec55a7108540a2c23ba206..3dfc782f1b9f902a7352a8f735439f5e0d5354bb 100644 (file)
@@ -141,7 +141,6 @@ void make_script_from_event (Grob *p, bool *follow, Context *tg,
     }
 
   Side_position_interface::set_axis (p, Y_AXIS);
-
 }
 
 void
index 71bf4dd5d72bfedf663f971f9c0e364ee7f81852..1a02e6a5ea1958da6a7bb55985ac56a97a41f74b 100644 (file)
@@ -55,7 +55,7 @@ Separating_group_spanner::find_rods (Item *r, SCM next, Real padding)
          Rod rod;
 
          rod.item_drul_[LEFT] = l;
-         rod.item_drul_[RIGHT]= r;
+         rod.item_drul_[RIGHT] = r;
 
          rod.distance_ = li[RIGHT] - ri[LEFT] + padding;
 
@@ -68,7 +68,6 @@ Separating_group_spanner::find_rods (Item *r, SCM next, Real padding)
        this grob doesn't cause a constraint. We look further until we
        find one that does.
       */
-
     }
 }
 
@@ -112,7 +111,6 @@ Separating_group_spanner::add_spacing_unit (Grob *me, Item *i)
   me->add_dependency (i);
 }
 
-
 ADD_INTERFACE (Separating_group_spanner, "separation-spanner-interface",
               "A spanner that calculates spacing constraints (\"rods\") "
               "using the @code{separation-item-interface} grobs in @code{elements}.",
index 9d95c17f3919080894ee9f057b55389bf346de35..3d28bb3c4fe9d92f4d5bdfb20d692b3be347d1fb 100644 (file)
@@ -149,7 +149,6 @@ Separating_line_group_engraver::acknowledge_grob (Grob_info i)
                Pointer_group_interface::add_grob (last_spacings_.note_spacings_[i],
                                                   ly_symbol2scm ("right-items"),
                                                   break_item_);
-
            }
          else if (last_spacings_.staff_spacing_)
            {
@@ -190,7 +189,6 @@ Separating_line_group_engraver::stop_translation_timestep ()
       if (musical_item_)
        Pointer_group_interface::add_grob (sp, ly_symbol2scm ("right-items"),
                                           musical_item_);
-
     }
 
   if (!current_spacings_.is_empty ())
index 68fb40fb2364f805fcdb108e2e27c8cee7b3f777..0cf923a2d04a56768939dce54b3b30f7a76698c4 100644 (file)
@@ -160,7 +160,6 @@ Separation_item::extremal_break_aligned_grob (Grob *separation_item, Direction d
   return last_grob;
 }
 
-
 ADD_INTERFACE (Separation_item, "separation-item-interface",
               "Item that computes widths to generate spacing rods. "
               "This is done in concert with @ref{separation-spanner-interface}.",
index cf88a52d1dd1248b1e2d90b75da654b850f1a4a4..0f9b4295495c87b979104646fec05772a36e2705 100644 (file)
@@ -52,7 +52,6 @@ Sequential_iterator::do_quit ()
     iter_->quit ();
 }
 
-
 void
 Sequential_iterator::derived_mark () const
 {
index c9e3dc6eae103da32ea1a727b7327c04ca08737a..cea9fa6c625a38580574d6bbbe33828297a215af 100644 (file)
@@ -135,7 +135,6 @@ Side_position_interface::aligned_on_support_refpoints (SCM smob, SCM axis)
   return general_side_position (me, a, false);
 }
 
-
 Real
 directed_round (Real f, Direction d)
 {
@@ -164,7 +163,7 @@ Side_position_interface::quantised_position (SCM element_smob, SCM)
     {
       Real p = Staff_symbol_referencer::get_position (me);
       Real rp = directed_round (p, d);
-      Real rad = Staff_symbol_referencer::staff_radius (me) *2;
+      Real rad = Staff_symbol_referencer::staff_radius (me) * 2;
       int ip = int (rp);
 
       Grob *head = me->get_parent (X_AXIS);
@@ -226,8 +225,8 @@ Side_position_interface::aligned_side (SCM element_smob, SCM axis)
       Grob *common = me->common_refpoint (st, Y_AXIS);
 
       Interval staff_size = st->extent (common, Y_AXIS);
-      Real diff = d*staff_size[d] + padding - d* (o + iv[-d]);
-      o += (d* (diff >? 0));
+      Real diff = d*staff_size[d] + padding - d * (o + iv[-d]);
+      o += (d * (diff >? 0));
     }
 
   return scm_make_real (o);
index e9afca6cbd5af575e5f24a219238e92f3f5ff368..2b2529555c362219ea90df35e3596ab74eafa2d0 100644 (file)
@@ -172,7 +172,7 @@ void
 Simple_spacer::set_active_states ()
 {
   /* float comparison is safe, since force is only copied.  */
-  for (int i = 0; i <springs_.size (); i++)
+  for (int i = 0; i < springs_.size (); i++)
     if (springs_[i].is_active_
        && springs_[i].block_force_ >= force_)
       {
@@ -335,7 +335,6 @@ Simple_spacer_wrapper::solve (Column_x_positions *positions, bool ragged)
          if (scm_to_double (p) > 9999)
            break_satisfy = break_satisfy && ! (i == 0 || i == sz -1);
        }
-
     }
 
   positions->satisfies_constraints_
index 0c9cead8fe2005e3d7c7a0bfeea30f1181ca0152..1c5a8002062652b2ca3b8424b807699a912eac22 100644 (file)
@@ -28,7 +28,7 @@ void
 Simultaneous_music_iterator::derived_substitute (Context *f, Context *t)
 {
   for (SCM s = children_list_; scm_is_pair (s); s = scm_cdr (s))
-    unsmob_iterator (scm_car (s))-> substitute_outlet (f, t);
+    unsmob_iterator (scm_car (s))->substitute_outlet (f, t);
 }
 
 void
index bbbf7f55808b15939c796546ee6d341a166cbbd2..b3b6349461a25369fffab2aaf0f954a05f359c71 100644 (file)
@@ -68,7 +68,7 @@ insert_extent_into_skyline (Array<Skyline_entry> *line, Box b, Axis line_axis,
 
       if (!w.is_empty ()
          && w.length () > EPS
-         && d* (my_height - stick_out) < 0)
+         && d * (my_height - stick_out) < 0)
        {
          Interval e1 (line->elem (i).width_[LEFT], extent[LEFT]);
          Interval e3 (extent[RIGHT], line->elem (i).width_[RIGHT]);
@@ -81,12 +81,11 @@ insert_extent_into_skyline (Array<Skyline_entry> *line, Box b, Axis line_axis,
          if (!e1.is_empty () && e1.length () > EPS)
            line->insert (Skyline_entry (e1, my_height), i);
        }
-
     }
 }
 
 void
-merge_skyline (Array<Skyline_entry> * a1,
+merge_skyline (Array<Skyline_entry> *a1,
               Array<Skyline_entry> const &a2,
               Direction dir)
 {
@@ -180,7 +179,6 @@ Skyline_entry::Skyline_entry (Interval i, Real r)
 {
   width_ = i;
   height_ = r;
-
 }
 
 void
index 25430d0acee24eb0b37ad475bcfe9d0ed58771c3..ee1ea2fd441213d131faadd664d92995ed7739a5 100644 (file)
@@ -119,7 +119,6 @@ Slash_repeat_engraver::stop_translation_timestep ()
   beat_slash_ = 0;
 }
 
-
 ADD_TRANSLATOR (Slash_repeat_engraver,
                /* descr */ "Make beat repeats.",
                /* creats*/ "RepeatSlash",
index 6ab45f334eea6b57c793c3b26c86227abc364cb1..8a1af612d5dae17961b19d4f8df726b636a84b58 100644 (file)
@@ -81,7 +81,7 @@ fit_factor (Offset dz_unit, Offset dz_perp,
     {
       Offset z = (avoid[i] - x0);
       Offset p (dot_product (z, dz_unit),
-               d* dot_product (z, dz_perp));
+               d * dot_product (z, dz_perp));
       if (!curve_xext.contains (p[X_AXIS]))
        continue;
 
@@ -108,7 +108,7 @@ Slur_configuration::generate_curve (Slur_score_state const &state,
        continue;
 
       Encompass_info inf (state.get_encompass_info (encompasses[i]));
-      Real y = state.dir_ * ((state.dir_ * inf.head_) >? (state.dir_ *inf.stem_));
+      Real y = state.dir_ * ((state.dir_ * inf.head_) >? (state.dir_ * inf.stem_));
 
       avoid.push (Offset (inf.x_, y + state.dir_ * state.parameters_.free_head_distance_));
     }
@@ -201,7 +201,6 @@ Slur_configuration::Slur_configuration ()
   index_ = -1;
 };
 
-
 void
 Slur_configuration::score_encompass (Slur_score_state const &state)
 {
@@ -255,7 +254,7 @@ Slur_configuration::score_encompass (Slur_score_state const &state)
 
              Real closest
                = state.dir_ * (state.dir_ * state.encompass_infos_[j].get_point (state.dir_)
-                               >? state.dir_ *line_y);
+                               >? state.dir_ * line_y);
              Real d = fabs (closest - y);
 
              convex_head_distances.push (d);
@@ -361,7 +360,7 @@ Slur_configuration::score_extra_encompass (Slur_score_state const &state)
          Item *as_item = dynamic_cast<Item *> (state.extra_encompass_infos_[j].grob_);
          if ((as_item
               && as_item->get_column ()
-              == state.extremes_[d] .bound_->get_column ())
+              == state.extremes_[d].bound_->get_column ())
              || state.extra_encompass_infos_[j].extents_[X_AXIS].contains (attachment[d][X_AXIS]))
            {
              y = attachment[d][Y_AXIS];
index 200ad5c0f3a8d82f6265224031c695fcc63ce963..f41c69c3380a21140b7f3e26bd5c85ba84eb7e30 100644 (file)
@@ -66,7 +66,7 @@ Slur_engraver::try_music (Music *m)
 void
 Slur_engraver::set_melisma (bool m)
 {
-  context ()->set_property ("slurMelismaBusy", m ? SCM_BOOL_T :SCM_BOOL_F);
+  context ()->set_property ("slurMelismaBusy", m ? SCM_BOOL_T : SCM_BOOL_F);
 }
 
 void
@@ -93,7 +93,7 @@ Slur_engraver::acknowledge_grob (Grob_info info)
        }
       else if (inside == SCM_BOOL_F)
        {
-         Grob *slur = slurs_.size ()?slurs_[0] : 0;
+         Grob *slur = slurs_.size () ? slurs_[0] : 0;
          slur = (end_slurs_.size () && !slur)
            ? end_slurs_[0] : slur;
 
index aa3d4cdc6b8b4264a7baff8f6a3610cb2a206be5..573e2426c1c7811987c3f512d19c3a5a1deb4164 100644 (file)
@@ -58,7 +58,7 @@ Slur_performer::process_music ()
 void
 Slur_performer::set_melisma (bool ml)
 {
-  context ()->set_property ("slurMelismaBusy", ml ? SCM_BOOL_T :SCM_BOOL_F);
+  context ()->set_property ("slurMelismaBusy", ml ? SCM_BOOL_T : SCM_BOOL_F);
 }
 
 void
index 9539ced5c614011b417d10c9cda43ec04c0ec773..28c5fec42b4ae61ce31e2e8a7d9cb9b46c1d7b84 100644 (file)
@@ -224,7 +224,6 @@ Slur_score_state::get_encompass_info (Grob *col) const
   return ei;
 }
 
-
 Drul_array<Bound_info>
 Slur_score_state::get_bound_info () const
 {
@@ -264,6 +263,7 @@ Slur_score_state::get_bound_info () const
        }
     }
   while (flip (&d) != LEFT);
+
   return extremes;
 }
 
@@ -459,7 +459,7 @@ Slur_score_state::get_y_attachment_range () const
       if (extremes_[d].note_column_)
        {
          end_ys[d] = dir_
-           * ((dir_ * (base_attachments_[d][Y_AXIS] + parameters_.region_size_* dir_))
+           * ((dir_ * (base_attachments_[d][Y_AXIS] + parameters_.region_size_ * dir_))
               >? (dir_ * (dir_ + extremes_[d].note_column_->extent (common_[Y_AXIS],
                                                                     Y_AXIS)[dir_]))
               >? (dir_ * base_attachments_[-d][Y_AXIS]));
@@ -525,7 +525,6 @@ Slur_score_state::get_base_attachments () const
            .linear_combination (CENTER);
        }
       base_attachment[d] = Offset (x, y);
-
     }
   while (flip (&d) != LEFT);
 
@@ -588,12 +587,11 @@ void
 Slur_score_state::generate_curves () const
 {
   Real r_0 = robust_scm2double (slur_->get_property ("ratio"), 0.33);
-  Real h_inf = staff_space_ *scm_to_double (slur_->get_property ("height-limit"));
+  Real h_inf = staff_space_ * scm_to_double (slur_->get_property ("height-limit"));
   for (int i = 0; i < configurations_.size (); i++)
     configurations_[i]->generate_curve (*this, r_0, h_inf);
 }
 
-
 Link_array<Slur_configuration>
 Slur_score_state::enumerate_attachments (Drul_array<Real> end_ys) const
 {
@@ -703,7 +701,7 @@ Slur_score_state::get_extra_encompass_infos () const
 
          for (int k = 0; k < 3; k++)
            {
-             Direction hdir = Direction (k /2 - 1);
+             Direction hdir = Direction (k / 2 - 1);
 
              /*
                Only take bound into account if small slur starts
@@ -720,7 +718,7 @@ Slur_score_state::get_extra_encompass_infos () const
              yext[dir_] = z[Y_AXIS] + dir_ * thickness_ * 1.0;
 
              Interval xext (-1, 1);
-             xext = xext * (thickness_*2) + z[X_AXIS];
+             xext = xext * (thickness_ * 2) + z[X_AXIS];
              Extra_collision_info info (small_slur,
                                         k - 1.0,
                                         xext,
index c8f8950b911f0e0906c087c27484d3d171962f78..13760ce36aa0abefee9ca35f5c2505b0fc72af64 100644 (file)
@@ -27,7 +27,7 @@ void
 Spaceable_grob::add_rod (Grob *me, Grob *p, Real d)
 {
   //  printf ("rod %lf\n", d);
-  if (isinf(d) || d < 0)
+  if (isinf (d) || d < 0)
     {
       programming_error ("Weird rod");
     }
index ec4b189fa2f5f876634a3d7b8a00422176fd765d..22931c8ecf4d40fd31b487cd858afc1ed297b145 100644 (file)
@@ -78,7 +78,6 @@ Spacing_engraver::process_music ()
     {
       spacing_ = make_spanner ("SpacingSpanner", SCM_EOL);
       spacing_->set_bound (LEFT, unsmob_grob (get_property ("currentCommandColumn")));
-
     }
 }
 
@@ -145,7 +144,6 @@ Spacing_engraver::stop_translation_timestep ()
        {
          starter = starter <? m;
          playing_durations_.insert (now_durations_[i]);
-
        }
     }
   now_durations_.clear ();
@@ -174,7 +172,6 @@ Spacing_engraver::start_translation_timestep ()
     stopped_durations_.push (playing_durations_.get ());
 }
 
-
 ADD_TRANSLATOR (Spacing_engraver,
                /* descr */ "make a SpacingSpanner and do bookkeeping of shortest starting and playing notes  ",
                /* creats*/ "SpacingSpanner",
index 7e2f21c72d73e92cc6f8f69c0d2d502a1829e1e7..1cf3ef3fa6be3c2a3725038c1b975b5252a768eb 100644 (file)
@@ -230,7 +230,6 @@ Spacing_spanner::prune_loose_columns (Grob *me, Link_array<Grob> *cols, Rational
 
                      dists[d] = dists[d] >? fixed_space;
                    }
-
                }
            }
          while (flip (&d) != LEFT);
@@ -338,13 +337,13 @@ Spacing_spanner::set_implicit_neighbor_columns (Link_array<Grob> cols)
       /*
        sloppy with typnig left/right-neighbors should take list, but paper-column found instead.
       */
-      SCM ln = cols[i] ->get_property ("left-neighbors");
+      SCM ln = cols[i]->get_property ("left-neighbors");
       if (!scm_is_pair (ln) && i)
        {
          cols[i]->set_property ("left-neighbors", scm_cons (cols[i - 1]->self_scm (), SCM_EOL));
        }
 
-      SCM rn = cols[i] ->get_property ("right-neighbors");
+      SCM rn = cols[i]->get_property ("right-neighbors");
       if (!scm_is_pair (rn) && i < cols.size () - 1)
        {
          cols[i]->set_property ("right-neighbors", scm_cons (cols[i + 1]->self_scm (), SCM_EOL));
@@ -579,7 +578,6 @@ Spacing_spanner::musical_column_spacing (Grob *me, Item *lc, Item *rc, Real incr
          compound_note_space = compound_note_space + space;
          compound_fixed_note_space = compound_fixed_note_space + fixed;
          wish_count++;
-
        }
     }
 
@@ -730,7 +728,7 @@ Spacing_spanner::breakable_column_spacing (Grob *me, Item *l, Item *r, Moment sh
            pointer munging.
 
          */
-         assert (spacing_grob-> get_column () == l);
+         assert (spacing_grob->get_column () == l);
 
          Staff_spacing::get_spacing_params (spacing_grob,
                                             &space, &fixed_space);
@@ -823,7 +821,7 @@ Spacing_spanner::get_duration_space (Grob *me, Moment d, Rational shortest, bool
       */
       Real log = log_2 (shortest);
       k -= log;
-      Rational compdur = d.main_part_ + d.grace_part_ /Rational (3);
+      Rational compdur = d.main_part_ + d.grace_part_ / Rational (3);
       *expand_only = false;
 
       return (log_2 (compdur) + k) * incr;
@@ -861,13 +859,13 @@ Spacing_spanner::note_spacing (Grob *me, Grob *lc, Grob *rc,
       Moment *dt = unsmob_moment (rc->get_property ("measure-length"));
       if (dt)
        {
-         delta_t = delta_t <? *dt;
+         delta_t = delta_t <? * dt;
 
          /*
            The following is an extra safety measure, such that
            the length of a mmrest event doesn't cause havoc.
          */
-         shortest_playing_len = shortest_playing_len <? *dt;
+         shortest_playing_len = shortest_playing_len <? * dt;
        }
     }
   Real dist = 0.0;
index 6f3df8c95fcf6ad0428b039d3837fc65255c8471..79dbbd0dc218d37dd375af15470275fb5d484794 100644 (file)
@@ -62,7 +62,6 @@ Span_arpeggio_engraver::process_acknowledged_grobs ()
       && to_boolean (get_property ("connectArpeggios")))
     {
       span_arpeggio_ = make_item ("Arpeggio", SCM_EOL);
-
     }
 }
 
index 879477420c9d77b5d18320558cc853bc2da7e02d..db6baa0ffa94516144d8db61b29bdb8bbb9960d3 100644 (file)
@@ -50,7 +50,6 @@ Span_bar_engraver::acknowledge_grob (Grob_info i)
          spanbar_ = make_item ("SpanBar", SCM_EOL);
 
          spanbar_->set_parent (bars_[0], X_AXIS);
-
        }
     }
 }
index 175c1da92f53df049f545fa3fb73fce11dab84df..a49eb5a377737c91d64213377a830bf4c2bea329 100644 (file)
@@ -165,7 +165,6 @@ Span_dynamic_performer::stop_translation_timestep ()
 
   span_events_[STOP] = 0;
   span_events_[START] = 0;
-
 }
 
 bool
index e7221000c766ea4cba97766f8730cb84c8e1618a..abcac02f50e158cd53e7cc33c9a916f3ad70e1f9 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <math.h>
 
-#include <libc-extension.hh>
+#include < libc - extension.hh>
 
 #include "warn.hh"
 #include "paper-column.hh"
@@ -78,7 +78,7 @@ Spanner::do_break_processing ()
              broken_intos_.push (span);
            }
        }
-      while ((flip (&d))!= LEFT);
+      while ((flip (&d)) != LEFT);
     }
   else
     {
@@ -87,7 +87,7 @@ Spanner::do_break_processing ()
       break_points.insert (left, 0);
       break_points.push (right);
 
-      for (int i =1; i < break_points.size (); i++)
+      for (int i = 1; i < break_points.size (); i++)
        {
          Drul_array<Item *> bounds;
          bounds[LEFT] = break_points[i - 1];
@@ -98,7 +98,7 @@ Spanner::do_break_processing ()
              if (!bounds[d]->get_system ())
                bounds[d] = bounds[d]->find_prebroken_piece (- d);
            }
-         while ((flip (&d))!= LEFT);
+         while ((flip (&d)) != LEFT);
 
          if (!bounds[LEFT] || ! bounds[RIGHT])
            {
@@ -208,8 +208,8 @@ Spanner::Spanner (SCM s, Object_key const *key)
   : Grob (s, key)
 {
   break_index_ = 0;
-  spanned_drul_[LEFT]= 0;
-  spanned_drul_[RIGHT]= 0;
+  spanned_drul_[LEFT] = 0;
+  spanned_drul_[RIGHT] = 0;
 
   Group_interface::add_thing (this, ly_symbol2scm ("interfaces"), ly_symbol2scm ("spanner-interface"));
 }
@@ -226,7 +226,7 @@ Spanner::spanner_length () const
   Real l = spanned_drul_[LEFT]->relative_coordinate (0, X_AXIS);
   Real r = spanned_drul_[RIGHT]->relative_coordinate (0, X_AXIS);
 
-  if (r< l)
+  if (r < l)
     programming_error ("spanner with negative length");
 
   return r - l;
@@ -303,7 +303,8 @@ Spanner::do_derived_mark () const
   do
     if (spanned_drul_[d])
       scm_gc_mark (spanned_drul_[d]->self_scm ());
-  while (flip (&d) != LEFT);
+  while (flip (&d) != LEFT)
+    ;
 
   for (int i = broken_intos_.size (); i--;)
     scm_gc_mark (broken_intos_[i]->self_scm ());
index ecbeed1993978ea1a76aca7791d35f16be656dd6..7eb382074587f04bfb27c29970a63252e648e19d 100644 (file)
@@ -13,7 +13,7 @@
 Spring_smob::Spring_smob ()
 {
   distance_ = 0.;
-  strength_ =1.0;
+  strength_ = 1.0;
   expand_only_b_ = false;
   other_ = 0;
 }
index ad8ca8546af9166f6c8f18b60e4660362d37dfa6..095bfe11156a1b6e4be7242dce44416193ee4747 100644 (file)
@@ -20,7 +20,6 @@ public:
 
 Staff_collecting_engraver::Staff_collecting_engraver ()
 {
-
 }
 
 void
index 124f19d3700331ecd3f2f31bd9d1250f94027cee..90e6882ea2614d61e583893e55acfecaa4950061 100644 (file)
@@ -132,7 +132,6 @@ Staff_spacing::next_notes_correction (Grob *me, Grob *last_grob)
       for (SCM t = g->get_property ("elements");
           scm_is_pair (t); t = scm_cdr (t))
        max_corr = max_corr >? next_note_correction (me, unsmob_grob (scm_car (t)), bar_size);
-
     }
 
   return max_corr;
index 1c668ed8feb28a3704797744d118411d6b8dcb56..c3bc1c763cb0c246dfe14f3d602ad496ef4a7787 100644 (file)
@@ -48,7 +48,6 @@ Staff_symbol_engraver::process_music ()
       span_ = make_spanner ("StaffSymbol", SCM_EOL);
 
       span_->set_bound (LEFT, unsmob_grob (get_property ("currentCommandColumn")));
-
     }
 }
 
@@ -68,7 +67,6 @@ Staff_symbol_engraver::acknowledge_grob (Grob_info s)
   s.grob_->set_property ("staff-symbol", span_->self_scm ());
 }
 
-
 ADD_TRANSLATOR (Staff_symbol_engraver,
                /* descr */ "Create the constellation of five (default) "
                "staff lines.",
@@ -96,7 +94,7 @@ Tab_staff_symbol_engraver::process_music ()
   if (init)
     {
       int k = scm_ilength (get_property ("stringTunings"));
-      if (k>= 0)
+      if (k >= 0)
        span_->set_property ("line-count", scm_int2num (k));
     }
 }
index 926f1a3bacab5a216759ac697064d2c003e07dfe..b57d1191d43a910df22f033ce4248e1a7dae9022 100644 (file)
@@ -67,7 +67,7 @@ Staff_symbol::print (SCM smob)
 
   int l = Staff_symbol::line_count (me);
 
-  Real height = (l - 1) * staff_space (me) /2;
+  Real height = (l - 1) * staff_space (me) / 2;
   Stencil a
     = Lookup::horizontal_line (span_points
                               -me->relative_coordinate (common, X_AXIS),
@@ -119,7 +119,7 @@ Staff_symbol::get_ledger_line_thickness (Grob *me)
   SCM lt_pair = me->get_property ("ledger-line-thickness");
   Offset z = robust_scm2offset (lt_pair, Offset (1.0, 0.1));
 
-  return z[X_AXIS] * get_line_thickness (me) + z[Y_AXIS]* staff_space (me);
+  return z[X_AXIS] * get_line_thickness (me) + z[Y_AXIS] * staff_space (me);
 }
 
 ADD_INTERFACE (Staff_symbol, "staff-symbol-interface",
index 70c95f8746a044be45e718735f54e806c15f5fca..16d2e073d230111b2275eb93ca26d0fa598c0208 100644 (file)
@@ -28,7 +28,6 @@ protected:
 
 Stanza_number_align_engraver::Stanza_number_align_engraver ()
 {
-
 }
 
 void
index 8d5c8fda19f5e95e3ad1174a0dbb08c0b0c0dc15..2f77b5d4f74e1c8f286162cea87ca0f66c4305c4 100644 (file)
@@ -48,7 +48,6 @@ Stanza_number_engraver::process_music ()
 
       text_ = make_item ("StanzaNumber", SCM_EOL);
       text_->set_property ("text", stanza);
-
     }
 }
 
index 0f227b4c94483293f16d4590674fdb22031f7afe..028843a6eb7257c0d58e5a04cbe66832a8301231 100644 (file)
@@ -120,7 +120,7 @@ Stem::set_stemend (Grob *me, Real se)
   // todo: margins
   Direction d = get_direction (me);
 
-  if (d && d * head_positions (me)[get_direction (me)] >= se*d)
+  if (d && d * head_positions (me)[get_direction (me)] >= se * d)
     me->warning (_ ("Weird stem size; check for narrow beams"));
 
   me->set_property ("stem-end-position", scm_make_real (se));
@@ -194,7 +194,6 @@ Stem::extremal_heads (Grob *me)
            }
        }
       while (flip (&d) != DOWN);
-
     }
   return exthead;
 }
@@ -298,8 +297,8 @@ Stem::get_default_stem_end_position (Grob *me)
   if (dir && dir * hp[dir] >= 0)
     {
       SCM sshorten = me->get_property ("stem-shorten");
-      SCM scm_shorten = scm_is_pair (sshorten) ?
-       robust_list_ref ((duration_log (me) - 2) >? 0, sshorten): SCM_EOL;
+      SCM scm_shorten = scm_is_pair (sshorten)
+       ? robust_list_ref ((duration_log (me) - 2) >? 0, sshorten) : SCM_EOL;
       Real shorten = 2* robust_scm2double (scm_shorten, 0);
 
       /* On boundary: shorten only half */
@@ -696,7 +695,7 @@ Stem::print (SCM smob)
     = me->get_layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
 
   Box b = Box (Interval (-stem_width / 2, stem_width / 2),
-              Interval (stem_y[DOWN]*half_space, stem_y[UP]*half_space));
+              Interval (stem_y[DOWN] * half_space, stem_y[UP] * half_space));
 
   Stencil ss = Lookup::round_filled_box (b, blot);
   mol.add_stencil (ss);
@@ -704,7 +703,7 @@ Stem::print (SCM smob)
   if (!get_beam (me) && abs (duration_log (me)) > 2)
     {
       Stencil fl = flag (me);
-      fl.translate_axis (stem_y[d]*half_space - d * blot / 2, Y_AXIS);
+      fl.translate_axis (stem_y[d] * half_space - d * blot / 2, Y_AXIS);
       fl.translate_axis (stem_width / 2, X_AXIS);
       mol.add_stencil (fl);
     }
index 5e54fe1ce7a714dd04afc3efadb4a1d8096949db..842200c6a07d2c206779f346997f117db346b405 100644 (file)
@@ -13,7 +13,6 @@
 #include "lookup.hh"
 #include "stencil.hh"
 
-
 /*
   TODO: naming add/combine.
 */
@@ -58,7 +57,6 @@ LY_DEFINE (ly_translate_stencil_axis, "ly:stencil-translate-axis",
   Stencil *q = unsmob_stencil (new_s);
   q->translate_axis (real_amount, Axis (scm_to_int (axis)));
   return new_s;
-
 }
 
 LY_DEFINE (ly_translate_stencil, "ly:stencil-translate",
@@ -294,7 +292,7 @@ LY_DEFINE (ly_interpret_stencil_expression, "ly:interpret-stencil-expression",
   a.arg1 = arg1;
   Offset o = ly_scm2offset (offset);
 
-  interpret_stencil_expression (expr, stencil_interpret_in_scm, (void *) &a, o);
+  interpret_stencil_expression (expr, stencil_interpret_in_scm, (void *) & a, o);
 
   return SCM_UNSPECIFIED;
 }
index 5e102dd5fc0a99cddaf03185f35848764b3ee2c5..05aeefe903fc0cbd39c658ed19ba4df45b332152 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <math.h>
 
-#include <libc-extension.hh>   // isinf
+#include < libc - extension.hh>        // isinf
 
 #include "input-smob.hh"
 #include "font-metric.hh"
@@ -282,7 +282,7 @@ find_expression_fonts (SCM expr)
   fl.fonts_ = SCM_EOL;
 
   interpret_stencil_expression (expr, &find_font_function,
-                               (void *) &fl, Offset (0, 0));
+                               (void *) & fl, Offset (0, 0));
 
   return fl.fonts_;
 }
index fd87ec4afffab98631dcfe236b252c2df3e7ac77..503445facb7caee0502b7aa0debaa2c6baf138bd 100644 (file)
@@ -25,7 +25,6 @@ String_number_engraver::try_music (Music *)
 
 String_number_engraver::String_number_engraver ()
 {
-
 }
 
 /*
index de89a20764f636c31398f5521f8f1e6349068b0c..a5f3624d28aa47fac75ba6cafc5239e3fdf5ffcb 100644 (file)
@@ -74,7 +74,6 @@ System_start_delimiter_engraver::process_music ()
                                             ly_symbol2string (delim_name).to_str0 ());
 
       delim_->set_bound (LEFT, unsmob_grob (get_property ("currentCommandColumn")));
-
     }
 }
 void
@@ -83,7 +82,6 @@ System_start_delimiter_engraver::finalize ()
   if (delim_)
     {
       delim_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn")));
-
     }
 }
 
index 0cbbbf450cab229cbeafe062c1a1eab6dd1055a9..540db7dcacdfc6d8d23a75b737744ea9b18e8662 100644 (file)
@@ -75,7 +75,6 @@ Tempo_performer::try_music (Music *req)
   return true;
 }
 
-
 ADD_TRANSLATOR (Tempo_performer, "", "",
                "metronome-change-event",
                "", "", "");
index 2cbaedefc2667e1bf468162bc4190637b58fb3ec..10500ceba148121507d1a7a12a2380d31ed38882 100644 (file)
@@ -94,4 +94,3 @@ ADD_INTERFACE (Text_interface, "text-interface",
               "A scheme markup text, see @usermanref{Text-markup}.",
               "text baseline-skip word-space");
 
-
index f21432c9e72e8fd4dd3f0a54f61319a0c3043fbb..385c73a4d66eb2d84aadc6ed531ceb0a851ed2c1 100644 (file)
@@ -135,9 +135,10 @@ Text_spanner::print (SCM smob)
        }
     }
   while (flip (&d) != LEFT);
+
   do
     {
-      if (d* span_points[d] > d * edge[-d].extent (X_AXIS)[d])
+      if (d * span_points[d] > d * edge[-d].extent (X_AXIS)[d])
        {
          edge_line[d].translate_axis (span_points[d], X_AXIS);
          m.add_stencil (edge_line[d]);
index 1b6862ec02fe8ed3da6caa4651eb37e89143a344..c7ca5ee6c9eb40928e8b5db93dd1d10dd58a5b7d 100644 (file)
@@ -29,7 +29,6 @@ Tex_font_metric_reader::Tex_font_metric_reader (String name)
   read_header ();
   read_params ();
   read_char_metrics ();
-
 }
 
 static const Real
@@ -114,7 +113,6 @@ Tex_font_metric_reader::read_header ()
      font family and face byte probably aren't.  So we don't read them.  */
   info_.coding_scheme = header_length > 2
     ? get_bcpl_string () : "unspecified";
-
 }
 
 /* Although TFM files are only usable by TeX if they have at least seven
@@ -151,7 +149,6 @@ Tex_font_metric_reader::read_params ()
 
   for (Char_code i = 2; i <= header_.param_word_count; i++)
     info_.parameters[i - 1] = get_U32_fix_scaled ();
-
 }
 
 /* Read every character in the TFM file, storing the result in the
@@ -222,7 +219,7 @@ Tex_font_metric_reader::read_char ()
 #define GET_CHAR_DIMEN(d)                                      \
   if (d##_index != 0)                                          \
     {                                                          \
-      input_.seek_str0 (header_. d##_pos + d##_index*4);       \
+      input_.seek_str0 (header_.d##_pos + d##_index * 4);      \
       tfm_char.d##_fix_ = input_.get_U32 ();                   \
       tfm_char.d##_ = fix_to_real (tfm_char.d##_fix_)          \
        * info_.design_size;                                    \
@@ -257,7 +254,7 @@ Tex_font_metric_reader::read_char ()
 #define KERN_FLAG 128
 
 void
-Tex_font_metric_reader::read_lig_kern_program (Array<Tfm_ligature>* ligatures, Array<Tfm_kern>* kerns)
+Tex_font_metric_reader::read_lig_kern_program (Array<Tfm_ligature> *ligatures, Array<Tfm_kern> *kerns)
 {
   bool end_b;
 
@@ -280,7 +277,6 @@ Tex_font_metric_reader::read_lig_kern_program (Array<Tfm_ligature>* ligatures, A
          input_.set_pos (old_pos);
 
          kerns->push (kern_element);
-
        }
       else
        {
@@ -288,10 +284,8 @@ Tex_font_metric_reader::read_lig_kern_program (Array<Tfm_ligature>* ligatures, A
          ligature_element.character = next_char;
          ligature_element.ligature = remainder;
          ligatures->push (ligature_element);
-
        }
     }
   while (!end_b);
-
 }
 
index 8d86135022a3c0378659ea13f44380412512f0f8..e5aeea72cdb9d9fb97b10586d5660b186cffee5c 100644 (file)
@@ -44,7 +44,7 @@ Tex_font_char_metric::dimensions () const
   Real d = -depth_;
   Real point_constant = 1 PT;
 
-  return Box (Interval (0, width_* point_constant),
+  return Box (Interval (0, width_ * point_constant),
              Interval ((d <? height_) * point_constant,
                        (d >? height_) * point_constant));
 }
index efd6098c5ad5c612e4ea7a838c90bd970f770d5f..4cb3ec1df5a3dfa28d4f34856ac0cd7671e1b28a 100644 (file)
@@ -147,7 +147,6 @@ Tie_engraver::start_translation_timestep ()
 {
   context ()->set_property ("tieMelismaBusy",
                            ly_bool2scm (heads_to_tie_.size ()));
-
 }
 
 void
@@ -160,7 +159,7 @@ Tie_engraver::stop_translation_timestep ()
          heads_to_tie_.clear ();
        }
 
-      for (int i = 0; i< ties_.size (); i++)
+      for (int i = 0; i < ties_.size (); i++)
        {
          typeset_tie (ties_[i]);
        }
@@ -207,7 +206,6 @@ Tie_engraver::typeset_tie (Grob *her)
 
   index_set_cell (her->get_property ("head-pair"), LEFT, new_head_drul[LEFT]->self_scm ());
   index_set_cell (her->get_property ("head-pair"), RIGHT, new_head_drul[RIGHT]->self_scm ());
-
 }
 
 ADD_TRANSLATOR (Tie_engraver,
index 2c0b3c4b32adbc355f6d0caab74408b06aff55eb..f415317ae7fee72df7843ac3198ed67285613f54 100644 (file)
@@ -84,7 +84,6 @@ Tie_performer::start_translation_timestep ()
 {
   context ()->set_property ("tieMelismaBusy",
                            ly_bool2scm (heads_to_tie_.size ()));
-
 }
 
 void
index 59755a8ad712e92cdcbe9de10ae8ead2cc0842aa..3f9037d57798a8f0eba8734b0586cf8cc4922745 100644 (file)
@@ -78,7 +78,7 @@ Tie::get_column_rank (Grob *me, Direction d)
 Real
 Tie::get_position (Grob *me)
 {
-  Direction d = head (me, LEFT) ? LEFT:RIGHT;
+  Direction d = head (me, LEFT) ? LEFT : RIGHT;
   return Staff_symbol_referencer::get_position (head (me, d));
 }
 
@@ -95,8 +95,8 @@ Tie::get_position (Grob *me)
 Direction
 Tie::get_default_dir (Grob *me)
 {
-  Item *sl = head (me, LEFT) ? Rhythmic_head::get_stem (head (me, LEFT)) :0;
-  Item *sr = head (me, RIGHT) ? Rhythmic_head::get_stem (head (me, RIGHT)) :0;
+  Item *sl = head (me, LEFT) ? Rhythmic_head::get_stem (head (me, LEFT)) : 0;
+  Item *sr = head (me, RIGHT) ? Rhythmic_head::get_stem (head (me, RIGHT)) : 0;
   if (sl && sr)
     {
       if (get_grob_direction (sl) == UP
@@ -175,7 +175,7 @@ Tie::get_control_points (SCM smob)
        This correction is due te the shape of the black note head.
       */
       if (Rhythmic_head::duration_log (l) == 2)
-       where += dir* 0.2;
+       where += dir * 0.2;
       left_x = l->extent (l, X_AXIS).linear_combination (where)
        + x_gap_f;
     }
@@ -230,7 +230,7 @@ Tie::get_control_points (SCM smob)
   if (Note_head::has_interface (l) && Rhythmic_head::get_dots (l))
     {
       Grob *dots = Rhythmic_head::get_dots (l);
-      if (fabs (staff_space * Staff_symbol_referencer::get_position (dots) /2
+      if (fabs (staff_space * Staff_symbol_referencer::get_position (dots) / 2
                - ypos) < 0.5)
        {
          ypos += 0.5 * dir;
index 4b9aad5e483540773674d713b9579fe0b55f74f8..b02a15bfa7622ecda583ac73bc1f89ffadae6f73 100644 (file)
@@ -49,7 +49,6 @@ Time_signature_performer::create_audio_elements ()
       audio_ = new Audio_time_signature (b, o);
       Audio_element_info info (audio_, 0);
       announce_element (info);
-
     }
 }
 
index 7edc7ec4fd918993c20e11912e2a10fb74c84aec..a0b9abac3de023da222ac12329f1a71ef7ca8014 100644 (file)
@@ -74,7 +74,6 @@ Timing_translator::measure_length () const
 
 Timing_translator::Timing_translator ()
 {
-
 }
 
 Moment
index 9f192103b95167c1f00b0a7337cd301fbf644292..e1f3408a38b79f441ab928b239ef8baa8d895bf4 100644 (file)
@@ -36,7 +36,6 @@ Translator::do_announces ()
 void
 Translator::process_music ()
 {
-
 }
 
 Translator::Translator ()
@@ -128,7 +127,7 @@ Translator::translator_description () const
 Global_context *
 Translator::get_global_context () const
 {
-  return daddy_context_ ->get_global_context ();
+  return daddy_context_->get_global_context ();
 }
 
 Score_context *
@@ -156,5 +155,4 @@ Translator::must_be_last () const
 void
 Translator::derived_mark () const
 {
-
 }
index dc1f4a3c206bccd0a83b60943af994da06a6fd32..a73c06dec4f7c0e2c1cc52e5fa072d79c583723a 100644 (file)
@@ -210,9 +210,9 @@ Tuplet_bracket::print (SCM smob)
          if (is_number_pair (fl))
            flare[d] += ss * scm_to_double (index_get_cell (fl, d));
          if (is_number_pair (eh))
-           height[d] += -dir * ss *scm_to_double (index_get_cell (eh, d));
+           height[d] += -dir * ss * scm_to_double (index_get_cell (eh, d));
          if (is_number_pair (sp))
-           shorten[d] += ss *scm_to_double (index_get_cell (sp, d));
+           shorten[d] += ss * scm_to_double (index_get_cell (sp, d));
        }
       while (flip (&d) != LEFT);
 
@@ -260,7 +260,7 @@ Tuplet_bracket::make_bracket (Grob *me, // for line properties.
   Direction d = LEFT;
   do
     {
-      straight_corners[d] += -d * shorten[d] /length * dz;
+      straight_corners[d] += -d * shorten[d] / length * dz;
     }
   while (flip (&d) != LEFT);
 
@@ -318,7 +318,7 @@ Tuplet_bracket::calc_position_and_height (Grob *me, Real *offset, Real *dy)
     Use outer non-rest columns to determine slope
   */
   int l = 0;
-  while (l <columns.size () && Note_column::has_rests (columns[l]))
+  while (l < columns.size () && Note_column::has_rests (columns[l]))
     l++;
 
   int r = columns.size ()- 1;
@@ -362,7 +362,7 @@ Tuplet_bracket::calc_position_and_height (Grob *me, Real *offset, Real *dy)
   /*
     Slope.
   */
-  Real factor = columns.size () > 1 ? 1/ (x1 - x0) : 1.0;
+  Real factor = columns.size () > 1 ? 1 / (x1 - x0) : 1.0;
 
   for (int i = 0; i < columns.size (); i++)
     {
@@ -378,7 +378,7 @@ Tuplet_bracket::calc_position_and_height (Grob *me, Real *offset, Real *dy)
     }
 
   // padding
-  *offset += scm_to_double (me->get_property ("padding")) *dir;
+  *offset += scm_to_double (me->get_property ("padding")) * dir;
 
   /*
     horizontal brackets should not collide with staff lines.
@@ -396,7 +396,6 @@ Tuplet_bracket::calc_position_and_height (Grob *me, Real *offset, Real *dy)
 
       *offset *= 0.5 * ss;
     }
-
 }
 
 /*
@@ -413,7 +412,7 @@ Tuplet_bracket::before_line_breaking (SCM smob)
   for (int i = columns.size (); i--;)
     {
       Grob *s = Note_column::get_stem (columns[i]);
-      Grob *b = s ? Stem::get_beam (s): 0;
+      Grob *b = s ? Stem::get_beam (s) : 0;
       if (b)
        me->add_dependency (b);
     }
@@ -524,8 +523,6 @@ Tuplet_bracket::add_column (Grob *me, Item *n)
   add_bound_item (dynamic_cast<Spanner *> (me), n);
 }
 
-
-
 ADD_INTERFACE (Tuplet_bracket,
               "tuplet-bracket-interface",
               "A bracket with a number in the middle, used for tuplets.",
index d8e8b03e2d13b9ccf6e9af81fab1996d08b7543a..5bfd385d17b055c04ec703035b5ea854716a54bf 100644 (file)
@@ -107,9 +107,9 @@ vaticana_brew_flexa (Grob *me,
    * Compensate optical illusion regarding vertical position of left
    * and right endings due to curved shape.
    */
-  Real ypos_correction = -0.1*staff_space * sign (interval);
-  Real interval_correction = 0.2*staff_space * sign (interval);
-  Real corrected_interval = interval*staff_space + interval_correction;
+  Real ypos_correction = -0.1 * staff_space * sign (interval);
+  Real interval_correction = 0.2 * staff_space * sign (interval);
+  Real corrected_interval = interval * staff_space + interval_correction;
 
   /*
    * middle curve of flexa shape
@@ -123,7 +123,7 @@ vaticana_brew_flexa (Grob *me,
   Bezier top_curve = curve, bottom_curve = curve;
   for (int i = 0; i < 4; i++)
     {
-      Real curve_thickness = 0.33 * ((3 - i)*left_height + i*right_height);
+      Real curve_thickness = 0.33 * ((3 - i) * left_height + i * right_height);
       top_curve.control_[i] += Offset (0, 0.5 * curve_thickness);
       bottom_curve.control_[i] -= Offset (0, 0.5 * curve_thickness);
     }
@@ -157,12 +157,12 @@ vaticana_brew_flexa (Grob *me,
        * the left end of the bezier curve.
        */
       Box left_edge_box (Interval (0, line_thickness),
-                        Interval (-0.5*left_height, +0.5*left_height));
+                        Interval (-0.5 * left_height, +0.5 * left_height));
       Stencil left_edge = Lookup::filled_box (left_edge_box);
       stencil.add_stencil (left_edge);
 
       Box right_edge_box (Interval (-line_thickness, 0),
-                         Interval (-0.5*right_height, +0.5*right_height));
+                         Interval (-0.5 * right_height, +0.5 * right_height));
       Stencil right_edge = Lookup::filled_box (right_edge_box);
       right_edge.translate_axis (width, X_AXIS);
       right_edge.translate_axis (corrected_interval / 2.0, Y_AXIS);
@@ -184,8 +184,8 @@ vaticana_brew_join (Grob *me, int delta_pitch,
       return Stencil ();
     }
   Interval x_extent = Interval (0, join_thickness);
-  Interval y_extent = (delta_pitch > 0) ?
-    Interval (0, delta_pitch * 0.5 * staff_space) : // ascending join
+  Interval y_extent = (delta_pitch > 0)
+    Interval (0, delta_pitch * 0.5 * staff_space) : // ascending join
     Interval (delta_pitch * 0.5 * staff_space, 0); // descending join
   Box join_box (x_extent, y_extent);
   return Lookup::round_filled_box (join_box, blotdiameter);
@@ -238,9 +238,9 @@ vaticana_brew_primitive (Grob *me)
        * flexa_width.)
        */
       Real staff_space = Staff_symbol_referencer::staff_space (me);
-      Real flexa_width = robust_scm2double (me->get_property ("flexa-width"), 2) *staff_space;
+      Real flexa_width = robust_scm2double (me->get_property ("flexa-width"), 2) * staff_space;
       out
-       = Lookup::blank (Box (Interval (0, 0.5*flexa_width), Interval (0, 0)));
+       = Lookup::blank (Box (Interval (0, 0.5 * flexa_width), Interval (0, 0)));
     }
   else if (!String::compare (glyph_name, "flexa"))
     {
index 1127f2776aed3f41ef2274272482199c0db16d77..eafb4fbb52871645ee4a1b1ddd30fdd6defe42f2 100644 (file)
@@ -54,8 +54,8 @@ Volta_bracket_interface::print (SCM smob)
 
   const char *cs = str.to_str0 ();
   no_vertical_end
-    |= (strcmp (cs, ":|")!= 0 && strcmp (cs, "|:")!= 0 && strcmp (cs, "|.")!= 0
-       && strcmp (cs, ":|:")!= 0 && strcmp (cs, ".|")!= 0);
+    |= (strcmp (cs, ":|") != 0 && strcmp (cs, "|:") != 0 && strcmp (cs, "|.") != 0
+       && strcmp (cs, ":|:") != 0 && strcmp (cs, ".|") != 0);
 
   Output_def *layout = me->get_layout ();
   Real half_space = 0.5;
index 531c6fa02a9bbd6da648f849b66985c829a2ac98..9fe3ee9bb22a314071e668b592111bd4bf59705c 100644 (file)
@@ -37,7 +37,6 @@ protected:
   SCM start_string_;
 
   bool staff_eligible ();
-
 };
 
 Volta_engraver::Volta_engraver ()
@@ -232,7 +231,6 @@ Volta_engraver::stop_translation_timestep ()
       Item *ci = dynamic_cast<Item *> (cc);
       volta_span_->set_bound (LEFT, ci);
     }
-
 }
 
 /*