Lines Matching refs:wf
466 WFILE wf; in PyMarshal_WriteLongToFile() local
467 wf.fp = fp; in PyMarshal_WriteLongToFile()
468 wf.error = WFERR_OK; in PyMarshal_WriteLongToFile()
469 wf.depth = 0; in PyMarshal_WriteLongToFile()
470 wf.strings = NULL; in PyMarshal_WriteLongToFile()
471 wf.version = version; in PyMarshal_WriteLongToFile()
472 w_long(x, &wf); in PyMarshal_WriteLongToFile()
478 WFILE wf; in PyMarshal_WriteObjectToFile() local
479 wf.fp = fp; in PyMarshal_WriteObjectToFile()
480 wf.error = WFERR_OK; in PyMarshal_WriteObjectToFile()
481 wf.depth = 0; in PyMarshal_WriteObjectToFile()
482 wf.strings = (version > 0) ? PyDict_New() : NULL; in PyMarshal_WriteObjectToFile()
483 wf.version = version; in PyMarshal_WriteObjectToFile()
484 w_object(x, &wf); in PyMarshal_WriteObjectToFile()
485 Py_XDECREF(wf.strings); in PyMarshal_WriteObjectToFile()
1214 WFILE wf; in PyMarshal_WriteObjectToString() local
1215 wf.fp = NULL; in PyMarshal_WriteObjectToString()
1216 wf.str = PyString_FromStringAndSize((char *)NULL, 50); in PyMarshal_WriteObjectToString()
1217 if (wf.str == NULL) in PyMarshal_WriteObjectToString()
1219 wf.ptr = PyString_AS_STRING((PyStringObject *)wf.str); in PyMarshal_WriteObjectToString()
1220 wf.end = wf.ptr + PyString_Size(wf.str); in PyMarshal_WriteObjectToString()
1221 wf.error = WFERR_OK; in PyMarshal_WriteObjectToString()
1222 wf.depth = 0; in PyMarshal_WriteObjectToString()
1223 wf.version = version; in PyMarshal_WriteObjectToString()
1224 wf.strings = (version > 0) ? PyDict_New() : NULL; in PyMarshal_WriteObjectToString()
1225 w_object(x, &wf); in PyMarshal_WriteObjectToString()
1226 Py_XDECREF(wf.strings); in PyMarshal_WriteObjectToString()
1227 if (wf.str != NULL) { in PyMarshal_WriteObjectToString()
1228 char *base = PyString_AS_STRING((PyStringObject *)wf.str); in PyMarshal_WriteObjectToString()
1229 if (wf.ptr - base > PY_SSIZE_T_MAX) { in PyMarshal_WriteObjectToString()
1230 Py_DECREF(wf.str); in PyMarshal_WriteObjectToString()
1235 if (_PyString_Resize(&wf.str, (Py_ssize_t)(wf.ptr - base))) in PyMarshal_WriteObjectToString()
1238 if (wf.error != WFERR_OK) { in PyMarshal_WriteObjectToString()
1239 Py_XDECREF(wf.str); in PyMarshal_WriteObjectToString()
1240 set_error(wf.error); in PyMarshal_WriteObjectToString()
1243 return wf.str; in PyMarshal_WriteObjectToString()
1251 WFILE wf; in marshal_dump() local
1262 wf.fp = PyFile_AsFile(f); in marshal_dump()
1263 wf.str = NULL; in marshal_dump()
1264 wf.ptr = wf.end = NULL; in marshal_dump()
1265 wf.error = WFERR_OK; in marshal_dump()
1266 wf.depth = 0; in marshal_dump()
1267 wf.strings = (version > 0) ? PyDict_New() : 0; in marshal_dump()
1268 wf.version = version; in marshal_dump()
1269 w_object(x, &wf); in marshal_dump()
1270 Py_XDECREF(wf.strings); in marshal_dump()
1271 if (wf.error != WFERR_OK) { in marshal_dump()
1272 set_error(wf.error); in marshal_dump()