Mercurial > hg > vampy
comparison PyPlugScanner.cpp @ 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 | 7648f3f2fa14 |
children |
comparison
equal
deleted
inserted
replaced
28:5139bf30f208 | 29:e80caada79a8 |
---|---|
177 if (!d) return files; | 177 if (!d) return files; |
178 | 178 |
179 struct dirent *e = 0; | 179 struct dirent *e = 0; |
180 while ((e = readdir(d))) { | 180 while ((e = readdir(d))) { |
181 | 181 |
182 if (!(e->d_type & DT_REG) && (e->d_type != DT_UNKNOWN)) continue; | |
183 | |
184 if (!e->d_name) continue; | 182 if (!e->d_name) continue; |
185 | 183 |
186 size_t len = strlen(e->d_name); | 184 size_t len = strlen(e->d_name); |
187 if (len < extlen + 2 || | 185 if (len < extlen + 2 || |
188 e->d_name + len - extlen - 1 != "." + extension) { | 186 e->d_name + len - extlen - 1 != "." + extension) { |