summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/struct.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-18 10:21:16 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-18 10:21:16 (GMT)
commit4f18f051936f633473c365d4c91ef7e77fa7feee (patch)
treee49603b80667a8cb2fc4592b5d4248f7cdf3494a /plugins/pychrysalide/struct.c
parentd110791309783e6e30df837a81cf8e14e1ac9641 (diff)
Renamed the [Py]StructObject.
Diffstat (limited to 'plugins/pychrysalide/struct.c')
-rw-r--r--plugins/pychrysalide/struct.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/pychrysalide/struct.c b/plugins/pychrysalide/struct.c
index 2569fa2..28dbc51 100644
--- a/plugins/pychrysalide/struct.c
+++ b/plugins/pychrysalide/struct.c
@@ -30,17 +30,17 @@
-#define STRUCT_OBJ_DOC \
- "PyStructObject is a sugar glue used to transmit C structures to Python." \
- "\n" \
- "For instance, let's consider the following C structure :\n" \
- "\n" \
- " struct _my_struct_t { int a; int b } var;\n" \
- "\n" \
- "Such a structure will be translated into a Python dictionary.\n" \
- "\n" \
- "Each previous field gets then accessible using :\n" \
- "* a direct access: *var.a*;\n" \
+#define STRUCT_OBJ_DOC \
+ "StructObject is a sugar glue used to transmit C structures to Python." \
+ "\n" \
+ "For instance, let's consider the following C structure :\n" \
+ "\n" \
+ " struct _my_struct_t { int a; int b } var;\n" \
+ "\n" \
+ "Such a structure will be translated into a Python dictionary.\n" \
+ "\n" \
+ "Each previous field gets then accessible using :\n" \
+ "* a direct access: *var.a*;\n" \
"* an access by name thanks to the dictionary: *var['b']*."
@@ -126,7 +126,7 @@ PyTypeObject *get_python_py_struct_type(void)
PyVarObject_HEAD_INIT(NULL, 0)
- .tp_name = "pychrysalide.PyStructObject",
+ .tp_name = "pychrysalide.StructObject",
.tp_basicsize = sizeof(PyStructObject),
.tp_getattr = py_struct_getattr,
@@ -150,7 +150,7 @@ PyTypeObject *get_python_py_struct_type(void)
* *
* Paramètres : - *
* *
-* Description : Prend en charge l'objet 'pychrysalide.PyStructObject'. *
+* Description : Prend en charge l'objet 'pychrysalide.StructObject'. *
* *
* Retour : Bilan de l'opération. *
* *
@@ -160,7 +160,7 @@ PyTypeObject *get_python_py_struct_type(void)
bool ensure_python_py_struct_is_registered(void)
{
- PyTypeObject *type; /* Type Python 'PyStructObject'*/
+ PyTypeObject *type; /* Type Python 'StructObject' */
PyObject *module; /* Module à recompléter */
type = get_python_py_struct_type();