Home
last modified time | relevance | path

Searched refs:nameobj (Results 1 – 14 of 14) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dmoduleobject.c21 PyObject *nameobj; in PyModule_New() local
25 nameobj = PyString_FromString(name); in PyModule_New()
27 if (m->md_dict == NULL || nameobj == NULL) in PyModule_New()
29 if (PyDict_SetItemString(m->md_dict, "__name__", nameobj) != 0) in PyModule_New()
35 Py_DECREF(nameobj); in PyModule_New()
40 Py_XDECREF(nameobj); in PyModule_New()
63 PyObject *nameobj; in PyModule_GetName() local
70 (nameobj = PyDict_GetItemString(d, "__name__")) == NULL || in PyModule_GetName()
71 !PyString_Check(nameobj)) in PyModule_GetName()
76 return PyString_AsString(nameobj); in PyModule_GetName()
Dweakrefobject.c165 PyObject *nameobj = PyObject_GetAttrString(PyWeakref_GET_OBJECT(self), in weakref_repr() local
167 if (nameobj == NULL) in weakref_repr()
169 else if (PyString_Check(nameobj)) in weakref_repr()
170 name = PyString_AS_STRING(nameobj); in weakref_repr()
178 Py_XDECREF(nameobj); in weakref_repr()
Dtypeobject.c1218 call_method(PyObject *o, char *name, PyObject **nameobj, char *format, ...) in call_method() argument
1224 func = lookup_maybe(o, name, nameobj); in call_method()
1228 PyErr_SetObject(PyExc_AttributeError, *nameobj); in call_method()
1254 call_maybe(PyObject *o, char *name, PyObject **nameobj, char *format, ...) in call_maybe() argument
1260 func = lookup_maybe(o, name, nameobj); in call_maybe()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dmoduleobject.c21 PyObject *nameobj; in PyModule_New() local
25 nameobj = PyString_FromString(name); in PyModule_New()
27 if (m->md_dict == NULL || nameobj == NULL) in PyModule_New()
29 if (PyDict_SetItemString(m->md_dict, "__name__", nameobj) != 0) in PyModule_New()
35 Py_DECREF(nameobj); in PyModule_New()
40 Py_XDECREF(nameobj); in PyModule_New()
63 PyObject *nameobj; in PyModule_GetName() local
70 (nameobj = PyDict_GetItemString(d, "__name__")) == NULL || in PyModule_GetName()
71 !PyString_Check(nameobj)) in PyModule_GetName()
76 return PyString_AsString(nameobj); in PyModule_GetName()
Dweakrefobject.c164 PyObject *nameobj = PyObject_GetAttrString(PyWeakref_GET_OBJECT(self), in weakref_repr() local
166 if (nameobj == NULL) in weakref_repr()
168 else if (PyString_Check(nameobj)) in weakref_repr()
169 name = PyString_AS_STRING(nameobj); in weakref_repr()
185 Py_XDECREF(nameobj); in weakref_repr()
Dtypeobject.c1236 call_method(PyObject *o, char *name, PyObject **nameobj, char *format, ...) in call_method() argument
1242 func = lookup_maybe(o, name, nameobj); in call_method()
1246 PyErr_SetObject(PyExc_AttributeError, *nameobj); in call_method()
1272 call_maybe(PyObject *o, char *name, PyObject **nameobj, char *format, ...) in call_maybe() argument
1278 func = lookup_maybe(o, name, nameobj); in call_maybe()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/
Dfileio.c142 dircheck(fileio* self, PyObject *nameobj) in dircheck() argument
150 PyErr_SetFromErrnoWithFilenameObject(PyExc_IOError, nameobj); in dircheck()
182 PyObject *nameobj, *stringobj = NULL; in fileio_init() local
207 kwlist, &nameobj, &mode, &closefd)) in fileio_init()
210 if (PyFloat_Check(nameobj)) { in fileio_init()
216 fd = _PyLong_AsInt(nameobj); in fileio_init()
227 if (PyUnicode_Check(nameobj)) in fileio_init()
228 widename = PyUnicode_AS_UNICODE(nameobj); in fileio_init()
233 if (PyBytes_Check(nameobj) || PyByteArray_Check(nameobj)) { in fileio_init()
235 if (PyObject_AsCharBuffer(nameobj, &name, &namelen) < 0) in fileio_init()
[all …]
Dbufferedio.c1214 PyObject *nameobj, *res; in buffered_repr() local
1216 nameobj = PyObject_GetAttrString((PyObject *) self, "name"); in buffered_repr()
1217 if (nameobj == NULL) { in buffered_repr()
1225 PyObject *repr = PyObject_Repr(nameobj); in buffered_repr()
1226 Py_DECREF(nameobj); in buffered_repr()
Dtextio.c2370 PyObject *nameobj, *res; in textiowrapper_repr() local
2375 nameobj = PyObject_GetAttrString((PyObject *) self, "name"); in textiowrapper_repr()
2376 if (nameobj == NULL) { in textiowrapper_repr()
2387 namerepr = PyObject_Repr(nameobj); in textiowrapper_repr()
2391 Py_DECREF(nameobj); in textiowrapper_repr()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/
Dfileio.c193 PyObject *nameobj, *stringobj = NULL; in fileio_init() local
213 kwlist, &nameobj, &mode, &closefd)) in fileio_init()
216 if (PyFloat_Check(nameobj)) { in fileio_init()
222 fd = PyLong_AsLong(nameobj); in fileio_init()
233 if (PyUnicode_Check(nameobj)) in fileio_init()
234 widename = PyUnicode_AS_UNICODE(nameobj); in fileio_init()
239 if (PyBytes_Check(nameobj) || PyByteArray_Check(nameobj)) { in fileio_init()
241 if (PyObject_AsCharBuffer(nameobj, &name, &namelen) < 0) in fileio_init()
245 PyObject *u = PyUnicode_FromObject(nameobj); in fileio_init()
363 if (PyObject_SetAttrString((PyObject *)self, "name", nameobj) < 0) in fileio_init()
[all …]
Dbufferedio.c1196 PyObject *nameobj, *res; in buffered_repr() local
1198 nameobj = PyObject_GetAttrString((PyObject *) self, "name"); in buffered_repr()
1199 if (nameobj == NULL) { in buffered_repr()
1207 PyObject *repr = PyObject_Repr(nameobj); in buffered_repr()
1208 Py_DECREF(nameobj); in buffered_repr()
Dtextio.c2322 PyObject *nameobj, *res; in textiowrapper_repr() local
2327 nameobj = PyObject_GetAttrString((PyObject *) self, "name"); in textiowrapper_repr()
2328 if (nameobj == NULL) { in textiowrapper_repr()
2339 namerepr = PyObject_Repr(nameobj); in textiowrapper_repr()
2343 Py_DECREF(nameobj); in textiowrapper_repr()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dpyexpat.c96 PyObject *nameobj; member
154 PyObject *name = hinfo->nameobj; in get_handler_name()
157 hinfo->nameobj = name; in get_handler_name()
721 PyObject *modelobj, *nameobj; in my_ElementDeclHandler() local
737 nameobj = string_intern(self, name); in my_ElementDeclHandler()
738 if (nameobj == NULL) { in my_ElementDeclHandler()
743 args = Py_BuildValue("NN", nameobj, modelobj); in my_ElementDeclHandler()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dpyexpat.c96 PyObject *nameobj; member
154 PyObject *name = hinfo->nameobj; in get_handler_name()
157 hinfo->nameobj = name; in get_handler_name()
721 PyObject *modelobj, *nameobj; in my_ElementDeclHandler() local
737 nameobj = string_intern(self, name); in my_ElementDeclHandler()
738 if (nameobj == NULL) { in my_ElementDeclHandler()
743 args = Py_BuildValue("NN", nameobj, modelobj); in my_ElementDeclHandler()