/* plist.tcc -- implement Pointer_list source file of the Flower Library (c) 1997 Han-Wen Nienhuys */ #ifndef PLIST_TCC #define PLIST_TCC #include "plist.hh" template void Pointer_list::junk() { PCursor c (*this); while (c.ok()) { delete c.remove_p(); } } #ifndef __CYGWIN32__ // ugh should check for some gcc/egcs version #define POINTERLIST_INSTANTIATE(a) template class Pointer_list;\ template class PCursor; #else #define POINTERLIST_INSTANTIATE(T)\ static void force_junk##T ()\ {\ Pointer_list bla;\ bla.junk ();\ } #endif #endif // PLIST_TCC