#include #include #include #ifndef CERR #define CERR std::cerr << __FILE__ << ":" << std::dec << __LINE__ << " : " #endif namespace s11n { namespace plugin { // /** Internal marker type. */ // struct default_path_context {}; // struct path_initer // { // void operator()( path_finder & p ) // { // p.add_path( s11n_CONFIG_PLUGINS_PATH ); // p.add_extension( s11n_CONFIG_DLL_EXTENSION ); // } // }; path_finder & path() { //return ::s11n::Detail::phoenix::instance(); static path_finder bob; static bool donethat = false; if( (!donethat) && (donethat=true) ) { bob.add_path( s11n_CONFIG_PLUGINS_PATH ); bob.add_extension( s11n_CONFIG_DLL_EXTENSION ); // path_initer()( bob ); } return bob; } std::string find( const std::string & basename ) { // CERR << "find("<