}
};
+#ifndef LDID_NOTOOLS
class File {
private:
int file_;
return std::string(static_cast<char *>(data_), size_);
}
};
+#endif
namespace ldid {
}
};
+#ifndef LDID_NOTOOLS
static bool Starts(const std::string &lhs, const std::string &rhs) {
return lhs.size() >= rhs.size() && lhs.compare(0, rhs.size(), rhs) == 0;
}
_syscall(rename(temp.c_str(), path.c_str()));
}
+#endif
namespace ldid {
}));
}
+#ifndef LDID_NOTOOLS
static void Unsign(void *idata, size_t isize, std::streambuf &output) {
Allocate(idata, isize, output, fun([](size_t size) -> size_t {
return 0;
void DiskFolder::Find(const std::string &path, const Functor<void (const std::string &, const Functor<void (const Functor<void (std::streambuf &, std::streambuf &)> &)> &)>&code) {
Find(path, "", code);
}
+#endif
SubFolder::SubFolder(Folder &parent, const std::string &path) :
parent_(parent),
}));
}
+#ifndef LDID_NOTOOLS
static size_t copy(std::streambuf &source, std::streambuf &target) {
size_t total(0);
for (;;) {
}
#endif
+#endif
}
+#ifndef LDID_NOTOOLS
int main(int argc, char *argv[]) {
#ifndef LDID_NOSMIME
OpenSSL_add_all_algorithms();
return filee;
}
+#endif