]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.20
authorfred <fred>
Sun, 12 Jan 1997 19:57:30 +0000 (19:57 +0000)
committerfred <fred>
Sun, 12 Jan 1997 19:57:30 +0000 (19:57 +0000)
flower/plist.hh

index 0aedfba60b6134aedc714a09cf07a3366949db4c..f5913c1299b33a2268b736d424581fef62ec6117 100644 (file)
@@ -24,7 +24,8 @@ class PointerList : public List<void *>
     void concatenate(PointerList<T> const &s) { List<void*>::concatenate(s); }
     PointerList() {}
 };
-/** This class does no deletion of the pointers, but it knows how to
+/**
+  This class does no deletion of the pointers, but it knows how to
   copy itself (shallow copy). We could have derived it from List<T>,
   but this design saves a lot of code dup; for all PointerLists in the
   program only one parent List<void*> is instantiated.  */
@@ -47,6 +48,7 @@ struct IPointerList : public PointerList<T> {
   You have to copy this yourself, or use the macro PointerList__copy
   
   */
+
 #define IPointerList__copy(T, to, from, op)   \
   for (PCursor<T> _pc_(from); _pc_.ok(); _pc_++)\
       to.bottom().add(_pc_->op)\
@@ -57,8 +59,10 @@ template<class T>
 void PL_copy(IPointerList<T*> &dst,IPointerList<T*> const&src);
 
 
-#define PL_instantiate(a)  template class PointerList<a*>
-#define IPL_instantiate(a) PL_instantiate(a); template class IPointerList<a*>
+#define PL_instantiate(a)  template class PointerList<a*>; \
+       template class PCursor<a*>;
+#define IPL_instantiate(a) PL_instantiate(a); \
+       template class IPointerList<a*>
 
 #include "plist.inl"