Home
last modified time | relevance | path

Searched refs:PyScannerType (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/python/cpython3/Modules/
D_json.c18 PyObject *PyScannerType; member
1820 state->PyScannerType = PyType_FromSpec(&PyScannerType_spec); in _json_exec()
1821 if (state->PyScannerType == NULL) { in _json_exec()
1824 Py_INCREF(state->PyScannerType); in _json_exec()
1825 if (PyModule_AddObject(module, "make_scanner", state->PyScannerType) < 0) { in _json_exec()
1826 Py_DECREF(state->PyScannerType); in _json_exec()
1847 Py_VISIT(state->PyScannerType); in _jsonmodule_traverse()
1856 Py_CLEAR(state->PyScannerType); in _jsonmodule_clear()
/aosp_15_r20/external/python/cpython2/Modules/
D_json.c25 #define PyScanner_Check(op) PyObject_TypeCheck(op, &PyScannerType)
26 #define PyScanner_CheckExact(op) (Py_TYPE(op) == &PyScannerType)
30 static PyTypeObject PyScannerType; variable
1769 PyTypeObject PyScannerType = { variable
2406 if (PyType_Ready(&PyScannerType) < 0) in init_json()
2413 Py_INCREF((PyObject*)&PyScannerType); in init_json()
2414 PyModule_AddObject(m, "make_scanner", (PyObject*)&PyScannerType); in init_json()