Lines Matching defs:state
569 void *state = PyModule_GetState(module);
570 assert(state != NULL);
571 return (_PyIO_State *)state;
578 _PyIO_State *state;
579 if (mod == NULL || (state = get_io_state(mod)) == NULL) {
581 "could not find io module state "
585 return state;
590 _PyIO_State *state = get_io_state(mod);
591 if (!state->initialized)
593 Py_VISIT(state->locale_module);
594 Py_VISIT(state->unsupported_operation);
601 _PyIO_State *state = get_io_state(mod);
602 if (!state->initialized)
604 if (state->locale_module != NULL)
605 Py_CLEAR(state->locale_module);
606 Py_CLEAR(state->unsupported_operation);
686 _PyIO_State *state = NULL;
689 state = get_io_state(m);
690 state->initialized = 0;
697 state->unsupported_operation = PyObject_CallFunction(
700 if (state->unsupported_operation == NULL)
702 Py_INCREF(state->unsupported_operation);
704 state->unsupported_operation) < 0)
742 state->initialized = 1;
747 Py_XDECREF(state->unsupported_operation);