• Home
  • Raw
  • Download

Lines Matching refs:co

694 PyImport_ExecCodeModule(char *name, PyObject *co)  in PyImport_ExecCodeModule()  argument
696 return PyImport_ExecCodeModuleEx(name, co, (char *)NULL); in PyImport_ExecCodeModule()
700 PyImport_ExecCodeModuleEx(char *name, PyObject *co, char *pathname) in PyImport_ExecCodeModuleEx() argument
724 v = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleEx()
731 v = PyEval_EvalCode((PyCodeObject *)co, d, d); in PyImport_ExecCodeModuleEx()
821 PyObject *co; in read_compiled_module() local
823 co = PyMarshal_ReadLastObjectFromFile(fp); in read_compiled_module()
824 if (co == NULL) in read_compiled_module()
826 if (!PyCode_Check(co)) { in read_compiled_module()
829 Py_DECREF(co); in read_compiled_module()
832 return (PyCodeObject *)co; in read_compiled_module()
843 PyCodeObject *co; in load_compiled_module() local
853 co = read_compiled_module(cpathname, fp); in load_compiled_module()
854 if (co == NULL) in load_compiled_module()
859 m = PyImport_ExecCodeModuleEx(name, (PyObject *)co, cpathname); in load_compiled_module()
860 Py_DECREF(co); in load_compiled_module()
870 PyCodeObject *co = NULL; in parse_source_module() local
882 co = PyAST_Compile(mod, pathname, NULL, arena); in parse_source_module()
885 return co; in parse_source_module()
929 write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat, time_t mtime) in write_compiled_module() argument
954 PyMarshal_WriteObjectToFile((PyObject *)co, fp, Py_MARSHAL_VERSION); in write_compiled_module()
974 update_code_filenames(PyCodeObject *co, PyObject *oldname, PyObject *newname) in update_code_filenames() argument
979 if (!_PyString_Eq(co->co_filename, oldname)) in update_code_filenames()
982 tmp = co->co_filename; in update_code_filenames()
983 co->co_filename = newname; in update_code_filenames()
984 Py_INCREF(co->co_filename); in update_code_filenames()
987 constants = co->co_consts; in update_code_filenames()
998 update_compiled_module(PyCodeObject *co, char *pathname) in update_compiled_module() argument
1002 if (strcmp(PyString_AsString(co->co_filename), pathname) == 0) in update_compiled_module()
1009 oldname = co->co_filename; in update_compiled_module()
1011 update_code_filenames(co, oldname, newname); in update_compiled_module()
1060 PyCodeObject *co = NULL; in load_source_module() local
1094 co = read_compiled_module(cpathname, fpc); in load_source_module()
1096 if (co == NULL) in load_source_module()
1098 if (update_compiled_module(co, pathname) < 0) in load_source_module()
1106 co = parse_source_module(pathname, fp); in load_source_module()
1107 if (co == NULL) in load_source_module()
1118 write_compiled_module(co, cpathname, &st, mtime); in load_source_module()
1121 m = PyImport_ExecCodeModuleEx(name, (PyObject *)co, pathname); in load_source_module()
1122 Py_DECREF(co); in load_source_module()
1128 Py_XDECREF(co); in load_source_module()
2082 PyObject *co; in PyImport_ImportFrozenModule() local
2102 co = PyMarshal_ReadObjectFromString((char *)p->code, size); in PyImport_ImportFrozenModule()
2103 if (co == NULL) in PyImport_ImportFrozenModule()
2105 if (!PyCode_Check(co)) { in PyImport_ImportFrozenModule()
2127 m = PyImport_ExecCodeModuleEx(name, co, "<frozen>"); in PyImport_ImportFrozenModule()
2130 Py_DECREF(co); in PyImport_ImportFrozenModule()
2134 Py_DECREF(co); in PyImport_ImportFrozenModule()