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:
@@ -35,11 +35,12 @@ using setter_t = void (DynamicEntryRpath::*)(T);
|
||||
|
||||
template<>
|
||||
void create<DynamicEntryRpath>(py::module& m) {
|
||||
py::class_<DynamicEntryRpath, DynamicEntry>(m, "DynamicEntryRpath",
|
||||
R"delim(
|
||||
Class which represents a ``DT_RPATH`` entry. This attribute is
|
||||
deprecated (cf. ``man ld``) in favour of ``DT_RUNPATH`` (See :class:`~lief.ELF.DynamicRunPath`)
|
||||
)delim")
|
||||
|
||||
//
|
||||
// Dynamic Entry RPATH object
|
||||
//
|
||||
py::class_<DynamicEntryRpath, DynamicEntry>(m, "DynamicEntryRpath")
|
||||
.def(py::init<const std::string &>(),
|
||||
"Constructor from (r)path",
|
||||
"path"_a = "")
|
||||
@@ -53,14 +54,14 @@ void create<DynamicEntryRpath>(py::module& m) {
|
||||
return safe_string_converter(obj.name());
|
||||
},
|
||||
static_cast<setter_t<const std::string&>>(&DynamicEntryRpath::name),
|
||||
"Return path value")
|
||||
"The actual rpath as a string")
|
||||
|
||||
.def_property("rpath",
|
||||
[] (const DynamicEntryRpath& obj) {
|
||||
return safe_string_converter(obj.rpath());
|
||||
},
|
||||
static_cast<setter_t<const std::string&>>(&DynamicEntryRpath::rpath),
|
||||
"Return path value")
|
||||
"The actual rpath as a string")
|
||||
|
||||
|
||||
.def_property("paths",
|
||||
|
||||
Reference in New Issue
Block a user