Lines Matching refs:v
33 VARIANT v; in com_property_read() local
40 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_read()
41 VariantInit(&v); in com_property_read()
46 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1); in com_property_read()
49 php_com_zval_from_variant(rv, &v, obj->code_page); in com_property_read()
50 VariantClear(&v); in com_property_read()
64 VARIANT v; in com_property_write() local
68 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_write()
69 VariantInit(&v); in com_property_write()
73 DISPATCH_PROPERTYPUT|DISPATCH_PROPERTYPUTREF, &v, 1, value, 0)) { in com_property_write()
74 VariantClear(&v); in com_property_write()
84 VARIANT v; in com_read_dimension() local
90 if (V_VT(&obj->v) == VT_DISPATCH) { in com_read_dimension()
91 VariantInit(&v); in com_read_dimension()
94 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 1, offset, 0, 0)) { in com_read_dimension()
95 php_com_zval_from_variant(rv, &v, obj->code_page); in com_read_dimension()
96 VariantClear(&v); in com_read_dimension()
98 } else if (V_ISARRAY(&obj->v)) { in com_read_dimension()
101 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_read_dimension()
102 if (php_com_safearray_get_elem(&obj->v, &v, (LONG)Z_LVAL_P(offset))) { in com_read_dimension()
103 php_com_wrap_variant(rv, &v, obj->code_page); in com_read_dimension()
104 VariantClear(&v); in com_read_dimension()
121 VARIANT v; in com_write_dimension() local
131 if (V_VT(&obj->v) == VT_DISPATCH) { in com_write_dimension()
135 VariantInit(&v); in com_write_dimension()
138 DISPATCH_METHOD|DISPATCH_PROPERTYPUT, &v, 2, args, 0, 0)) { in com_write_dimension()
139 VariantClear(&v); in com_write_dimension()
141 } else if (V_ISARRAY(&obj->v)) { in com_write_dimension()
145 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_write_dimension()
146 if (FAILED(SafeArrayGetVartype(V_ARRAY(&obj->v), &vt)) || vt == VT_EMPTY) { in com_write_dimension()
147 vt = V_VT(&obj->v) & ~VT_ARRAY; in com_write_dimension()
153 VariantInit(&v); in com_write_dimension()
154 php_com_variant_from_zval(&v, value, obj->code_page); in com_write_dimension()
156 if (V_VT(&v) != vt) { in com_write_dimension()
157 VariantChangeType(&v, &v, 0, vt); in com_write_dimension()
161 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v); in com_write_dimension()
163 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v.lVal); in com_write_dimension()
166 VariantClear(&v); in com_write_dimension()
201 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_exists()
268 if (V_VT(&obj->v) != VT_DISPATCH) { in com_method_get()
367 VARIANT v; in com_call_method() local
370 if (V_VT(&obj->v) != VT_DISPATCH) { in com_call_method()
381 VariantInit(&v); in com_call_method()
383 …f(obj, (zend_internal_function*)EX(func), DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, nargs, args)) { in com_call_method()
384 php_com_zval_from_variant(return_value, &v, obj->code_page); in com_call_method()
386 VariantClear(&v); in com_call_method()
399 static zend_internal_function c, d, v; in com_constructor_get() local
421 POPULATE_CTOR(v, com_variant_create_instance); in com_constructor_get()
449 switch (VarCmp(&obja->v, &objb->v, LOCALE_SYSTEM_DEFAULT, 0)) { in com_objects_compare()
471 VARIANT v; in com_object_cast() local
477 VariantInit(&v); in com_object_cast()
479 if (V_VT(&obj->v) == VT_DISPATCH) { in com_object_cast()
481 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1, 0)) { in com_object_cast()
482 VariantCopy(&v, &obj->v); in com_object_cast()
485 VariantCopy(&v, &obj->v); in com_object_cast()
508 if (vt != VT_EMPTY && vt != V_VT(&v)) { in com_object_cast()
509 res = VariantChangeType(&v, &v, 0, vt); in com_object_cast()
513 php_com_zval_from_variant(writeobj, &v, obj->code_page); in com_object_cast()
516 VariantClear(&v); in com_object_cast()
532 if (!V_ISARRAY(&obj->v)) { in com_object_count()
536 SafeArrayGetLBound(V_ARRAY(&obj->v), 1, &lbound); in com_object_count()
537 SafeArrayGetUBound(V_ARRAY(&obj->v), 1, &ubound); in com_object_count()
579 if (SUCCEEDED(IDispatch_QueryInterface(V_DISPATCH(&obj->v), in php_com_object_enable_event_sink()
612 VariantClear(&obj->v); in php_com_object_free_storage()
636 VariantInit(&cloneobj->v); in php_com_object_clone()
639 VariantCopyInd(&cloneobj->v, &origobject->v); in php_com_object_clone()
656 VariantInit(&obj->v); in php_com_object_new()