Home
last modified time | relevance | path

Searched refs:ob (Results 1 – 25 of 163) sorted by relevance

1234567

/third_party/python/Include/
Dsetobject.h90 #define PyFrozenSet_CheckExact(ob) Py_IS_TYPE(ob, &PyFrozenSet_Type) argument
91 #define PyFrozenSet_Check(ob) \ argument
92 (Py_IS_TYPE(ob, &PyFrozenSet_Type) || \
93 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
95 #define PyAnySet_CheckExact(ob) \ argument
96 (Py_IS_TYPE(ob, &PySet_Type) || Py_IS_TYPE(ob, &PyFrozenSet_Type))
97 #define PyAnySet_Check(ob) \ argument
98 (Py_IS_TYPE(ob, &PySet_Type) || Py_IS_TYPE(ob, &PyFrozenSet_Type) || \
99 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \
100 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
[all …]
Dobject.h130 static inline Py_ssize_t _Py_REFCNT(const PyObject *ob) { in _Py_REFCNT() argument
131 return ob->ob_refcnt; in _Py_REFCNT()
133 #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob)) argument
137 #define Py_TYPE(ob) (_PyObject_CAST(ob)->ob_type) argument
140 #define Py_SIZE(ob) (_PyVarObject_CAST(ob)->ob_size) argument
143 static inline int _Py_IS_TYPE(const PyObject *ob, const PyTypeObject *type) { in _Py_IS_TYPE() argument
146 return ob->ob_type == type; in _Py_IS_TYPE()
148 #define Py_IS_TYPE(ob, type) _Py_IS_TYPE(_PyObject_CAST_CONST(ob), type) argument
151 static inline void _Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { in _Py_SET_REFCNT() argument
152 ob->ob_refcnt = refcnt; in _Py_SET_REFCNT()
[all …]
/third_party/jsframework/runtime/main/reactivity/
Dobject.js26 var ob = this.__ob__;
27 if (!ob || _.isReserved(key)) {
31 ob.convert(key, val);
32 ob.notify();
33 if (ob.vms) {
34 var i = ob.vms.length;
36 var vm = ob.vms[i];
76 var ob = this.__ob__;
77 if (!ob || _.isReserved(key)) {
80 ob.notify();
[all …]
Dobserver.js110 let ob;
112 ob = value.__ob__;
118 ob = new Observer(value);
120 if (ob && vm) {
121 ob.addVm(vm);
123 return ob;
199 const ob = obj.__ob__;
200 if (!ob) {
204 ob.convert(key, val);
205 ob.dep.notify();
[all …]
Darray.js33 const ob = this.__ob__;
47 ob.observeArray(inserted);
50 ob.dep.notify();
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_so_emit.c146 unsigned ob; in so_emit_prim() local
149 int ob = state->output[slot].output_buffer; in so_emit_prim() local
157 if (!draw->so.targets[ob]) { in so_emit_prim()
160 if ((buffer_total_bytes[ob] + write_size + dst_offset) > in so_emit_prim()
161 draw->so.targets[ob]->target.buffer_size) { in so_emit_prim()
165 for (ob = 0; ob < draw->so.num_targets; ++ob) { in so_emit_prim()
166 buffer_total_bytes[ob] += state->stride[ob] * sizeof(float); in so_emit_prim()
173 unsigned ob; in so_emit_prim() local
190 ob = state->output[slot].output_buffer; in so_emit_prim()
191 buffer_written[ob] = TRUE; in so_emit_prim()
[all …]
/third_party/boost/libs/contract/example/mitchell02/observer/
Dsubject.hpp43 bool attached(observer const* ob) const { in attached()
46 BOOST_CONTRACT_ASSERT(ob); // Not null. in attached()
50 return std::find(observers_.cbegin(), observers_.cend(), ob) != in attached()
57 void attach(observer* ob) { in attach() argument
64 BOOST_CONTRACT_ASSERT(ob); // Not null. in attach()
65 BOOST_CONTRACT_ASSERT(!attached(ob)); // Not already attached. in attach()
68 BOOST_CONTRACT_ASSERT(attached(ob)); // Attached. in attach()
71 *old_observers, observers(), ob)); in attach()
75 observers_.push_back(ob); in attach()
128 observer const* ob in other_observers_unchanged() argument
[all …]
/third_party/gettext/gettext-tools/tests/
Dxgettext-objc-26 cat <<EOF > xg-ob-2.m
29 -d xg-ob-2.tmp xg-ob-2.m || Exit 1
30 LC_ALL=C tr -d '\r' < xg-ob-2.tmp.po > xg-ob-2.po || Exit 1
32 cat <<EOF > xg-ob-2.ok
57 ${DIFF} xg-ob-2.ok xg-ob-2.po
/third_party/python/Doc/c-api/
Ddatetime.rst28 .. c:function:: int PyDate_Check(PyObject *ob)
30 Return true if *ob* is of type :c:data:`PyDateTime_DateType` or a subtype of
31 :c:data:`PyDateTime_DateType`. *ob* must not be ``NULL``. This function always
35 .. c:function:: int PyDate_CheckExact(PyObject *ob)
37 Return true if *ob* is of type :c:data:`PyDateTime_DateType`. *ob* must not be
41 .. c:function:: int PyDateTime_Check(PyObject *ob)
43 Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType` or a subtype of
44 :c:data:`PyDateTime_DateTimeType`. *ob* must not be ``NULL``. This function always
48 .. c:function:: int PyDateTime_CheckExact(PyObject *ob)
50 Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType`. *ob* must not
[all …]
Dweakref.rst14 .. c:function:: int PyWeakref_Check(ob)
16 Return true if *ob* is either a reference or proxy object. This function
20 .. c:function:: int PyWeakref_CheckRef(ob)
22 Return true if *ob* is a reference object. This function always succeeds.
25 .. c:function:: int PyWeakref_CheckProxy(ob)
27 Return true if *ob* is a proxy object. This function always succeeds.
30 .. c:function:: PyObject* PyWeakref_NewRef(PyObject *ob, PyObject *callback)
32 Return a weak reference object for the object *ob*. This will always return
35 callable object that receives notification when *ob* is garbage collected; it
37 itself. *callback* may also be ``None`` or ``NULL``. If *ob* is not a
[all …]
Dgen.rst23 .. c:function:: int PyGen_Check(PyObject *ob)
25 Return true if *ob* is a generator object; *ob* must not be ``NULL``. This
29 .. c:function:: int PyGen_CheckExact(PyObject *ob)
31 Return true if *ob*'s type is :c:type:`PyGen_Type`; *ob* must not be
Dcell.rst28 .. c:function:: int PyCell_Check(ob)
30 Return true if *ob* is a cell object; *ob* must not be ``NULL``. This
34 .. c:function:: PyObject* PyCell_New(PyObject *ob)
36 Create and return a new cell object containing the value *ob*. The parameter may
/third_party/boost/libs/python/doc/reference/
Dstl_iterator.qbk24 stl_input_iterator(object const& ob);
35 object ob; // For exposition only
49 ``stl_input_iterator(object const& ob)``
51ob.attr("__iter__")() and stores the resulting Python iterator object in this->it. Then, calls thi…
60 …is->it.attr("next")() and stores the result in this->ob. If the sequence is exhausted, sets this->
76 [[Returns][`extract<ValueType>(this->ob);`]]
83 [[Returns][`(lhs.ob == object()) == (rhs.ob == object())`]]
101 std::list<int> sequence_to_int_list(object const& ob)
103 stl_input_iterator<int> begin(ob), end;
/third_party/popt/src/
Dpoptint.c91 size_t ob = db; in strdup_locale_from_utf8() local
99 err = iconv(cd, &pin, &ib, &pout, &ob); in strdup_locale_from_utf8()
115 ob = db - used; in strdup_locale_from_utf8()
140 char * b = NULL, * ob = NULL; in POPT_fprintf() local
167 ob = b; in POPT_fprintf()
174 ob = strdup_locale_from_utf8(b); in POPT_fprintf()
175 if (ob != NULL) { in POPT_fprintf()
176 rc = fprintf(stream, "%s", ob); in POPT_fprintf()
177 free(ob); in POPT_fprintf()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSpillPlacement.cpp278 unsigned ob = bundles->getBundle(I->Number, true); in addConstraints() local
279 activate(ob); in addConstraints()
280 nodes[ob].addBias(Freq, I->Exit); in addConstraints()
293 unsigned ob = bundles->getBundle(*I, true); in addPrefSpill() local
295 activate(ob); in addPrefSpill()
297 nodes[ob].addBias(Freq, PrefSpill); in addPrefSpill()
306 unsigned ob = bundles->getBundle(Number, true); in addLinks() local
309 if (ib == ob) in addLinks()
312 activate(ob); in addLinks()
314 nodes[ib].addLink(ob, Freq); in addLinks()
[all …]
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/gen/
Dintrinsic_table.go173 ob := overloadBuilder{
179 if err := ob.buildOpenTypes(o); err != nil {
182 if err := ob.buildOpenNumbers(o); err != nil {
185 if err := ob.buildParameters(o); err != nil {
188 if err := ob.buildReturnType(o); err != nil {
193 NumParameters: len(ob.parameters),
194 NumOpenTypes: len(ob.openTypes),
195 NumOpenNumbers: len(ob.openNumbers),
196 OpenTypesOffset: b.lut.openTypes.Add(ob.openTypes),
197 OpenNumbersOffset: b.lut.openNumbers.Add(ob.openNumbers),
[all …]
/third_party/python/Lib/
Dpyclbr.py89 def _nest_function(ob, func_name, lineno, end_lineno, is_async=False): argument
91 return Function(ob.module, func_name, ob.file, lineno,
92 parent=ob, is_async=is_async, end_lineno=end_lineno)
94 def _nest_class(ob, class_name, lineno, end_lineno, super=None): argument
96 return Class(ob.module, class_name, super, ob.file, lineno,
97 parent=ob, end_lineno=end_lineno)
304 for ob in new_objs:
305 ob.indent = obj.indent + indent_level
/third_party/python/Objects/
Dweakrefobject.c24 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref() argument
27 self->wr_object = ob; in init_weakref()
35 new_weakref(PyObject *ob, PyObject *callback) in new_weakref() argument
41 init_weakref(result, ob, callback); in new_weakref()
295 PyObject *ob, *callback = NULL; in weakref___new__() local
297 if (parse_weakref_init_args("__new__", args, kwargs, &ob, &callback)) { in weakref___new__()
301 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in weakref___new__()
304 Py_TYPE(ob)->tp_name); in weakref___new__()
309 list = GET_WEAKREFS_LISTPTR(ob); in weakref___new__()
326 init_weakref(self, ob, callback); in weakref___new__()
[all …]
Drangeobject.c383 range_contains_long(rangeobject *r, PyObject *ob) in range_contains_long() argument
397 cmp2 = PyObject_RichCompareBool(r->start, ob, Py_LE); in range_contains_long()
398 cmp3 = PyObject_RichCompareBool(ob, r->stop, Py_LT); in range_contains_long()
401 cmp2 = PyObject_RichCompareBool(ob, r->start, Py_LE); in range_contains_long()
402 cmp3 = PyObject_RichCompareBool(r->stop, ob, Py_LT); in range_contains_long()
413 tmp1 = PyNumber_Subtract(ob, r->start); in range_contains_long()
428 range_contains(rangeobject *r, PyObject *ob) in range_contains() argument
430 if (PyLong_CheckExact(ob) || PyBool_Check(ob)) in range_contains()
431 return range_contains_long(r, ob); in range_contains()
433 return (int)_PySequence_IterSearch((PyObject*)r, ob, in range_contains()
[all …]
/third_party/boost/libs/optional/test/
Doptional_test_assign.cpp18 boost::optional<int> oa, ob(1); in test_assignment_to_empty() local
20 BOOST_TEST(ob); in test_assignment_to_empty()
22 oa = ob; in test_assignment_to_empty()
/third_party/boost/libs/multiprecision/test/
Dtest_cpp_rat_serial.cpp87 boost::archive::binary_oarchive ob(ss); in test_neg() local
88 ob << static_cast<const T&>(val); in test_neg()
96 boost::archive::xml_oarchive ob(ss); in test_neg() local
97 ob << boost::serialization::make_nvp("value", static_cast<const T&>(val)); in test_neg()
145 boost::archive::binary_oarchive ob(ss); in test() local
146 ob << static_cast<const T&>(val); in test()
/third_party/python/Modules/_ctypes/
D_ctypes.c801 PyObject *ob = p->obj; in CDataType_from_param() local
808 if(dict && ob) { in CDataType_from_param()
809 res = PyObject_IsInstance(ob, dict->proto); in CDataType_from_param()
817 ob_name = (ob) ? Py_TYPE(ob)->tp_name : "???"; in CDataType_from_param()
2372 converters_from_argtypes(PyObject *ob) in converters_from_argtypes() argument
2379 ob = PySequence_Tuple(ob); /* new reference */ in converters_from_argtypes()
2380 if (!ob) { in converters_from_argtypes()
2386 nArgs = PyTuple_GET_SIZE(ob); in converters_from_argtypes()
2389 Py_DECREF(ob); in converters_from_argtypes()
2400 PyObject *tp = PyTuple_GET_ITEM(ob, i); in converters_from_argtypes()
[all …]
/third_party/typescript/tests/baselines/reference/
DwidenedTypes.js20 var ob: { x: typeof undefined } = { x: "" }; variable
39 var ob = { x: "" }; variable
50 declare var ob: {
/third_party/python/Lib/ctypes/test/
Dtest_pep3118.py24 ob = tp()
25 v = memoryview(ob)
31 self.assertEqual(len(v) * sizeof(itemtp), sizeof(ob))
54 ob = tp()
55 v = memoryview(ob)
61 self.assertEqual(len(v) * sizeof(itemtp), sizeof(ob))
/third_party/python/PC/
Dwinreg.c21 static BOOL PyHKEY_AsHKEY(PyObject *ob, HKEY *pRes, BOOL bNoneOK);
22 static BOOL clinic_HKEY_converter(PyObject *ob, void *p);
120 PyHKEY_unaryFailureFunc(PyObject *ob) in PyHKEY_unaryFailureFunc() argument
139 PyHKEY_deallocFunc(PyObject *ob) in PyHKEY_deallocFunc() argument
145 PyHKEYObject *obkey = (PyHKEYObject *)ob; in PyHKEY_deallocFunc()
148 PyObject_Free(ob); in PyHKEY_deallocFunc()
152 PyHKEY_boolFunc(PyObject *ob) in PyHKEY_boolFunc() argument
154 return ((PyHKEYObject *)ob)->hkey != 0; in PyHKEY_boolFunc()
158 PyHKEY_intFunc(PyObject *ob) in PyHKEY_intFunc() argument
160 PyHKEYObject *pyhkey = (PyHKEYObject *)ob; in PyHKEY_intFunc()
[all …]

1234567