X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Fcons.hh;h=dec3e29d64d179d57c8538e81668f7b5af9ead28;hb=7e72a1e50e94a7f9738d62599de79fe7745f600c;hp=a2ebc352d7b423db6ae89fb476b614639036d0f0;hpb=422004486569407b8809da7f3c7053c1e4767bff;p=lilypond.git diff --git a/flower/include/cons.hh b/flower/include/cons.hh index a2ebc352d7..dec3e29d64 100644 --- a/flower/include/cons.hh +++ b/flower/include/cons.hh @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1999 Han-Wen Nienhuys + (c) 1999--2004 Han-Wen Nienhuys */ @@ -40,7 +40,7 @@ class Killing_cons : public Cons { public: Killing_cons (T *t, Cons *p) - : Cons( t,p) + : Cons ( t,p) { } virtual ~Killing_cons (); @@ -57,10 +57,10 @@ Cons *remove_cons (Cons **pp) return knip; } -template int cons_list_size_i (Cons *l) +template int cons_list_size (Cons *l) { int i=0; - while (l) + while (l) { l = l->next_; i++; @@ -86,7 +86,7 @@ Cons * last_cons (Cons * head) Invariants: - (*tail_) is either the head_ pointer, or a next_ pointer from the list. + (*tail_) is either the head_ pointer, or a next_ pointer from the list. **tail_ == NULL */ @@ -115,7 +115,7 @@ public: assert (!c->next_); *nil_pointer_address_ = c; while (*nil_pointer_address_) - nil_pointer_address_ = &(*nil_pointer_address_)->next_; + nil_pointer_address_ = & (*nil_pointer_address_)->next_; } /** PRE: *pp should either be the head_ pointer, or the next_ pointer @@ -123,7 +123,7 @@ public: */ Cons *remove_cons (Cons **pp) { - if (&(*pp)->next_ == nil_pointer_address_) + if (& (*pp)->next_ == nil_pointer_address_) nil_pointer_address_ = pp; return ::remove_cons (pp); @@ -133,7 +133,7 @@ public: void truncate (int i) { Cons **p = &head_; - for (; *p && i; p = &((*p)->next_)) + for (; *p && i; p = & ((*p)->next_)) { i--; } @@ -155,9 +155,9 @@ public: { junk (); } - int size_i () + int size () { - return cons_list_size_i (head_); + return cons_list_size (head_); } };