• Home
  • Raw
  • Download

Lines Matching refs:rval

96 _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx);
171 PyObject *rval; in ascii_escape_unicode() local
206 rval = PyUnicode_New(output_size, 127); in ascii_escape_unicode()
207 if (rval == NULL) { in ascii_escape_unicode()
210 output = PyUnicode_1BYTE_DATA(rval); in ascii_escape_unicode()
224 assert(_PyUnicode_CheckConsistency(rval, 1)); in ascii_escape_unicode()
226 return rval; in ascii_escape_unicode()
237 PyObject *rval; in escape_unicode() local
272 rval = PyUnicode_New(output_size, maxchar); in escape_unicode()
273 if (rval == NULL) in escape_unicode()
276 kind = PyUnicode_KIND(rval); in escape_unicode()
308 Py_UCS1 *output = PyUnicode_1BYTE_DATA(rval); in escape_unicode()
311 Py_UCS2 *output = PyUnicode_2BYTE_DATA(rval); in escape_unicode()
314 Py_UCS4 *output = PyUnicode_4BYTE_DATA(rval); in escape_unicode()
321 assert(_PyUnicode_CheckConsistency(rval, 1)); in escape_unicode()
323 return rval; in escape_unicode()
359 _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx) { in _build_rval_index_tuple() argument
366 if (rval == NULL) { in _build_rval_index_tuple()
371 Py_DECREF(rval); in _build_rval_index_tuple()
377 Py_DECREF(rval); in _build_rval_index_tuple()
380 PyTuple_SET_ITEM(tpl, 0, rval); in _build_rval_index_tuple()
411 PyObject *rval = NULL; in scanstring_unicode() local
555 rval = chunk; in scanstring_unicode()
557 rval = PyUnicode_FromStringAndSize("", 0); in scanstring_unicode()
561 rval = join_list_unicode(chunks); in scanstring_unicode() local
562 if (rval == NULL) { in scanstring_unicode()
569 return rval; in scanstring_unicode()
594 PyObject *rval; in py_scanstring() local
602 rval = scanstring_unicode(pystr, end, strict, &next_end); in py_scanstring()
610 return _build_rval_index_tuple(rval, next_end); in py_scanstring()
622 PyObject *rval; in py_encode_basestring_ascii() local
626 rval = ascii_escape_unicode(pystr); in py_encode_basestring_ascii()
634 return rval; in py_encode_basestring_ascii()
647 PyObject *rval; in py_encode_basestring() local
651 rval = escape_unicode(pystr); in py_encode_basestring()
659 return rval; in py_encode_basestring()
714 PyObject *rval = NULL; in _parse_object_unicode() local
727 rval = PyList_New(0); in _parse_object_unicode()
729 rval = PyDict_New(); in _parse_object_unicode()
730 if (rval == NULL) in _parse_object_unicode()
781 if (PyList_Append(rval, item) == -1) { in _parse_object_unicode()
788 if (PyDict_SetItem(rval, key, val) < 0) in _parse_object_unicode()
815 val = PyObject_CallFunctionObjArgs(s->object_pairs_hook, rval, NULL); in _parse_object_unicode()
816 Py_DECREF(rval); in _parse_object_unicode()
822 val = PyObject_CallFunctionObjArgs(s->object_hook, rval, NULL); in _parse_object_unicode()
823 Py_DECREF(rval); in _parse_object_unicode()
826 return rval; in _parse_object_unicode()
830 Py_XDECREF(rval); in _parse_object_unicode()
847 PyObject *rval; in _parse_array_unicode() local
853 rval = PyList_New(0); in _parse_array_unicode()
854 if (rval == NULL) in _parse_array_unicode()
873 if (PyList_Append(rval, val) == -1) in _parse_array_unicode()
902 return rval; in _parse_array_unicode()
905 Py_DECREF(rval); in _parse_array_unicode()
921 PyObject *rval; in _parse_constant() local
928 rval = PyObject_CallFunctionObjArgs(s->parse_constant, cstr, NULL); in _parse_constant()
932 return rval; in _parse_constant()
951 PyObject *rval; in _match_number_unicode() local
1027 rval = PyObject_CallFunctionObjArgs(custom_func, numstr, NULL); in _match_number_unicode()
1043 rval = PyFloat_FromString(numstr); in _match_number_unicode()
1045 rval = PyLong_FromString(buf, NULL, 10); in _match_number_unicode()
1049 return rval; in _match_number_unicode()
1169 PyObject *rval; in scanner_call() local
1180 rval = scan_once_unicode(s, pystr, idx, &next_idx); in scanner_call()
1189 if (rval == NULL) in scanner_call()
1191 return _build_rval_index_tuple(rval, next_idx); in scanner_call()
1452 int rval = _PyAccu_Accumulate(acc, stolen); in _steal_accumulate() local
1454 return rval; in _steal_accumulate()