Home
last modified time | relevance | path

Searched refs:co (Results 1 – 25 of 75) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dcodeobject.c50 PyCodeObject *co; in PyCode_New() local
80 co = PyObject_NEW(PyCodeObject, &PyCode_Type); in PyCode_New()
81 if (co != NULL) { in PyCode_New()
82 co->co_argcount = argcount; in PyCode_New()
83 co->co_nlocals = nlocals; in PyCode_New()
84 co->co_stacksize = stacksize; in PyCode_New()
85 co->co_flags = flags; in PyCode_New()
87 co->co_code = code; in PyCode_New()
89 co->co_consts = consts; in PyCode_New()
91 co->co_names = names; in PyCode_New()
[all …]
Dframeobject.c451 PyCodeObject *co; in frame_dealloc() local
475 co = f->f_code; in frame_dealloc()
476 if (co->co_zombieframe == NULL) in frame_dealloc()
477 co->co_zombieframe = f; in frame_dealloc()
486 Py_DECREF(co); in frame_dealloc()
874 PyCodeObject *co; in PyFrame_FastToLocals() local
887 co = f->f_code; in PyFrame_FastToLocals()
888 map = co->co_varnames; in PyFrame_FastToLocals()
894 if (j > co->co_nlocals) in PyFrame_FastToLocals()
895 j = co->co_nlocals; in PyFrame_FastToLocals()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dcodeobject.c50 PyCodeObject *co; in PyCode_New() local
80 co = PyObject_NEW(PyCodeObject, &PyCode_Type); in PyCode_New()
81 if (co != NULL) { in PyCode_New()
82 co->co_argcount = argcount; in PyCode_New()
83 co->co_nlocals = nlocals; in PyCode_New()
84 co->co_stacksize = stacksize; in PyCode_New()
85 co->co_flags = flags; in PyCode_New()
87 co->co_code = code; in PyCode_New()
89 co->co_consts = consts; in PyCode_New()
91 co->co_names = names; in PyCode_New()
[all …]
Dframeobject.c453 PyCodeObject *co; in frame_dealloc() local
477 co = f->f_code; in frame_dealloc()
478 if (co->co_zombieframe == NULL) in frame_dealloc()
479 co->co_zombieframe = f; in frame_dealloc()
488 Py_DECREF(co); in frame_dealloc()
876 PyCodeObject *co; in PyFrame_FastToLocals() local
889 co = f->f_code; in PyFrame_FastToLocals()
890 map = co->co_varnames; in PyFrame_FastToLocals()
896 if (j > co->co_nlocals) in PyFrame_FastToLocals()
897 j = co->co_nlocals; in PyFrame_FastToLocals()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlcorolib.c20 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume() argument
22 if (!lua_checkstack(co, narg)) { in auxresume()
26 if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) { in auxresume()
30 lua_xmove(L, co, narg); in auxresume()
31 status = lua_resume(co, L, narg); in auxresume()
33 int nres = lua_gettop(co); in auxresume()
35 lua_pop(co, nres); /* remove results anyway */ in auxresume()
39 lua_xmove(co, L, nres); /* move yielded values */ in auxresume()
43 lua_xmove(co, L, 1); /* move error message */ in auxresume()
50 lua_State *co = lua_tothread(L, 1); in luaB_coresume() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/
Ddumppyc.py17 co = marshal.load(f)
19 return co
21 def walk(co, match=None): argument
22 if match is None or co.co_name == match:
23 dump(co)
25 dis.dis(co)
26 for obj in co.co_consts:
31 co = loadCode(filename)
32 walk(co, codename)
43 co = compile(buf, filename, "exec") variable
[all …]
Dstacktest.py5 def extract_code_objects(co): argument
6 l = [co]
7 for const in co.co_consts:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_code.py97 def dump(co): argument
101 print "%s: %s" % (attr, getattr(co, "co_" + attr))
102 print "consts:", tuple(consts(co.co_consts))
108 co = _testcapi.code_newempty("filename", "funcname", 15)
109 self.assertEqual(co.co_filename, "filename")
110 self.assertEqual(co.co_name, "funcname")
111 self.assertEqual(co.co_firstlineno, 15)
Dtest_zlib.py168 co = zlib.compressobj()
169 x1 = co.compress(data)
170 x2 = co.flush()
171 self.assertRaises(zlib.error, co.flush) # second flush should not work
184 co = zlib.compressobj(level, method, wbits, memlevel, strategy)
185 x1 = co.compress(HAMLET_SCENE)
186 x2 = co.flush()
195 co = zlib.compressobj()
198 bufs.append(co.compress(data[i:i+256]))
199 bufs.append(co.flush())
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Enquire/
DEnquire.c764 char co[4], oc[4]; /* Comment starter and ender symbols */
924 printf("\n%sFor hints on dealing with the ", co);
1101 co[0]= '/'; oc[0]= ' ';
1102 co[1]= '*'; oc[1]= '*';
1103 co[2]= ' '; oc[2]= '/';
1104 co[3]= '\0'; oc[3]= '\0';
1106 co[0]= '\0'; oc[0]= '\0';
1110 if (L) printf("%slimits.h%s\n", co, oc);
1111 if (F) printf("%sfloat.h%s\n", co, oc);
1114 co, VERSION, ID, WEB, oc);
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dmodulefinder.py290 co = compile(fp.read()+'\n', pathname, 'exec')
296 co = marshal.load(fp)
298 co = None
301 if co:
303 co = self.replace_paths_in_code(co)
304 m.__code__ = co
305 self.scan_code(co, m)
340 def scan_opcodes(self, co, argument
344 code = co.co_code
345 names = co.co_names
[all …]
Ddis.py61 def disassemble(co, lasti=-1): argument
63 code = co.co_code
65 linestarts = dict(findlinestarts(co))
95 print '(' + repr(co.co_consts[oparg]) + ')',
97 print '(' + co.co_names[oparg] + ')',
101 print '(' + co.co_varnames[oparg] + ')',
106 free = co.co_cellvars + co.co_freevars
Dtraceback.py63 co = f.f_code
64 filename = co.co_filename
65 name = co.co_name
97 co = f.f_code
98 filename = co.co_filename
99 name = co.co_name
301 co = f.f_code
302 filename = co.co_filename
303 name = co.co_name
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dmodulefinder.py290 co = compile(fp.read()+'\n', pathname, 'exec')
296 co = marshal.load(fp)
298 co = None
301 if co:
303 co = self.replace_paths_in_code(co)
304 m.__code__ = co
305 self.scan_code(co, m)
340 def scan_opcodes(self, co, argument
344 code = co.co_code
345 names = co.co_names
[all …]
Ddis.py61 def disassemble(co, lasti=-1): argument
63 code = co.co_code
65 linestarts = dict(findlinestarts(co))
95 print '(' + repr(co.co_consts[oparg]) + ')',
97 print '(' + co.co_names[oparg] + ')',
101 print '(' + co.co_varnames[oparg] + ')',
106 free = co.co_cellvars + co.co_freevars
Dtraceback.py63 co = f.f_code
64 filename = co.co_filename
65 name = co.co_name
97 co = f.f_code
98 filename = co.co_filename
99 name = co.co_name
302 co = f.f_code
303 filename = co.co_filename
304 name = co.co_name
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dcode.h86 #define _PyCode_GETCODEPTR(co, pp) \ argument
87 ((*Py_TYPE((co)->co_code)->tp_as_buffer->bf_getreadbuffer) \
88 ((co)->co_code, 0, (void **)(pp)))
98 PyAPI_FUNC(int) _PyCode_CheckLineNumber(PyCodeObject* co,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dcode.h86 #define _PyCode_GETCODEPTR(co, pp) \ argument
87 ((*Py_TYPE((co)->co_code)->tp_as_buffer->bf_getreadbuffer) \
88 ((co)->co_code, 0, (void **)(pp)))
98 PyAPI_FUNC(int) _PyCode_CheckLineNumber(PyCodeObject* co,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/crashers/
Dbogus_code_obj.py17 co = types.CodeType(0, 0, 0, 0, '\x04\x71\x00\x00', (), variable
19 exec co
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Ditertoolsmodule.c2082 combinationsobject *co; in combinations_new() local
2114 co = (combinationsobject *)type->tp_alloc(type, 0); in combinations_new()
2115 if (co == NULL) in combinations_new()
2118 co->pool = pool; in combinations_new()
2119 co->indices = indices; in combinations_new()
2120 co->result = NULL; in combinations_new()
2121 co->r = r; in combinations_new()
2122 co->stopped = r > n ? 1 : 0; in combinations_new()
2124 return (PyObject *)co; in combinations_new()
2134 combinations_dealloc(combinationsobject *co) in combinations_dealloc() argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Ditertoolsmodule.c2043 combinationsobject *co; in combinations_new() local
2075 co = (combinationsobject *)type->tp_alloc(type, 0); in combinations_new()
2076 if (co == NULL) in combinations_new()
2079 co->pool = pool; in combinations_new()
2080 co->indices = indices; in combinations_new()
2081 co->result = NULL; in combinations_new()
2082 co->r = r; in combinations_new()
2083 co->stopped = r > n ? 1 : 0; in combinations_new()
2085 return (PyObject *)co; in combinations_new()
2095 combinations_dealloc(combinationsobject *co) in combinations_dealloc() argument
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/sorcerer/lib/
Dmakefile20 co: target
21 co -l $(SRC) *.h makefile
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dimport.c676 PyImport_ExecCodeModule(char *name, PyObject *co) in PyImport_ExecCodeModule() argument
678 return PyImport_ExecCodeModuleEx(name, co, (char *)NULL); in PyImport_ExecCodeModule()
682 PyImport_ExecCodeModuleEx(char *name, PyObject *co, char *pathname) in PyImport_ExecCodeModuleEx() argument
706 v = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleEx()
713 v = PyEval_EvalCode((PyCodeObject *)co, d, d); in PyImport_ExecCodeModuleEx()
803 PyObject *co; in read_compiled_module() local
805 co = PyMarshal_ReadLastObjectFromFile(fp); in read_compiled_module()
806 if (co == NULL) in read_compiled_module()
808 if (!PyCode_Check(co)) { in read_compiled_module()
811 Py_DECREF(co); in read_compiled_module()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dimport.c644 PyImport_ExecCodeModule(char *name, PyObject *co) in PyImport_ExecCodeModule() argument
646 return PyImport_ExecCodeModuleEx(name, co, (char *)NULL); in PyImport_ExecCodeModule()
650 PyImport_ExecCodeModuleEx(char *name, PyObject *co, char *pathname) in PyImport_ExecCodeModuleEx() argument
674 v = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleEx()
681 v = PyEval_EvalCode((PyCodeObject *)co, d, d); in PyImport_ExecCodeModuleEx()
771 PyObject *co; in read_compiled_module() local
773 co = PyMarshal_ReadLastObjectFromFile(fp); in read_compiled_module()
774 if (co == NULL) in read_compiled_module()
776 if (!PyCode_Check(co)) { in read_compiled_module()
779 Py_DECREF(co); in read_compiled_module()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/
Dimport.c644 PyImport_ExecCodeModule(char *name, PyObject *co) in PyImport_ExecCodeModule() argument
646 return PyImport_ExecCodeModuleEx(name, co, (char *)NULL); in PyImport_ExecCodeModule()
650 PyImport_ExecCodeModuleEx(char *name, PyObject *co, char *pathname) in PyImport_ExecCodeModuleEx() argument
674 v = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleEx()
681 v = PyEval_EvalCode((PyCodeObject *)co, d, d); in PyImport_ExecCodeModuleEx()
771 PyObject *co; in read_compiled_module() local
773 co = PyMarshal_ReadLastObjectFromFile(fp); in read_compiled_module()
774 if (co == NULL) in read_compiled_module()
776 if (!PyCode_Check(co)) { in read_compiled_module()
779 Py_DECREF(co); in read_compiled_module()
[all …]

123