uclmodule.c (242b24828472137ec4411826b86e753d49bd2c39) uclmodule.c (a0409676120c1e558d0ade943019934e0f15118d)
1// Attempts to load a UCL structure from a string
2#include <ucl.h>
3#include <Python.h>
4
5static PyObject *SchemaError;
6
7static PyObject *
8_basic_ucl_type (ucl_object_t const *obj)

--- 66 unchanged lines hidden (view full) ---

75 PyErr_SetString(PyExc_SystemError, "unhandled type");
76 return NULL;
77}
78
79static PyObject *
80_internal_load_ucl (char *uclstr)
81{
82 PyObject *ret;
1// Attempts to load a UCL structure from a string
2#include <ucl.h>
3#include <Python.h>
4
5static PyObject *SchemaError;
6
7static PyObject *
8_basic_ucl_type (ucl_object_t const *obj)

--- 66 unchanged lines hidden (view full) ---

75 PyErr_SetString(PyExc_SystemError, "unhandled type");
76 return NULL;
77}
78
79static PyObject *
80_internal_load_ucl (char *uclstr)
81{
82 PyObject *ret;
83 struct ucl_parser *parser = ucl_parser_new (UCL_PARSER_NO_TIME);
83 struct ucl_parser *parser =
84 ucl_parser_new (UCL_PARSER_NO_TIME|UCL_PARSER_NO_IMPLICIT_ARRAYS);
84 bool r = ucl_parser_add_string(parser, uclstr, 0);
85
86 if (r) {
87 if (ucl_parser_get_error (parser)) {
88 PyErr_SetString(PyExc_ValueError, ucl_parser_get_error(parser));
89 ucl_parser_free(parser);
90 ret = NULL;
91 goto return_with_parser;

--- 243 unchanged lines hidden ---
85 bool r = ucl_parser_add_string(parser, uclstr, 0);
86
87 if (r) {
88 if (ucl_parser_get_error (parser)) {
89 PyErr_SetString(PyExc_ValueError, ucl_parser_get_error(parser));
90 ucl_parser_free(parser);
91 ret = NULL;
92 goto return_with_parser;

--- 243 unchanged lines hidden ---