Lines Matching refs:rval
95 _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx);
109 encoder_listencode_list(PyEncoderObject *s, PyObject *rval, PyObject *seq, Py_ssize_t indent_level);
111 encoder_listencode_obj(PyEncoderObject *s, PyObject *rval, PyObject *obj, Py_ssize_t indent_level);
113 encoder_listencode_dict(PyEncoderObject *s, PyObject *rval, PyObject *dct, Py_ssize_t indent_level);
203 PyObject *rval; in ascii_escape_unicode() local
224 rval = PyString_FromStringAndSize(NULL, output_size); in ascii_escape_unicode()
225 if (rval == NULL) { in ascii_escape_unicode()
228 output = PyString_AS_STRING(rval); in ascii_escape_unicode()
241 Py_DECREF(rval); in ascii_escape_unicode()
250 if (_PyString_Resize(&rval, output_size) == -1) { in ascii_escape_unicode()
253 output = PyString_AS_STRING(rval); in ascii_escape_unicode()
257 if (_PyString_Resize(&rval, chars) == -1) { in ascii_escape_unicode()
260 return rval; in ascii_escape_unicode()
273 PyObject *rval; in ascii_escape_str() local
295 rval = ascii_escape_unicode(uni); in ascii_escape_str()
297 return rval; in ascii_escape_str()
320 rval = PyString_FromStringAndSize(NULL, output_size); in ascii_escape_str()
321 if (rval == NULL) { in ascii_escape_str()
324 output = PyString_AS_STRING(rval); in ascii_escape_str()
342 Py_DECREF(rval); in ascii_escape_str()
351 if (_PyString_Resize(&rval, output_size) == -1) { in ascii_escape_str()
354 output = PyString_AS_STRING(rval); in ascii_escape_str()
358 if (_PyString_Resize(&rval, chars) == -1) { in ascii_escape_str()
361 return rval; in ascii_escape_str()
406 _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx) { in _build_rval_index_tuple() argument
413 if (rval == NULL) { in _build_rval_index_tuple()
418 Py_DECREF(rval); in _build_rval_index_tuple()
424 Py_DECREF(rval); in _build_rval_index_tuple()
427 PyTuple_SET_ITEM(tpl, 0, rval); in _build_rval_index_tuple()
444 PyObject *rval; in scanstring_str() local
592 rval = join_list_unicode(chunks); in scanstring_str()
593 if (rval == NULL) { in scanstring_str()
598 return rval; in scanstring_str()
617 PyObject *rval; in scanstring_unicode() local
759 rval = join_list_unicode(chunks); in scanstring_unicode()
760 if (rval == NULL) { in scanstring_unicode()
765 return rval; in scanstring_unicode()
789 PyObject *rval; in py_scanstring() local
801 rval = scanstring_str(pystr, end, encoding, strict, &next_end); in py_scanstring()
804 rval = scanstring_unicode(pystr, end, strict, &next_end); in py_scanstring()
812 return _build_rval_index_tuple(rval, next_end); in py_scanstring()
892 PyObject *rval; in _parse_object_str() local
984 rval = PyObject_CallFunctionObjArgs((PyObject *)(&PyDict_Type), in _parse_object_str()
986 if (rval == NULL) in _parse_object_str()
992 val = PyObject_CallFunctionObjArgs(s->object_hook, rval, NULL); in _parse_object_str()
995 Py_DECREF(rval); in _parse_object_str()
996 rval = val; in _parse_object_str()
1000 return rval; in _parse_object_str()
1019 PyObject *rval; in _parse_object_unicode() local
1111 rval = PyObject_CallFunctionObjArgs((PyObject *)(&PyDict_Type), in _parse_object_unicode()
1113 if (rval == NULL) in _parse_object_unicode()
1119 val = PyObject_CallFunctionObjArgs(s->object_hook, rval, NULL); in _parse_object_unicode()
1122 Py_DECREF(rval); in _parse_object_unicode()
1123 rval = val; in _parse_object_unicode()
1127 return rval; in _parse_object_unicode()
1147 PyObject *rval = PyList_New(0); in _parse_array_str() local
1149 if (rval == NULL) in _parse_array_str()
1164 if (PyList_Append(rval, val) == -1) in _parse_array_str()
1195 return rval; in _parse_array_str()
1198 Py_DECREF(rval); in _parse_array_str()
1214 PyObject *rval = PyList_New(0); in _parse_array_unicode() local
1216 if (rval == NULL) in _parse_array_unicode()
1231 if (PyList_Append(rval, val) == -1) in _parse_array_unicode()
1262 return rval; in _parse_array_unicode()
1265 Py_DECREF(rval); in _parse_array_unicode()
1281 PyObject *rval; in _parse_constant() local
1288 rval = PyObject_CallFunctionObjArgs(s->parse_constant, cstr, NULL); in _parse_constant()
1292 return rval; in _parse_constant()
1310 PyObject *rval; in _match_number_str() local
1373 rval = PyObject_CallFunctionObjArgs(s->parse_float, numstr, NULL); in _match_number_str()
1380 rval = PyFloat_FromDouble(d); in _match_number_str()
1386 rval = PyObject_CallFunctionObjArgs(s->parse_int, numstr, NULL); in _match_number_str()
1389 rval = PyInt_FromString(PyString_AS_STRING(numstr), NULL, 10); in _match_number_str()
1394 return rval; in _match_number_str()
1412 PyObject *rval; in _match_number_unicode() local
1473 rval = PyObject_CallFunctionObjArgs(s->parse_float, numstr, NULL); in _match_number_unicode()
1476 rval = PyFloat_FromString(numstr, NULL); in _match_number_unicode()
1481 rval = PyObject_CallFunctionObjArgs(s->parse_int, numstr, NULL); in _match_number_unicode()
1485 return rval; in _match_number_unicode()
1678 PyObject *rval; in scanner_call() local
1689 rval = scan_once_str(s, pystr, idx, &next_idx); in scanner_call()
1692 rval = scan_once_unicode(s, pystr, idx, &next_idx); in scanner_call()
1700 return _build_rval_index_tuple(rval, next_idx); in scanner_call()
1869 PyObject *rval; in encoder_call() local
1877 rval = PyList_New(0); in encoder_call()
1878 if (rval == NULL) in encoder_call()
1880 if (encoder_listencode_obj(s, rval, obj, indent_level)) { in encoder_call()
1881 Py_DECREF(rval); in encoder_call()
1884 return rval; in encoder_call()
1959 int rval = PyList_Append(lst, stolen); in _steal_list_append() local
1961 return rval; in _steal_list_append()
1965 encoder_listencode_obj(PyEncoderObject *s, PyObject *rval, PyObject *obj, Py_ssize_t indent_level) in encoder_listencode_obj() argument
1975 return _steal_list_append(rval, cstr); in encoder_listencode_obj()
1982 return _steal_list_append(rval, encoded); in encoder_listencode_obj()
1988 return _steal_list_append(rval, encoded); in encoder_listencode_obj()
1994 return _steal_list_append(rval, encoded); in encoder_listencode_obj()
1999 rv = encoder_listencode_list(s, rval, obj, indent_level); in encoder_listencode_obj()
2006 rv = encoder_listencode_dict(s, rval, obj, indent_level); in encoder_listencode_obj()
2040 rv = encoder_listencode_obj(s, rval, newobj, indent_level); in encoder_listencode_obj()
2060 encoder_listencode_dict(PyEncoderObject *s, PyObject *rval, PyObject *dct, Py_ssize_t indent_level) in encoder_listencode_dict() argument
2082 return PyList_Append(rval, empty_dict); in encoder_listencode_dict()
2100 if (PyList_Append(rval, open_dict)) in encoder_listencode_dict()
2155 if (PyList_Append(rval, s->item_separator)) in encoder_listencode_dict()
2167 if (PyList_Append(rval, encoded)) { in encoder_listencode_dict()
2172 if (PyList_Append(rval, s->key_separator)) in encoder_listencode_dict()
2174 if (encoder_listencode_obj(s, rval, value, indent_level)) in encoder_listencode_dict()
2197 if (PyList_Append(rval, close_dict)) in encoder_listencode_dict()
2212 encoder_listencode_list(PyEncoderObject *s, PyObject *rval, PyObject *seq, Py_ssize_t indent_level) in encoder_listencode_list() argument
2235 return PyList_Append(rval, empty_array); in encoder_listencode_list()
2254 if (PyList_Append(rval, open_array)) in encoder_listencode_list()
2268 if (PyList_Append(rval, s->item_separator)) in encoder_listencode_list()
2271 if (encoder_listencode_obj(s, rval, obj, indent_level)) in encoder_listencode_list()
2287 if (PyList_Append(rval, close_array)) in encoder_listencode_list()