Home
last modified time | relevance | path

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

/external/vulkan-validation-layers/libs/cjson/
DcJSON.c993 void cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem) { in cJSON_InsertItemInArray() argument
997 cJSON_AddItemToArray(array, newitem); in cJSON_InsertItemInArray()
1000 newitem->next = c; in cJSON_InsertItemInArray()
1001 newitem->prev = c->prev; in cJSON_InsertItemInArray()
1002 c->prev = newitem; in cJSON_InsertItemInArray()
1004 array->child = newitem; in cJSON_InsertItemInArray()
1006 newitem->prev->next = newitem; in cJSON_InsertItemInArray()
1008 void cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem) { in cJSON_ReplaceItemInArray() argument
1012 newitem->next = c->next; in cJSON_ReplaceItemInArray()
1013 newitem->prev = c->prev; in cJSON_ReplaceItemInArray()
[all …]
/external/python/cpython2/Modules/
D_heapqmodule.c38 PyObject *newitem, *parent; in _siftdown() local
51 newitem = PyList_GET_ITEM(heap, pos); in _siftdown()
55 cmp = cmp_lt(newitem, parent); in _siftdown()
66 newitem = PyList_GET_ITEM(heap, pos); in _siftdown()
67 PyList_SET_ITEM(heap, parentpos, newitem); in _siftdown()
381 PyObject *newitem, *parent; in _siftdownmax() local
391 newitem = PyList_GET_ITEM(heap, pos); in _siftdownmax()
392 Py_INCREF(newitem); in _siftdownmax()
398 cmp = cmp_lt(parent, newitem); in _siftdownmax()
400 Py_DECREF(newitem); in _siftdownmax()
[all …]
/external/python/cpython2/Lib/
Dheapq.py243 newitem = heap[pos]
249 if cmp_lt(newitem, parent):
254 heap[pos] = newitem
298 newitem = heap[pos]
312 heap[pos] = newitem
317 newitem = heap[pos]
323 if cmp_lt(parent, newitem):
328 heap[pos] = newitem
334 newitem = heap[pos]
348 heap[pos] = newitem
/external/python/cpython3/Lib/
Dheapq.py206 newitem = heap[pos]
212 if newitem < parent:
217 heap[pos] = newitem
261 newitem = heap[pos]
275 heap[pos] = newitem
280 newitem = heap[pos]
286 if parent < newitem:
291 heap[pos] = newitem
297 newitem = heap[pos]
311 heap[pos] = newitem
/external/python/cpython3/Modules/
D_heapqmodule.c14 PyObject *newitem, *parent, **arr; in siftdown() local
28 newitem = arr[pos]; in siftdown()
32 cmp = PyObject_RichCompareBool(newitem, parent, Py_LT); in siftdown()
44 newitem = arr[pos]; in siftdown()
45 arr[parentpos] = newitem; in siftdown()
368 PyObject *newitem, *parent, **arr; in siftdown_max() local
382 newitem = arr[pos]; in siftdown_max()
386 cmp = PyObject_RichCompareBool(parent, newitem, Py_LT); in siftdown_max()
398 newitem = arr[pos]; in siftdown_max()
399 arr[parentpos] = newitem; in siftdown_max()
/external/fonttools/Lib/fontTools/misc/
DpsLib.py308 newitem = {}
310 newitem[key] = unpack_item(value)
312 newitem = [None] * len(item.value)
314 newitem[i] = unpack_item(item.value[i])
316 newitem = tuple(newitem)
318 newitem = item.value
319 return newitem
/external/vulkan-validation-layers/libs/cjson/includes/
DcJSON.h139 extern void cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem); /* Shifts pre-existin…
140 extern void cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem);
141 extern void cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem);
/external/python/cpython2/Objects/
Dtupleobject.c136 PyTuple_SetItem(register PyObject *op, register Py_ssize_t i, PyObject *newitem) in PyTuple_SetItem() argument
141 Py_XDECREF(newitem); in PyTuple_SetItem()
146 Py_XDECREF(newitem); in PyTuple_SetItem()
153 *p = newitem; in PyTuple_SetItem()
Dlistobject.c200 register PyObject *newitem) in PyList_SetItem() argument
205 Py_XDECREF(newitem); in PyList_SetItem()
210 Py_XDECREF(newitem); in PyList_SetItem()
217 *p = newitem; in PyList_SetItem()
256 PyList_Insert(PyObject *op, Py_ssize_t where, PyObject *newitem) in PyList_Insert() argument
262 return ins1((PyListObject *)op, where, newitem); in PyList_Insert()
286 PyList_Append(PyObject *op, PyObject *newitem) in PyList_Append() argument
288 if (PyList_Check(op) && (newitem != NULL)) in PyList_Append()
289 return app1((PyListObject *)op, newitem); in PyList_Append()
/external/python/cpython2/Tools/bgen/bgen/
Dscantools.py712 newitem = [item[0], item[1], item[2]]
715 newitem[i] = old[k][i]
718 newitem[i] = old[index][i]
719 new.append(tuple(newitem))
/external/python/cpython3/Objects/
Dtupleobject.c160 PyTuple_SetItem(PyObject *op, Py_ssize_t i, PyObject *newitem) in PyTuple_SetItem() argument
164 Py_XDECREF(newitem); in PyTuple_SetItem()
169 Py_XDECREF(newitem); in PyTuple_SetItem()
175 Py_XSETREF(*p, newitem); in PyTuple_SetItem()
Dlistobject.c220 PyObject *newitem) in PyList_SetItem() argument
224 Py_XDECREF(newitem); in PyList_SetItem()
229 Py_XDECREF(newitem); in PyList_SetItem()
235 Py_XSETREF(*p, newitem); in PyList_SetItem()
273 PyList_Insert(PyObject *op, Py_ssize_t where, PyObject *newitem) in PyList_Insert() argument
279 return ins1((PyListObject *)op, where, newitem); in PyList_Insert()
303 PyList_Append(PyObject *op, PyObject *newitem) in PyList_Append() argument
305 if (PyList_Check(op) && (newitem != NULL)) in PyList_Append()
306 return app1((PyListObject *)op, newitem); in PyList_Append()
/external/python/cpython2/Mac/Demo/textedit/
Dped.py190 self.newitem = MenuItem(m, "New window", "N", self.open)
/external/python/cpython2/Mac/Demo/mlte/
Dmlted.py180 self.newitem = MenuItem(m, "New window", "N", self.open)