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:
rthomas
2022-01-27 18:50:12 +01:00
committed by Romain Thomas
parent 540049d0d9
commit a615adbee4
625 changed files with 15701 additions and 15535 deletions
+5 -2
View File
@@ -42,7 +42,10 @@ template<>
void create<DataCodeEntry>(py::module& m) {
py::class_<DataCodeEntry, LIEF::Object> cls(m, "DataCodeEntry");
py::class_<DataCodeEntry, LIEF::Object> cls(m, "DataCodeEntry",
R"delim(
Interface over an entry in the :class:`~lief.MachO.DataInCode` command
)delim");
cls
.def_property("offset",
@@ -58,7 +61,7 @@ void create<DataCodeEntry>(py::module& m) {
.def_property("type",
static_cast<getter_t<DataCodeEntry::TYPES>>(&DataCodeEntry::type),
static_cast<setter_t<DataCodeEntry::TYPES>>(&DataCodeEntry::type),
"Type of the entry (" RST_CLASS_REF(lief.MachO.DataCodeEntry.TYPES) "")
"Type of the data (" RST_CLASS_REF(lief.MachO.DataCodeEntry.TYPES) "")
.def("__eq__", &DataCodeEntry::operator==)