Lines Matching defs:acc
101 encoder_listencode_list(PyEncoderObject *s, _PyAccu *acc, PyObject *seq, Py_ssize_t indent_level);
103 encoder_listencode_obj(PyEncoderObject *s, _PyAccu *acc, PyObject *obj, Py_ssize_t indent_level);
105 encoder_listencode_dict(PyEncoderObject *s, _PyAccu *acc, PyObject *dct, Py_ssize_t indent_level);
1298 _PyAccu acc;
1302 if (_PyAccu_Init(&acc))
1304 if (encoder_listencode_obj(self, &acc, obj, indent_level)) {
1305 _PyAccu_Destroy(&acc);
1308 return _PyAccu_FinishAsList(&acc);
1392 _steal_accumulate(_PyAccu *acc, PyObject *stolen)
1395 int rval = _PyAccu_Accumulate(acc, stolen);
1401 encoder_listencode_obj(PyEncoderObject *s, _PyAccu *acc,
1412 return _steal_accumulate(acc, cstr);
1419 return _steal_accumulate(acc, encoded);
1425 return _steal_accumulate(acc, encoded);
1431 return _steal_accumulate(acc, encoded);
1436 rv = encoder_listencode_list(s, acc, obj, indent_level);
1443 rv = encoder_listencode_dict(s, acc, obj, indent_level);
1477 rv = encoder_listencode_obj(s, acc, newobj, indent_level);
1497 encoder_listencode_dict(PyEncoderObject *s, _PyAccu *acc,
1518 return _PyAccu_Accumulate(acc, empty_dict);
1536 if (_PyAccu_Accumulate(acc, open_dict))
1602 if (_PyAccu_Accumulate(acc, s->item_separator))
1610 if (_PyAccu_Accumulate(acc, encoded)) {
1615 if (_PyAccu_Accumulate(acc, s->key_separator))
1619 if (encoder_listencode_obj(s, acc, value, indent_level))
1639 if (_PyAccu_Accumulate(acc, close_dict))
1653 encoder_listencode_list(PyEncoderObject *s, _PyAccu *acc,
1676 return _PyAccu_Accumulate(acc, empty_array);
1695 if (_PyAccu_Accumulate(acc, open_array))
1709 if (_PyAccu_Accumulate(acc, s->item_separator))
1712 if (encoder_listencode_obj(s, acc, obj, indent_level))
1727 if (_PyAccu_Accumulate(acc, close_array))