summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/format/constants.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-04-09 22:23:49 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-04-09 22:23:49 (GMT)
commit5de93a90f20b9ce35d4799d521029f2fde5c6441 (patch)
treebf6cfdafe6d6cef07b561821b5b35d69bff3c60e /plugins/pychrysalide/format/constants.c
parentee138199fe0d7bcc114cfb7001e968c4738a8ce5 (diff)
Created extra flags for binary symbols.
Diffstat (limited to 'plugins/pychrysalide/format/constants.c')
-rw-r--r--plugins/pychrysalide/format/constants.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/pychrysalide/format/constants.c b/plugins/pychrysalide/format/constants.c
index 4ffdc5f..dfa4615 100644
--- a/plugins/pychrysalide/format/constants.c
+++ b/plugins/pychrysalide/format/constants.c
@@ -85,6 +85,20 @@ bool define_binary_symbol_constants(PyTypeObject *type)
result = attach_constants_group_to_type(type, false, "SymbolStatus", values,
"Status of a symbol visibility.");
+ values = PyDict_New();
+
+ result = add_const_to_group(values, "NONE", SFL_NONE);
+ if (result) result = add_const_to_group(values, "PREFIXED_NAME", SFL_PREFIXED_NAME);
+
+ if (!result)
+ {
+ Py_DECREF(values);
+ goto exit;
+ }
+
+ result = attach_constants_group_to_type(type, true, "SymbolFlag", values,
+ "Extra indications for symbols.");
+
exit:
return result;