/third_party/python/Objects/ |
D | classobject.c | 49 PyObject **newargs = (PyObject**)args - 1; in method_vectorcall() local 51 PyObject *tmp = newargs[0]; in method_vectorcall() 52 newargs[0] = self; in method_vectorcall() 53 result = _PyObject_VectorcallTstate(tstate, func, newargs, in method_vectorcall() 55 newargs[0] = tmp; in method_vectorcall() 65 PyObject **newargs; in method_vectorcall() local 67 newargs = newargs_stack; in method_vectorcall() 70 newargs = PyMem_Malloc((totalargs+1) * sizeof(PyObject *)); in method_vectorcall() 71 if (newargs == NULL) { in method_vectorcall() 77 newargs[0] = self; in method_vectorcall() [all …]
|
D | genericaliasobject.c | 322 PyObject *newargs = PyTuple_New(nargs); in _Py_subs_parameters() local 323 if (newargs == NULL) { in _Py_subs_parameters() 330 Py_DECREF(newargs); in _Py_subs_parameters() 342 Py_DECREF(newargs); in _Py_subs_parameters() 346 PyTuple_SET_ITEM(newargs, iarg, arg); in _Py_subs_parameters() 349 return newargs; in _Py_subs_parameters() 364 PyObject *newargs = _Py_subs_parameters(self, alias->args, alias->parameters, item); in ga_getitem() local 365 if (newargs == NULL) { in ga_getitem() 369 PyObject *res = Py_GenericAlias(alias->origin, newargs); in ga_getitem() 371 Py_DECREF(newargs); in ga_getitem()
|
D | unionobject.c | 373 PyObject *newargs = _Py_subs_parameters(self, alias->args, alias->parameters, item); in union_getitem() local 374 if (newargs == NULL) { in union_getitem() 379 Py_ssize_t nargs = PyTuple_GET_SIZE(newargs); in union_getitem() 381 res = make_union(newargs); in union_getitem() 384 res = PyTuple_GET_ITEM(newargs, 0); in union_getitem() 387 PyObject *arg = PyTuple_GET_ITEM(newargs, iarg); in union_getitem() 394 Py_DECREF(newargs); in union_getitem()
|
D | call.c | 146 PyObject *const *newargs; in _PyObject_FastCallDictTstate() local 147 newargs = _PyStack_UnpackDict(tstate, in _PyObject_FastCallDictTstate() 150 if (newargs == NULL) { in _PyObject_FastCallDictTstate() 153 res = func(callable, newargs, in _PyObject_FastCallDictTstate() 155 _PyStack_UnpackDict_Free(newargs, nargs, kwnames); in _PyObject_FastCallDictTstate()
|
D | descrobject.c | 1080 PyObject *newargs[3]; in mappingproxy_get() local 1081 newargs[0] = pp->mapping; in mappingproxy_get() 1082 newargs[2] = Py_None; in mappingproxy_get() 1085 &newargs[1], &newargs[2])) in mappingproxy_get() 1090 return _PyObject_VectorcallMethodId(&PyId_get, newargs, in mappingproxy_get()
|
D | typeobject.c | 5043 PyObject *newargs = _PyObject_CallNoArg(getnewargs_ex); in _PyObject_GetNewArguments() local 5045 if (newargs == NULL) { in _PyObject_GetNewArguments() 5048 if (!PyTuple_Check(newargs)) { in _PyObject_GetNewArguments() 5051 "not '%.200s'", Py_TYPE(newargs)->tp_name); in _PyObject_GetNewArguments() 5052 Py_DECREF(newargs); in _PyObject_GetNewArguments() 5055 if (PyTuple_GET_SIZE(newargs) != 2) { in _PyObject_GetNewArguments() 5058 "length 2, not %zd", PyTuple_GET_SIZE(newargs)); in _PyObject_GetNewArguments() 5059 Py_DECREF(newargs); in _PyObject_GetNewArguments() 5062 *args = PyTuple_GET_ITEM(newargs, 0); in _PyObject_GetNewArguments() 5064 *kwargs = PyTuple_GET_ITEM(newargs, 1); in _PyObject_GetNewArguments() [all …]
|
D | exceptions.c | 844 PyObject *newargs; in oserror_parse_args() local 861 newargs = PyTuple_New(nargs); in oserror_parse_args() 862 if (!newargs) in oserror_parse_args() 864 PyTuple_SET_ITEM(newargs, 0, *myerrno); in oserror_parse_args() 868 PyTuple_SET_ITEM(newargs, i, val); in oserror_parse_args() 871 args = *p_args = newargs; in oserror_parse_args()
|
/third_party/toybox/toys/posix/ |
D | find.c | 99 char **newargs; in flush_exec() local 121 newargs = xmalloc(sizeof(char *)*(aa->arglen+bb->namecount+1)); in flush_exec() 123 memcpy(newargs, aa->argstart, sizeof(char *)*aa->arglen); in flush_exec() 124 newargs[aa->arglen] = 0; in flush_exec() 130 memcpy(newargs, aa->argstart, sizeof(char *)*pos); in flush_exec() 131 for (dl = bb->names; dl; dl = dl->next) newargs[pos++] = dl->data; in flush_exec() 133 memcpy(newargs+pos, aa->argstart+aa->curly+1, sizeof(char *)*rest); in flush_exec() 134 newargs[pos+rest] = 0; in flush_exec() 137 rc = xrun(newargs); in flush_exec()
|
/third_party/python/Modules/ |
D | _operator.c | 1654 PyObject *newargs; in methodcaller_reduce() local 1658 newargs = PyTuple_New(1 + callargcount); in methodcaller_reduce() 1659 if (newargs == NULL) in methodcaller_reduce() 1662 PyTuple_SET_ITEM(newargs, 0, mc->name); in methodcaller_reduce() 1666 PyTuple_SET_ITEM(newargs, i + 1, arg); in methodcaller_reduce() 1668 return Py_BuildValue("ON", Py_TYPE(mc), newargs); in methodcaller_reduce() 1674 PyObject *newargs[2]; in methodcaller_reduce() local 1685 newargs[0] = (PyObject *)Py_TYPE(mc); in methodcaller_reduce() 1686 newargs[1] = mc->name; in methodcaller_reduce() 1687 constructor = PyObject_VectorcallDict(partial, newargs, 2, mc->kwds); in methodcaller_reduce()
|
D | _functoolsmodule.c | 229 PyObject **newargs = (PyObject **)args - 1; in partial_vectorcall() local 230 PyObject *tmp = newargs[0]; in partial_vectorcall() 231 newargs[0] = pto_args[0]; in partial_vectorcall() 233 newargs, nargs + 1, kwnames); in partial_vectorcall() 234 newargs[0] = tmp; in partial_vectorcall()
|
D | _collectionsmodule.c | 2212 PyObject *newargs; in defdict_init() local 2215 newargs = PyTuple_New(0); in defdict_init() 2226 newargs = PySequence_GetSlice(args, 1, n); in defdict_init() 2228 if (newargs == NULL) in defdict_init() 2232 result = PyDict_Type.tp_init(self, newargs, kwds); in defdict_init() 2233 Py_DECREF(newargs); in defdict_init()
|
D | _pickle.c | 4068 PyObject *newargs; in save_reduce() local 4073 newargs = PyTuple_New(PyTuple_GET_SIZE(args) + 2); in save_reduce() 4074 if (newargs == NULL) in save_reduce() 4079 Py_DECREF(newargs); in save_reduce() 4082 PyTuple_SET_ITEM(newargs, 0, cls_new); in save_reduce() 4084 PyTuple_SET_ITEM(newargs, 1, cls); in save_reduce() 4088 PyTuple_SET_ITEM(newargs, i + 2, item); in save_reduce() 4091 callable = PyObject_Call(st->partial, newargs, kwargs); in save_reduce() 4092 Py_DECREF(newargs); in save_reduce() 4096 newargs = PyTuple_New(0); in save_reduce() [all …]
|
D | itertoolsmodule.c | 1924 PyObject *newargs = PySequence_Tuple(args); in starmap_next() local 1926 if (newargs == NULL) in starmap_next() 1928 args = newargs; in starmap_next()
|
/third_party/skia/third_party/externals/libwebp/swig/ |
D | libwebp_python_wrap.c | 1435 PyObject *newargs; member 1470 data->newargs = obj; in SwigPyClientData_New() 1480 data->newargs = PyTuple_New(1); in SwigPyClientData_New() 1481 PyTuple_SetItem(data->newargs, 0, obj); in SwigPyClientData_New() 1483 data->newargs = obj; in SwigPyClientData_New() 1485 Py_INCREF(data->newargs); in SwigPyClientData_New() 1514 Py_XDECREF(data->newargs); in SwigPyClientData_Del() 2511 inst = PyObject_Call(newraw, data->newargs, NULL); in SWIG_Python_NewShadowInstance() 2530 inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); in SWIG_Python_NewShadowInstance() 2539 inst = PyInstance_NewRaw(data->newargs, dict); in SWIG_Python_NewShadowInstance() [all …]
|
/third_party/python/Lib/test/ |
D | datetimetester.py | 1688 newargs = args[:] 1689 newargs[i] = newval 1690 expected = cls(*newargs) 2347 newargs = args[:] 2348 newargs[i] = args[i] + 1 2349 t2 = self.theclass(*newargs) # this is larger than t1 2739 newargs = args[:] 2740 newargs[i] = newval 2741 expected = cls(*newargs) 3119 newargs = args[:] [all …]
|
/third_party/python/Lib/unittest/ |
D | mock.py | 1368 keywargs) as (newargs, newkeywargs): 1369 return func(*newargs, **newkeywargs) 1385 keywargs) as (newargs, newkeywargs): 1386 return await func(*newargs, **newkeywargs)
|
/third_party/python/Python/ |
D | ceval.c | 5108 PyObject **newargs = NULL; in PyEval_EvalCodeEx() local 5117 newargs = PyMem_Malloc(sizeof(PyObject *)*(kwcount+argcount)); in PyEval_EvalCodeEx() 5118 if (newargs == NULL) { in PyEval_EvalCodeEx() 5122 newargs[i] = args[i]; in PyEval_EvalCodeEx() 5127 newargs[argcount+i] = kws[2*i+1]; in PyEval_EvalCodeEx() 5129 allargs = newargs; in PyEval_EvalCodeEx() 5150 PyMem_Free(newargs); in PyEval_EvalCodeEx()
|
/third_party/cef/tools/ |
D | cef_parser.py | 222 newargs = [x.replace('struct _', '') for x in new['args']] 227 newset = set(newargs)
|