summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-18 22:02:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-18 22:02:09 (GMT)
commit93b452d5258aa07d24ec233f2de930343be1d974 (patch)
tree531d9067191628f534a9ba9b0512ba16f2c23e67
parent041056d04032d41a5c092c62cbfd67b199094991 (diff)
Extended the documentation for the SymIterator Python class.
-rw-r--r--plugins/pychrysalide/format/symiter.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/pychrysalide/format/symiter.c b/plugins/pychrysalide/format/symiter.c
index 53ad17a..c98b000 100644
--- a/plugins/pychrysalide/format/symiter.c
+++ b/plugins/pychrysalide/format/symiter.c
@@ -37,6 +37,13 @@
+#define SYM_ITERATOR_DOC \
+ "Iterator for Chrysalide symbols registered in a given format.\n" \
+ "\n" \
+ "This iterator is built when accessing to the" \
+ " pychrysalide.format.BinFormat.symbols field."
+
+
/* Transcription d'un itérateur en Python */
typedef struct _PySymIterator
{
@@ -192,7 +199,7 @@ PyTypeObject *get_python_sym_iterator_type(void)
.tp_flags = Py_TPFLAGS_DEFAULT,
- .tp_doc = "Iterator for Chrysalide symbols registered in a given format.",
+ .tp_doc = SYM_ITERATOR_DOC,
.tp_iter = PyObject_SelfIter,
.tp_iternext = (iternextfunc)py_sym_iterator_next,