Lines Matching refs:v

37 	VARIANT v;  in com_property_read()  local
44 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_read()
45 VariantInit(&v); in com_property_read()
50 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1); in com_property_read()
53 php_com_zval_from_variant(rv, &v, obj->code_page); in com_property_read()
54 VariantClear(&v); in com_property_read()
68 VARIANT v; in com_property_write() local
72 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_write()
73 VariantInit(&v); in com_property_write()
77 DISPATCH_PROPERTYPUT|DISPATCH_PROPERTYPUTREF, &v, 1, value, 0)) { in com_property_write()
78 VariantClear(&v); in com_property_write()
88 VARIANT v; in com_read_dimension() local
94 if (V_VT(&obj->v) == VT_DISPATCH) { in com_read_dimension()
95 VariantInit(&v); in com_read_dimension()
98 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 1, offset, 0, 0)) { in com_read_dimension()
99 php_com_zval_from_variant(rv, &v, obj->code_page); in com_read_dimension()
100 VariantClear(&v); in com_read_dimension()
102 } else if (V_ISARRAY(&obj->v)) { in com_read_dimension()
105 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_read_dimension()
106 if (php_com_safearray_get_elem(&obj->v, &v, (LONG)Z_LVAL_P(offset))) { in com_read_dimension()
107 php_com_wrap_variant(rv, &v, obj->code_page); in com_read_dimension()
108 VariantClear(&v); in com_read_dimension()
125 VARIANT v; in com_write_dimension() local
135 if (V_VT(&obj->v) == VT_DISPATCH) { in com_write_dimension()
139 VariantInit(&v); in com_write_dimension()
142 DISPATCH_METHOD|DISPATCH_PROPERTYPUT, &v, 2, args, 0, 0)) { in com_write_dimension()
143 VariantClear(&v); in com_write_dimension()
145 } else if (V_ISARRAY(&obj->v)) { in com_write_dimension()
149 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_write_dimension()
150 if (FAILED(SafeArrayGetVartype(V_ARRAY(&obj->v), &vt)) || vt == VT_EMPTY) { in com_write_dimension()
151 vt = V_VT(&obj->v) & ~VT_ARRAY; in com_write_dimension()
157 VariantInit(&v); in com_write_dimension()
158 php_com_variant_from_zval(&v, value, obj->code_page); in com_write_dimension()
160 if (V_VT(&v) != vt) { in com_write_dimension()
161 VariantChangeType(&v, &v, 0, vt); in com_write_dimension()
165 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v); in com_write_dimension()
167 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v.lVal); in com_write_dimension()
170 VariantClear(&v); in com_write_dimension()
205 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_exists()
272 if (V_VT(&obj->v) != VT_DISPATCH) { in com_method_get()
371 VARIANT v; in com_call_method() local
374 if (V_VT(&obj->v) != VT_DISPATCH) { in com_call_method()
385 VariantInit(&v); in com_call_method()
387 …f(obj, (zend_internal_function*)EX(func), DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, nargs, args)) { in com_call_method()
388 php_com_zval_from_variant(return_value, &v, obj->code_page); in com_call_method()
390 VariantClear(&v); in com_call_method()
403 static zend_internal_function c, d, v; in com_constructor_get() local
425 POPULATE_CTOR(v, com_variant_create_instance); in com_constructor_get()
453 switch (VarCmp(&obja->v, &objb->v, LOCALE_SYSTEM_DEFAULT, 0)) { in com_objects_compare()
475 VARIANT v; in com_object_cast() local
481 VariantInit(&v); in com_object_cast()
483 if (V_VT(&obj->v) == VT_DISPATCH) { in com_object_cast()
485 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1, 0)) { in com_object_cast()
486 VariantCopy(&v, &obj->v); in com_object_cast()
489 VariantCopy(&v, &obj->v); in com_object_cast()
511 if (vt != VT_EMPTY && vt != V_VT(&v)) { in com_object_cast()
512 res = VariantChangeType(&v, &v, 0, vt); in com_object_cast()
516 php_com_zval_from_variant(writeobj, &v, obj->code_page); in com_object_cast()
519 VariantClear(&v); in com_object_cast()
535 if (!V_ISARRAY(&obj->v)) { in com_object_count()
539 SafeArrayGetLBound(V_ARRAY(&obj->v), 1, &lbound); in com_object_count()
540 SafeArrayGetUBound(V_ARRAY(&obj->v), 1, &ubound); in com_object_count()
582 if (SUCCEEDED(IDispatch_QueryInterface(V_DISPATCH(&obj->v), in php_com_object_enable_event_sink()
615 VariantClear(&obj->v); in php_com_object_free_storage()
639 VariantInit(&cloneobj->v); in php_com_object_clone()
642 VariantCopyInd(&cloneobj->v, &origobject->v); in php_com_object_clone()
659 VariantInit(&obj->v); in php_com_object_new()