Lines Matching defs:writer
222 _PyUnicodeWriter writer;
237 _PyUnicodeWriter_Init(&writer);
238 writer.overallocate = 1;
241 writer.min_length = 1 + 1 + (2 + 1) * (Py_SIZE(v) - 1) + 1;
245 writer.min_length = 4;
248 if (_PyUnicodeWriter_WriteChar(&writer, '(') < 0)
256 if (_PyUnicodeWriter_WriteASCIIString(&writer, ", ", 2) < 0)
264 if (_PyUnicodeWriter_WriteStr(&writer, s) < 0) {
271 writer.overallocate = 0;
273 if (_PyUnicodeWriter_WriteChar(&writer, ')') < 0)
277 if (_PyUnicodeWriter_WriteASCIIString(&writer, ",)", 2) < 0)
282 return _PyUnicodeWriter_Finish(&writer);
285 _PyUnicodeWriter_Dealloc(&writer);