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.c177 SHA3object *newobj; in newSHA3object() local
178 newobj = (SHA3object *)PyObject_New(SHA3object, type); in newSHA3object()
179 if (newobj == NULL) { in newSHA3object()
182 newobj->lock = NULL; in newSHA3object()
183 return newobj; in newSHA3object()
306 SHA3object *newobj; in _sha3_sha3_224_copy_impl() local
308 if ((newobj = newSHA3object(Py_TYPE(self))) == NULL) { in _sha3_sha3_224_copy_impl()
312 SHA3_copystate(newobj->hash_state, self->hash_state); in _sha3_sha3_224_copy_impl()
314 return (PyObject *)newobj; in _sha3_sha3_224_copy_impl()
/third_party/gstreamer/gstreamer/gst/
Dgstobject.c338 gst_object_replace (GstObject ** oldobj, GstObject * newobj) in gst_object_replace() argument
348 newobj, newobj ? GST_STR_NULL (GST_OBJECT_NAME (newobj)) : "(NONE)", in gst_object_replace()
349 newobj ? G_OBJECT (newobj)->ref_count : 0); in gst_object_replace()
354 if (G_UNLIKELY (oldptr == newobj)) in gst_object_replace()
357 if (newobj) in gst_object_replace()
358 gst_object_ref (newobj); in gst_object_replace()
361 oldobj, (gpointer) oldptr, newobj))) { in gst_object_replace()
363 if (G_UNLIKELY (oldptr == newobj)) in gst_object_replace()
370 return oldptr != newobj; in gst_object_replace()
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/basic_concepts/names/reserved_words/special_mean_but_valid_identifier/
Dabstract_is_valid_identifier_3.ts33 var newobj = new abstract("abstract"); variable
34 Assert.equal(newobj.getName(), "abstract");
Dget_is_valid_identifier_3.ts33 var newobj = new get("get"); variable
34 Assert.equal(newobj.getName(), "get");
Ddeclare_is_valid_identifier_3.ts33 var newobj = new declare("declare"); variable
34 Assert.equal(newobj.getName(), "declare");
Dconstructor_is_valid_identifier_3.ts33 var newobj = new constructor("constructor"); variable
34 Assert.equal(newobj.getName(), "constructor");
Dset_is_valid_identifier_3.ts33 var newobj = new set("set"); variable
34 Assert.equal(newobj.getName(), "set");
Dnamespace_is_valid_identifier_3.ts33 var newobj = new namespace("namespace"); variable
34 Assert.equal(newobj.getName(), "namespace");
Dis_is_valid_identifier_3.ts33 var newobj = new is("is"); variable
34 Assert.equal(newobj.getName(), "is");
Drequire_is_valid_identifier_3.ts33 var newobj = new require("require"); variable
34 Assert.equal(newobj.getName(), "require");
Dfrom_is_valid_identifier_3.ts33 var newobj = new from("from"); variable
34 Assert.equal(newobj.getName(), "from");
Dasync_is_valid_identifier_3.ts33 var newobj = new async("async"); variable
34 Assert.equal(newobj.getName(), "async");
Dawait_is_valid_identifier_3.ts33 var newobj = new await("await"); variable
34 Assert.equal(newobj.getName(), "await");
Dof_is_valid_identifier_3.ts33 var newobj = new of("of"); variable
34 Assert.equal(newobj.getName(), "of");
Dtype_is_valid_identifier_3.ts33 var newobj = new type("type"); variable
34 Assert.equal(newobj.getName(), "type");
Dmodule_is_valid_identifier_3.ts37 var newobj = new module("module"); variable
38 Assert.equal(newobj.getName(), "module");
Das_is_valid_identifier_3.ts33 var newobj = new as("as"); variable
34 Assert.equal(newobj.getName(), "as");
/third_party/PyYAML/lib/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.c353 SHA1object *newobj; in SHA1Type_copy_impl() local
354 if ((newobj = newSHA1object(st)) == NULL) in SHA1Type_copy_impl()
357 newobj->hash_state = self->hash_state; in SHA1Type_copy_impl()
358 return (PyObject *)newobj; in SHA1Type_copy_impl()
D_operator.c1291 PyObject *newobj; in dotted_getattr() local
1303 newobj = PyObject_GetAttr(obj, attr_name); in dotted_getattr()
1305 if (newobj == NULL) { in dotted_getattr()
1309 obj = newobj; in dotted_getattr()
1312 newobj = PyObject_GetAttr(obj, attr); in dotted_getattr()
1313 if (newobj == NULL) in dotted_getattr()
1315 obj = newobj; in dotted_getattr()
Dmd5module.c375 MD5object *newobj; in MD5Type_copy_impl() local
376 if ((newobj = newMD5object(st))==NULL) in MD5Type_copy_impl()
379 newobj->hash_state = self->hash_state; in MD5Type_copy_impl()
380 return (PyObject *)newobj; in MD5Type_copy_impl()

12