diff options
Diffstat (limited to 'plugins/pychrysalide/glibext/constants.c')
| -rw-r--r-- | plugins/pychrysalide/glibext/constants.c | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/plugins/pychrysalide/glibext/constants.c b/plugins/pychrysalide/glibext/constants.c index 680feaf..e24a6e0 100644 --- a/plugins/pychrysalide/glibext/constants.c +++ b/plugins/pychrysalide/glibext/constants.c @@ -49,8 +49,21 @@  bool define_binary_portion_constants(PyTypeObject *type)  {      bool result;                            /* Bilan à retourner           */ +    PyObject *strdict;                      /* Groupe de chaînes constantes*/      PyObject *values;                       /* Groupe de valeurs à établir */ +    result = create_string_constants_group_to_type(type, "BinaryPortionCode", +                                                   "Selector names for the CSS rendering.", &strdict); + +    if (result) result = extend_string_constants_group(strdict, "RAW", BPC_RAW); +    if (result) result = extend_string_constants_group(strdict, "CODE", BPC_CODE); +    if (result) result = extend_string_constants_group(strdict, "DATA", BPC_DATA); +    if (result) result = extend_string_constants_group(strdict, "DATA_RO", BPC_DATA_RO); +    if (result) result = extend_string_constants_group(strdict, "DISASS_ERROR", BPC_DISASS_ERROR); + +    if (!result) +        goto exit; +      values = PyDict_New();      result = add_const_to_group(values, "NONE", PAC_NONE); | 
