]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/plist.tcc
release: 0.1.9
[lilypond.git] / flower / include / plist.tcc
index ba4a0f20b037af367921882b11bb42b784f28fc3..07c1a0118f77ae6d0b67afbe3f36d2b05bac88d0 100644 (file)
@@ -1,27 +1,28 @@
 #include "plist.hh"
 
-#define PL_instantiate(a)  template class Link_list<a*>; \
+#define PL_INSTANTIATE(a) class Link_list<a*>; \
        template class PCursor<a*>;
-#define IPL_instantiate(a) PL_instantiate(a); \
+#define IPL_INSTANTIATE(a) PL_INSTANTIATE(a); \
        template class Pointer_list<a*>
        
 template<class T>
 void
 Pointer_list<T>::junk()
 {
-    PCursor<T> c( *this );
-    while (c.ok()) {
+  PCursor<T> c (*this);
+  while (c.ok()) 
+    {
        delete c.remove_p();
     }
 }
 
 template<class T>
 PCursor<T> 
-Link_list<T>::find(T what ) const
+Link_list<T>::find (T what) const
 {
-    PCursor<T> i(*this);
-    for (; i.ok(); i++)
+  PCursor<T> i (*this);
+  for (; i.ok(); i++)
        if (i.ptr() == what)
           break;
-    return i;    
+  return i;    
 }