Lines Matching refs:v
35 VARIANT v; in com_property_read() local
42 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_read()
43 VariantInit(&v); in com_property_read()
48 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1); in com_property_read()
51 php_com_zval_from_variant(rv, &v, obj->code_page); in com_property_read()
52 VariantClear(&v); in com_property_read()
66 VARIANT v; in com_property_write() local
70 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_write()
71 VariantInit(&v); in com_property_write()
75 DISPATCH_PROPERTYPUT|DISPATCH_PROPERTYPUTREF, &v, 1, value, 0)) { in com_property_write()
76 VariantClear(&v); in com_property_write()
86 VARIANT v; in com_read_dimension() local
92 if (V_VT(&obj->v) == VT_DISPATCH) { in com_read_dimension()
93 VariantInit(&v); in com_read_dimension()
96 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 1, offset, 0, 0)) { in com_read_dimension()
97 php_com_zval_from_variant(rv, &v, obj->code_page); in com_read_dimension()
98 VariantClear(&v); in com_read_dimension()
100 } else if (V_ISARRAY(&obj->v)) { in com_read_dimension()
103 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_read_dimension()
104 if (php_com_safearray_get_elem(&obj->v, &v, (LONG)Z_LVAL_P(offset))) { in com_read_dimension()
105 php_com_wrap_variant(rv, &v, obj->code_page); in com_read_dimension()
106 VariantClear(&v); in com_read_dimension()
123 VARIANT v; in com_write_dimension() local
128 if (V_VT(&obj->v) == VT_DISPATCH) { in com_write_dimension()
132 VariantInit(&v); in com_write_dimension()
135 DISPATCH_METHOD|DISPATCH_PROPERTYPUT, &v, 2, args, 0, 0)) { in com_write_dimension()
136 VariantClear(&v); in com_write_dimension()
138 } else if (V_ISARRAY(&obj->v)) { in com_write_dimension()
142 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_write_dimension()
143 if (FAILED(SafeArrayGetVartype(V_ARRAY(&obj->v), &vt)) || vt == VT_EMPTY) { in com_write_dimension()
144 vt = V_VT(&obj->v) & ~VT_ARRAY; in com_write_dimension()
150 VariantInit(&v); in com_write_dimension()
151 php_com_variant_from_zval(&v, value, obj->code_page); in com_write_dimension()
153 if (V_VT(&v) != vt) { in com_write_dimension()
154 VariantChangeType(&v, &v, 0, vt); in com_write_dimension()
158 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v); in com_write_dimension()
160 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v.lVal); in com_write_dimension()
163 VariantClear(&v); in com_write_dimension()
198 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_exists()
265 if (V_VT(&obj->v) != VT_DISPATCH) { in com_method_get()
364 VARIANT v; in com_call_method() local
367 if (V_VT(&obj->v) != VT_DISPATCH) { in com_call_method()
378 VariantInit(&v); in com_call_method()
380 …f(obj, (zend_internal_function*)EX(func), DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, nargs, args)) { in com_call_method()
381 php_com_zval_from_variant(return_value, &v, obj->code_page); in com_call_method()
383 VariantClear(&v); in com_call_method()
396 static zend_internal_function c, d, v; in com_constructor_get() local
418 POPULATE_CTOR(v, com_variant_create_instance); in com_constructor_get()
446 switch (VarCmp(&obja->v, &objb->v, LOCALE_SYSTEM_DEFAULT, 0)) { in com_objects_compare()
468 VARIANT v; in com_object_cast() local
474 VariantInit(&v); in com_object_cast()
476 if (V_VT(&obj->v) == VT_DISPATCH) { in com_object_cast()
478 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1, 0)) { in com_object_cast()
479 VariantCopy(&v, &obj->v); in com_object_cast()
482 VariantCopy(&v, &obj->v); in com_object_cast()
504 if (vt != VT_EMPTY && vt != V_VT(&v)) { in com_object_cast()
505 res = VariantChangeType(&v, &v, 0, vt); in com_object_cast()
509 php_com_zval_from_variant(writeobj, &v, obj->code_page); in com_object_cast()
512 VariantClear(&v); in com_object_cast()
528 if (!V_ISARRAY(&obj->v)) { in com_object_count()
532 SafeArrayGetLBound(V_ARRAY(&obj->v), 1, &lbound); in com_object_count()
533 SafeArrayGetUBound(V_ARRAY(&obj->v), 1, &ubound); in com_object_count()
575 if (SUCCEEDED(IDispatch_QueryInterface(V_DISPATCH(&obj->v), in php_com_object_enable_event_sink()
608 VariantClear(&obj->v); in php_com_object_free_storage()
632 VariantInit(&cloneobj->v); in php_com_object_clone()
635 VariantCopyInd(&cloneobj->v, &origobject->v); in php_com_object_clone()
652 VariantInit(&obj->v); in php_com_object_new()