mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
This commit cleans and modernizes the code base of LIEF.
Among the changes: - It removes the ``and, or, not`` keywords - It updates the Documentation - It moves the internal structures in the ``details::`` namespace
This commit is contained in:
@@ -36,10 +36,14 @@ using setter_t = void (DynamicSharedObject::*)(T);
|
||||
template<>
|
||||
void create<DynamicSharedObject>(py::module& m) {
|
||||
|
||||
//
|
||||
// Dynamic Shared Object object
|
||||
//
|
||||
py::class_<DynamicSharedObject, DynamicEntry>(m, "DynamicSharedObject")
|
||||
py::class_<DynamicSharedObject, DynamicEntry>(m, "DynamicSharedObject",
|
||||
R"delim(
|
||||
Class which represents a ``DT_SONAME`` entry in the dynamic table
|
||||
This kind of entry is usually used no name the original library.
|
||||
|
||||
This entry is not present for executable.
|
||||
)delim")
|
||||
|
||||
.def(py::init<const std::string &>(),
|
||||
"Constructor from library name",
|
||||
"library_name"_a)
|
||||
@@ -59,12 +63,10 @@ void create<DynamicSharedObject>(py::module& m) {
|
||||
})
|
||||
|
||||
.def("__str__",
|
||||
[] (const DynamicSharedObject& dynamicSharedObject)
|
||||
{
|
||||
std::ostringstream stream;
|
||||
stream << dynamicSharedObject;
|
||||
std::string str = stream.str();
|
||||
return str;
|
||||
[] (const DynamicSharedObject& dynamicSharedObject) {
|
||||
std::ostringstream stream;
|
||||
stream << dynamicSharedObject;
|
||||
return stream.str();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user