Mercurial > hg > vampy
changeset 29:e80caada79a8
* Remove nonportable and unnecessary opendir features test (originally
inherited from the Vamp SDK's implementation of a similar plugin lookup,
but it's been gone from the SDK for ages now)
* Comment out some excessive debug output
author | cannam |
---|---|
date | Tue, 22 Sep 2009 15:20:44 +0000 |
parents | 5139bf30f208 |
children | 6dda7feaac1f 3d1f3d5dff10 |
files | PyPlugScanner.cpp pyvamp-main.cpp |
diffstat | 2 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/PyPlugScanner.cpp Tue Aug 25 08:49:22 2009 +0000 +++ b/PyPlugScanner.cpp Tue Sep 22 15:20:44 2009 +0000 @@ -179,8 +179,6 @@ struct dirent *e = 0; while ((e = readdir(d))) { - if (!(e->d_type & DT_REG) && (e->d_type != DT_UNKNOWN)) continue; - if (!e->d_name) continue; size_t len = strlen(e->d_name);
--- a/pyvamp-main.cpp Tue Aug 25 08:49:22 2009 +0000 +++ b/pyvamp-main.cpp Tue Sep 22 15:20:44 2009 +0000 @@ -72,21 +72,21 @@ static bool tryPreload(string name) { - cerr << "Trying to load Python interpreter library \"" << name << "\"..."; +// cerr << "Trying to load Python interpreter library \"" << name << "\"..."; #ifdef _WIN32 void *lib = LoadLibrary(name.c_str()); if (!lib) { - cerr << " failed" << endl; +// cerr << " failed" << endl; return false; } #else void *lib = dlopen(name.c_str(), RTLD_NOW | RTLD_GLOBAL); if (!lib) { - cerr << " failed" << endl; +// cerr << " failed" << endl; return false; } #endif - cerr << " succeeded" << endl; +// cerr << " succeeded" << endl; return true; }