Lines Matching refs:v
33 VARIANT v; in com_property_read() local
40 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_read()
45 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()
75 VariantInit(&v); in com_property_write()
78 DISPATCH_PROPERTYPUT|DISPATCH_PROPERTYPUTREF, &v, 1, value, 0)) { in com_property_write()
79 VariantClear(&v); in com_property_write()
90 VARIANT v; in com_read_dimension() local
96 if (V_VT(&obj->v) == VT_DISPATCH) { in com_read_dimension()
97 VariantInit(&v); in com_read_dimension()
100 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 1, offset, 0, 0)) { in com_read_dimension()
101 php_com_zval_from_variant(rv, &v, obj->code_page); in com_read_dimension()
102 VariantClear(&v); in com_read_dimension()
104 } else if (V_ISARRAY(&obj->v)) { in com_read_dimension()
107 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_read_dimension()
108 if (php_com_safearray_get_elem(&obj->v, &v, (LONG)Z_LVAL_P(offset))) { in com_read_dimension()
109 php_com_wrap_variant(rv, &v, obj->code_page); in com_read_dimension()
110 VariantClear(&v); in com_read_dimension()
127 VARIANT v; in com_write_dimension() local
137 if (V_VT(&obj->v) == VT_DISPATCH) { in com_write_dimension()
141 VariantInit(&v); in com_write_dimension()
144 DISPATCH_METHOD|DISPATCH_PROPERTYPUT, &v, 2, args, 0, 0)) { in com_write_dimension()
145 VariantClear(&v); in com_write_dimension()
147 } else if (V_ISARRAY(&obj->v)) { in com_write_dimension()
151 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_write_dimension()
152 if (FAILED(SafeArrayGetVartype(V_ARRAY(&obj->v), &vt)) || vt == VT_EMPTY) { in com_write_dimension()
153 vt = V_VT(&obj->v) & ~VT_ARRAY; in com_write_dimension()
159 VariantInit(&v); in com_write_dimension()
160 php_com_variant_from_zval(&v, value, obj->code_page); in com_write_dimension()
162 if (V_VT(&v) != vt) { in com_write_dimension()
163 VariantChangeType(&v, &v, 0, vt); in com_write_dimension()
167 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v); in com_write_dimension()
169 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v.lVal); in com_write_dimension()
172 VariantClear(&v); in com_write_dimension()
212 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_exists()
288 if (V_VT(&obj->v) != VT_DISPATCH) { in com_method_get()
387 VARIANT v; in com_call_method() local
390 if (V_VT(&obj->v) != VT_DISPATCH) { in com_call_method()
401 VariantInit(&v); in com_call_method()
403 …f(obj, (zend_internal_function*)EX(func), DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, nargs, args)) { in com_call_method()
404 php_com_zval_from_variant(return_value, &v, obj->code_page); in com_call_method()
406 VariantClear(&v); in com_call_method()
419 static zend_internal_function c, d, v; in com_constructor_get() local
441 POPULATE_CTOR(v, com_variant_create_instance); in com_constructor_get()
469 switch (VarCmp(&obja->v, &objb->v, LOCALE_SYSTEM_DEFAULT, 0)) { in com_objects_compare()
491 VARIANT v; in com_object_cast() local
497 VariantInit(&v); in com_object_cast()
499 if (V_VT(&obj->v) == VT_DISPATCH) { in com_object_cast()
501 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1, 0)) { in com_object_cast()
502 VariantCopy(&v, &obj->v); in com_object_cast()
505 VariantCopy(&v, &obj->v); in com_object_cast()
528 if (vt != VT_EMPTY && vt != V_VT(&v)) { in com_object_cast()
529 res = VariantChangeType(&v, &v, 0, vt); in com_object_cast()
533 php_com_zval_from_variant(writeobj, &v, obj->code_page); in com_object_cast()
536 VariantClear(&v); in com_object_cast()
552 if (!V_ISARRAY(&obj->v)) { in com_object_count()
556 SafeArrayGetLBound(V_ARRAY(&obj->v), 1, &lbound); in com_object_count()
557 SafeArrayGetUBound(V_ARRAY(&obj->v), 1, &ubound); in com_object_count()
599 if (SUCCEEDED(IDispatch_QueryInterface(V_DISPATCH(&obj->v), in php_com_object_enable_event_sink()
632 VariantClear(&obj->v); in php_com_object_free_storage()
658 VariantInit(&cloneobj->v); in php_com_object_clone()
661 VariantCopyInd(&cloneobj->v, &origobject->v); in php_com_object_clone()
678 VariantInit(&obj->v); in php_com_object_new()