Home
last modified time | relevance | path

Searched refs:newobj (Results 1 – 25 of 48) sorted by relevance

12

/third_party/python/Objects/stringlib/
Dctype.h61 PyObject* newobj; in stringlib_lower() local
62 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_lower()
63 if (!newobj) in stringlib_lower()
65 _Py_bytes_lower(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_lower()
67 return newobj; in stringlib_lower()
73 PyObject* newobj; in stringlib_upper() local
74 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_upper()
75 if (!newobj) in stringlib_upper()
77 _Py_bytes_upper(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_upper()
79 return newobj; in stringlib_upper()
[all …]
Dunicode_format.h147 PyObject *newobj; in getattr() local
151 newobj = PyObject_GetAttr(obj, str); in getattr()
153 return newobj; in getattr()
167 PyObject *newobj; in getitem_idx() local
171 newobj = PyObject_GetItem(obj, idx_obj); in getitem_idx()
173 return newobj; in getitem_idx()
180 PyObject *newobj; in getitem_str() local
184 newobj = PyObject_GetItem(obj, str); in getitem_str()
186 return newobj; in getitem_str()
/third_party/node/test/js-native-api/6_object_wrap/
Dtest.js45 const newobj = obj.multiply(-1); constant
46 assert.strictEqual(newobj.value, -13);
47 assert.strictEqual(newobj.valueReadonly, -13);
48 assert.notStrictEqual(obj, newobj);
/third_party/python/Modules/_sha3/
Dsha3module.c163 SHA3object *newobj; in newSHA3object() local
164 newobj = (SHA3object *)PyObject_New(SHA3object, type); in newSHA3object()
165 if (newobj == NULL) { in newSHA3object()
168 newobj->lock = NULL; in newSHA3object()
169 return newobj; in newSHA3object()
282 SHA3object *newobj; in _sha3_sha3_224_copy_impl() local
284 if ((newobj = newSHA3object(Py_TYPE(self))) == NULL) { in _sha3_sha3_224_copy_impl()
288 SHA3_copystate(newobj->hash_state, self->hash_state); in _sha3_sha3_224_copy_impl()
290 return (PyObject *)newobj; in _sha3_sha3_224_copy_impl()
/third_party/gstreamer/gstreamer/gst/
Dgstobject.c337 gst_object_replace (GstObject ** oldobj, GstObject * newobj) in gst_object_replace() argument
347 newobj, newobj ? GST_STR_NULL (GST_OBJECT_NAME (newobj)) : "(NONE)", in gst_object_replace()
348 newobj ? G_OBJECT (newobj)->ref_count : 0); in gst_object_replace()
353 if (G_UNLIKELY (oldptr == newobj)) in gst_object_replace()
356 if (newobj) in gst_object_replace()
357 gst_object_ref (newobj); in gst_object_replace()
360 oldobj, oldptr, newobj))) { in gst_object_replace()
362 if (G_UNLIKELY (oldptr == newobj)) in gst_object_replace()
369 return oldptr != newobj; in gst_object_replace()
Dgstobject.h267 gboolean gst_object_replace (GstObject **oldobj, GstObject *newobj);
/third_party/pyyaml/lib/yaml/
Dconstructor.py597 args=None, kwds=None, newobj=False, unsafe=False): argument
607 if newobj and isinstance(cls, type(self.classobj)) \
612 elif newobj and isinstance(cls, type):
639 instance = self.make_python_instance(suffix, node, newobj=True)
645 def construct_python_object_apply(self, suffix, node, newobj=False): argument
670 instance = self.make_python_instance(suffix, node, args, kwds, newobj)
681 return self.construct_python_object_apply(suffix, node, newobj=True)
739 def make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False): argument
741 suffix, node, args, kwds, newobj, unsafe=True)
Drepresenter.py431 newobj = True
434 newobj = False
437 and isinstance(state, dict) and newobj:
/third_party/pyyaml/lib3/yaml/
Dconstructor.py580 args=None, kwds=None, newobj=False, unsafe=False): argument
590 if newobj and isinstance(cls, type):
617 instance = self.make_python_instance(suffix, node, newobj=True)
623 def construct_python_object_apply(self, suffix, node, newobj=False): argument
648 instance = self.make_python_instance(suffix, node, args, kwds, newobj)
659 return self.construct_python_object_apply(suffix, node, newobj=True)
721 def make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False): argument
723 suffix, node, args, kwds, newobj, unsafe=True)
Drepresenter.py335 newobj = True
338 newobj = False
341 and isinstance(state, dict) and newobj:
/third_party/python/Modules/
Dsha1module.c329 SHA1object *newobj; in SHA1Type_copy_impl() local
331 if ((newobj = newSHA1object()) == NULL) in SHA1Type_copy_impl()
334 newobj->hash_state = self->hash_state; in SHA1Type_copy_impl()
335 return (PyObject *)newobj; in SHA1Type_copy_impl()
Dmd5module.c352 MD5object *newobj; in MD5Type_copy_impl() local
354 if ((newobj = newMD5object())==NULL) in MD5Type_copy_impl()
357 newobj->hash_state = self->hash_state; in MD5Type_copy_impl()
358 return (PyObject *)newobj; in MD5Type_copy_impl()
Dsha256module.c405 SHAobject *newobj; in SHA256Type_copy_impl() local
408 if ( (newobj = newSHA256object())==NULL) in SHA256Type_copy_impl()
411 if ( (newobj = newSHA224object())==NULL) in SHA256Type_copy_impl()
415 SHAcopy(self, newobj); in SHA256Type_copy_impl()
416 return (PyObject *)newobj; in SHA256Type_copy_impl()
D_operator.c1281 PyObject *newobj; in dotted_getattr() local
1293 newobj = PyObject_GetAttr(obj, attr_name); in dotted_getattr()
1295 if (newobj == NULL) { in dotted_getattr()
1299 obj = newobj; in dotted_getattr()
1302 newobj = PyObject_GetAttr(obj, attr); in dotted_getattr()
1303 if (newobj == NULL) in dotted_getattr()
1305 obj = newobj; in dotted_getattr()
Dsha512module.c462 SHAobject *newobj; in SHA512Type_copy_impl() local
465 if ( (newobj = newSHA512object())==NULL) in SHA512Type_copy_impl()
468 if ( (newobj = newSHA384object())==NULL) in SHA512Type_copy_impl()
472 SHAcopy(self, newobj); in SHA512Type_copy_impl()
473 return (PyObject *)newobj; in SHA512Type_copy_impl()
D_hashopenssl.c370 EVPobject *newobj; in EVP_copy_impl() local
372 if ((newobj = newEVPobject(Py_TYPE(self))) == NULL) in EVP_copy_impl()
375 if (!locked_EVP_MD_CTX_copy(newobj->ctx, self)) { in EVP_copy_impl()
376 Py_DECREF(newobj); in EVP_copy_impl()
379 return (PyObject *)newobj; in EVP_copy_impl()
D_json.c1400 PyObject *newobj; in encoder_listencode_obj() local
1461 newobj = PyObject_CallOneArg(s->defaultfn, obj); in encoder_listencode_obj()
1462 if (newobj == NULL) { in encoder_listencode_obj()
1468 Py_DECREF(newobj); in encoder_listencode_obj()
1472 rv = encoder_listencode_obj(s, acc, newobj, indent_level); in encoder_listencode_obj()
1475 Py_DECREF(newobj); in encoder_listencode_obj()
/third_party/python/Objects/
Dtupleobject.c733 PyObject *tmp, *newobj, *item; in tuple_subtype_new() local
741 newobj = type->tp_alloc(type, n = PyTuple_GET_SIZE(tmp)); in tuple_subtype_new()
742 if (newobj == NULL) { in tuple_subtype_new()
749 PyTuple_SET_ITEM(newobj, i, item); in tuple_subtype_new()
752 return newobj; in tuple_subtype_new()
Dtypeobject.c4591 PyObject *newobj, *newargs, *state, *listitems, *dictitems; in reduce_newobj() local
4617 newobj = _PyObject_GetAttrId(copyreg, &PyId___newobj__); in reduce_newobj()
4619 if (newobj == NULL) { in reduce_newobj()
4627 Py_DECREF(newobj); in reduce_newobj()
4643 newobj = _PyObject_GetAttrId(copyreg, &PyId___newobj_ex__); in reduce_newobj()
4645 if (newobj == NULL) { in reduce_newobj()
4654 Py_DECREF(newobj); in reduce_newobj()
4668 Py_DECREF(newobj); in reduce_newobj()
4673 Py_DECREF(newobj); in reduce_newobj()
4679 result = PyTuple_Pack(5, newobj, newargs, state, listitems, dictitems); in reduce_newobj()
[all …]
Dfloatobject.c1616 PyObject *tmp, *newobj; in float_subtype_new() local
1623 newobj = type->tp_alloc(type, 0); in float_subtype_new()
1624 if (newobj == NULL) { in float_subtype_new()
1628 ((PyFloatObject *)newobj)->ob_fval = ((PyFloatObject *)tmp)->ob_fval; in float_subtype_new()
1630 return newobj; in float_subtype_new()
Dlongobject.c5156 PyLongObject *tmp, *newobj; in long_subtype_new() local
5167 newobj = (PyLongObject *)type->tp_alloc(type, n); in long_subtype_new()
5168 if (newobj == NULL) { in long_subtype_new()
5172 assert(PyLong_Check(newobj)); in long_subtype_new()
5173 Py_SET_SIZE(newobj, Py_SIZE(tmp)); in long_subtype_new()
5175 newobj->ob_digit[i] = tmp->ob_digit[i]; in long_subtype_new()
5178 return (PyObject *)newobj; in long_subtype_new()
/third_party/skia/third_party/externals/libwebp/swig/
Dlibwebp_python_wrap.c2631 SwigPyObject *newobj; in SWIG_Python_NewPointerObj() local
2633 newobj = (SwigPyObject*) self; in SWIG_Python_NewPointerObj()
2634 if (newobj->ptr) { in SWIG_Python_NewPointerObj()
2636 while (newobj->next) in SWIG_Python_NewPointerObj()
2637 newobj = (SwigPyObject *) newobj->next; in SWIG_Python_NewPointerObj()
2638 newobj->next = next_self; in SWIG_Python_NewPointerObj()
2639 newobj = (SwigPyObject *)next_self; in SWIG_Python_NewPointerObj()
2641 newobj->dict = 0; in SWIG_Python_NewPointerObj()
2645 newobj = PyObject_New(SwigPyObject, clientdata->pytype); in SWIG_Python_NewPointerObj()
2647 newobj->dict = 0; in SWIG_Python_NewPointerObj()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/swig/
Dlibwebp_python_wrap.c2610 SwigPyObject *newobj; in SWIG_Python_NewPointerObj() local
2612 newobj = (SwigPyObject*) self; in SWIG_Python_NewPointerObj()
2613 if (newobj->ptr) { in SWIG_Python_NewPointerObj()
2615 while (newobj->next) in SWIG_Python_NewPointerObj()
2616 newobj = (SwigPyObject *) newobj->next; in SWIG_Python_NewPointerObj()
2617 newobj->next = next_self; in SWIG_Python_NewPointerObj()
2618 newobj = (SwigPyObject *)next_self; in SWIG_Python_NewPointerObj()
2620 newobj->dict = 0; in SWIG_Python_NewPointerObj()
2624 newobj = PyObject_New(SwigPyObject, clientdata->pytype); in SWIG_Python_NewPointerObj()
2626 newobj->dict = 0; in SWIG_Python_NewPointerObj()
[all …]
/third_party/node/deps/npm/node_modules/read-package-json/
Dread-json.js73 var newobj = {}
75 newobj[kk] = jsonClone[kk]
/third_party/skia/third_party/externals/microhttpd/
Dltmain.sh9162 newobj=lt$counter-$objbase
9166 *[\ /]"$newobj "*) ;;
9167 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9170 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
9171 func_append oldobjs " $gentop/$newobj"

12