]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.16
authorfred <fred>
Wed, 11 Dec 1996 23:24:05 +0000 (23:24 +0000)
committerfred <fred>
Wed, 11 Dec 1996 23:24:05 +0000 (23:24 +0000)
src/paper.cc
src/score.cc
src/staff.cc
src/symbol.cc
src/symtable.cc

index 29fcd240e43598cc25efb5fdbb665163465e0edc..fe2a30d136a9d1f875a16a73bb39863ffd60b4ca 100644 (file)
@@ -4,7 +4,7 @@
 #include "debug.hh"
 #include "lookup.hh"
 #include "dimen.hh"
-#include "textdb.hh"
+
 
 
 // golden ratio
index 2be27345d30d4b38eddf7dfe0d331e059b4e2455..ca468ee6ae3c71698dd5a8448801ee08fc090e26 100644 (file)
@@ -75,41 +75,41 @@ Score::create_cols(Real w)
     c1->musical = false;
     c2->musical = true;
     
-    PCursor<Score_column*> scc(cols_);
+    PCursor<Score_column*> i(cols_);
 
-    for (; scc.ok(); scc++) {
-       assert(scc->when != w);
-       if (scc->when > w)
+    for (; i.ok(); i++) {
+       assert(i->when != w);
+       if (i->when > w)
            break;
     }
 
-    if (!scc.ok()) {
+    if (!i.ok()) {
        cols_.bottom().add(c1);
        cols_.bottom().add(c2);
-       scc = cols_.bottom();
-       scc --;
+       i = cols_.bottom();
+       i --;
     } else {
-       scc.insert(c1);
-       scc.insert(c2);
-       scc -= 2;
+       i.insert(c1);
+       i.insert(c2);
+       i -= 2;
     }
-    return scc;
+    return i;
 }
 
 PCursor<Score_column*>
 Score::find_col(Real w,bool mus)
 {
-    PCursor<Score_column*> scc(cols_);
-    for (; scc.ok(); scc++) {
-       if (scc->when == w && scc->musical == mus)
-           return scc;
-       if (scc->when > w)
+    PCursor<Score_column*> i(cols_);
+    for (; i.ok(); i++) {
+       if (i->when == w && i->musical == mus)
+           return i;
+       if (i->when > w)
            break;
     }
-    scc = create_cols(w);
+    i = create_cols(w);
     if (mus)
-       scc++;
-    return scc;
+       i++;
+    return i;
 }
 
 void
@@ -124,8 +124,8 @@ Real
 Score::last() const
 {    
     Real l = 0;
-    for (PCursor<Staff*> stc(staffs_); stc.ok(); stc++) {
-       l = MAX(l, stc->last());
+    for (PCursor<Staff*> i(staffs_); i.ok(); i++) {
+       l = MAX(l, i->last());
     }
     return l;
 }
index 521d31635dbdb5a6d848bcb38ecde545a9c99913..cbe0e59bbb77130da3d916c76c82ce6776488d78 100644 (file)
@@ -30,12 +30,12 @@ Staff::paper() const
 void
 Staff::clean_cols()
 {
-    PCursor<Staff_column *> stc(cols);
-    for(; stc.ok(); ){
-       if (!stc->score_column->used())
-           stc.del();
+    PCursor<Staff_column *> i(cols);
+    for(; i.ok(); ){
+       if (!i->score_column->used())
+           i.del();
        else
-           stc++;
+           i++;
     }
 }
 
index ce9507f8b830d6dd9572034011d84fb1f4bdeffb..d9ffea7afbb565ae1d13bafd8d0dfebeb0bb1bed 100644 (file)
@@ -1,6 +1,6 @@
 #include "symbol.hh"
 #include "vray.hh"
-#include "textdb.hh"
+
 
 Symbol::Symbol()
     :    dim(Interval(0,0),Interval(0,0))
index bc5d173869d79c60cbd074914581b56d784e7077..87ed983da3e7187d9db0f1b36978644ca0fc823b 100644 (file)
@@ -1,5 +1,4 @@
 #include "misc.hh"
-#include "textdb.hh"
 #include "dimen.hh"
 #include "debug.hh"
 #include "real.hh"
@@ -7,6 +6,7 @@
 #include "assoc.hh"
 #include "associter.hh"
 #include "symtable.hh"
+
 Symtables::Symtables()
 {
 }