Lines Matching refs:wf
466 WFILE wf; in PyMarshal_WriteLongToFile() local
467 wf.fp = fp; in PyMarshal_WriteLongToFile()
468 wf.str = NULL; in PyMarshal_WriteLongToFile()
469 wf.ptr = NULL; in PyMarshal_WriteLongToFile()
470 wf.end = NULL; in PyMarshal_WriteLongToFile()
471 wf.error = WFERR_OK; in PyMarshal_WriteLongToFile()
472 wf.depth = 0; in PyMarshal_WriteLongToFile()
473 wf.strings = NULL; in PyMarshal_WriteLongToFile()
474 wf.version = version; in PyMarshal_WriteLongToFile()
475 w_long(x, &wf); in PyMarshal_WriteLongToFile()
481 WFILE wf; in PyMarshal_WriteObjectToFile() local
482 wf.fp = fp; in PyMarshal_WriteObjectToFile()
483 wf.str = NULL; in PyMarshal_WriteObjectToFile()
484 wf.ptr = NULL; in PyMarshal_WriteObjectToFile()
485 wf.end = NULL; in PyMarshal_WriteObjectToFile()
486 wf.error = WFERR_OK; in PyMarshal_WriteObjectToFile()
487 wf.depth = 0; in PyMarshal_WriteObjectToFile()
488 wf.strings = (version > 0) ? PyDict_New() : NULL; in PyMarshal_WriteObjectToFile()
489 wf.version = version; in PyMarshal_WriteObjectToFile()
490 w_object(x, &wf); in PyMarshal_WriteObjectToFile()
491 Py_XDECREF(wf.strings); in PyMarshal_WriteObjectToFile()
1220 WFILE wf; in PyMarshal_WriteObjectToString() local
1221 wf.fp = NULL; in PyMarshal_WriteObjectToString()
1222 wf.str = PyString_FromStringAndSize((char *)NULL, 50); in PyMarshal_WriteObjectToString()
1223 if (wf.str == NULL) in PyMarshal_WriteObjectToString()
1225 wf.ptr = PyString_AS_STRING((PyStringObject *)wf.str); in PyMarshal_WriteObjectToString()
1226 wf.end = wf.ptr + PyString_Size(wf.str); in PyMarshal_WriteObjectToString()
1227 wf.error = WFERR_OK; in PyMarshal_WriteObjectToString()
1228 wf.depth = 0; in PyMarshal_WriteObjectToString()
1229 wf.version = version; in PyMarshal_WriteObjectToString()
1230 wf.strings = (version > 0) ? PyDict_New() : NULL; in PyMarshal_WriteObjectToString()
1231 w_object(x, &wf); in PyMarshal_WriteObjectToString()
1232 Py_XDECREF(wf.strings); in PyMarshal_WriteObjectToString()
1233 if (wf.str != NULL) { in PyMarshal_WriteObjectToString()
1234 char *base = PyString_AS_STRING((PyStringObject *)wf.str); in PyMarshal_WriteObjectToString()
1235 if (wf.ptr - base > PY_SSIZE_T_MAX) { in PyMarshal_WriteObjectToString()
1236 Py_DECREF(wf.str); in PyMarshal_WriteObjectToString()
1241 if (_PyString_Resize(&wf.str, (Py_ssize_t)(wf.ptr - base))) in PyMarshal_WriteObjectToString()
1244 if (wf.error != WFERR_OK) { in PyMarshal_WriteObjectToString()
1245 Py_XDECREF(wf.str); in PyMarshal_WriteObjectToString()
1246 set_error(wf.error); in PyMarshal_WriteObjectToString()
1249 return wf.str; in PyMarshal_WriteObjectToString()
1257 WFILE wf; in marshal_dump() local
1268 wf.fp = PyFile_AsFile(f); in marshal_dump()
1269 wf.str = NULL; in marshal_dump()
1270 wf.ptr = wf.end = NULL; in marshal_dump()
1271 wf.error = WFERR_OK; in marshal_dump()
1272 wf.depth = 0; in marshal_dump()
1273 wf.strings = (version > 0) ? PyDict_New() : 0; in marshal_dump()
1274 wf.version = version; in marshal_dump()
1275 w_object(x, &wf); in marshal_dump()
1276 Py_XDECREF(wf.strings); in marshal_dump()
1277 if (wf.error != WFERR_OK) { in marshal_dump()
1278 set_error(wf.error); in marshal_dump()