diff options
Diffstat (limited to 'plugins/pychrysalide/struct.c')
-rw-r--r-- | plugins/pychrysalide/struct.c | 28 |
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(); |