Lines Matching refs:v

36 	VARIANT v;  in com_property_read()  local
46 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_read()
47 VariantInit(&v); in com_property_read()
52 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1 TSRMLS_CC); in com_property_read()
55 php_com_zval_from_variant(return_value, &v, obj->code_page TSRMLS_CC); in com_property_read()
56 VariantClear(&v); in com_property_read()
70 VARIANT v; in com_property_write() local
74 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_write()
75 VariantInit(&v); in com_property_write()
79 DISPATCH_PROPERTYPUT|DISPATCH_PROPERTYPUTREF, &v, 1, &value, 0 TSRMLS_CC)) { in com_property_write()
80 VariantClear(&v); in com_property_write()
91 VARIANT v; in com_read_dimension() local
100 if (V_VT(&obj->v) == VT_DISPATCH) { in com_read_dimension()
101 VariantInit(&v); in com_read_dimension()
104 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 1, &offset, 0, 0 TSRMLS_CC)) { in com_read_dimension()
105 php_com_zval_from_variant(return_value, &v, obj->code_page TSRMLS_CC); in com_read_dimension()
106 VariantClear(&v); in com_read_dimension()
108 } else if (V_ISARRAY(&obj->v)) { in com_read_dimension()
111 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_read_dimension()
112 if (php_com_safearray_get_elem(&obj->v, &v, Z_LVAL_P(offset) TSRMLS_CC)) { in com_read_dimension()
113 php_com_wrap_variant(return_value, &v, obj->code_page TSRMLS_CC); in com_read_dimension()
114 VariantClear(&v); in com_read_dimension()
131 VARIANT v; in com_write_dimension() local
136 if (V_VT(&obj->v) == VT_DISPATCH) { in com_write_dimension()
140 VariantInit(&v); in com_write_dimension()
143 DISPATCH_METHOD|DISPATCH_PROPERTYPUT, &v, 2, args, 0, 0 TSRMLS_CC)) { in com_write_dimension()
144 VariantClear(&v); in com_write_dimension()
146 } else if (V_ISARRAY(&obj->v)) { in com_write_dimension()
150 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_write_dimension()
151 if (FAILED(SafeArrayGetVartype(V_ARRAY(&obj->v), &vt)) || vt == VT_EMPTY) { in com_write_dimension()
152 vt = V_VT(&obj->v) & ~VT_ARRAY; in com_write_dimension()
158 VariantInit(&v); in com_write_dimension()
159 php_com_variant_from_zval(&v, value, obj->code_page TSRMLS_CC); in com_write_dimension()
161 if (V_VT(&v) != vt) { in com_write_dimension()
162 VariantChangeType(&v, &v, 0, vt); in com_write_dimension()
166 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v); in com_write_dimension()
168 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v.lVal); in com_write_dimension()
171 VariantClear(&v); in com_write_dimension()
206 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_exists()
272 if (V_VT(&obj->v) != VT_DISPATCH) { in com_method_get()
372 VARIANT v; in com_call_method() local
377 if (V_VT(&obj->v) != VT_DISPATCH) { in com_call_method()
388 VariantInit(&v); in com_call_method()
390 …if (SUCCESS == php_com_do_invoke_byref(obj, method, -1, DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, … in com_call_method()
391 php_com_zval_from_variant(return_value, &v, obj->code_page TSRMLS_CC); in com_call_method()
393 VariantClear(&v); in com_call_method()
406 static zend_internal_function c, d, v; in com_constructor_get() local
430 POPULATE_CTOR(v, com_variant_create_instance); in com_constructor_get()
470 switch (VarCmp(&obja->v, &objb->v, LOCALE_SYSTEM_DEFAULT, 0)) { in com_objects_compare()
492 VARIANT v; in com_object_cast() local
498 VariantInit(&v); in com_object_cast()
500 if (V_VT(&obj->v) == VT_DISPATCH) { in com_object_cast()
502 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1, 0 TSRMLS_CC)) { in com_object_cast()
503 VariantCopy(&v, &obj->v); in com_object_cast()
506 VariantCopy(&v, &obj->v); in com_object_cast()
526 if (vt != VT_EMPTY && vt != V_VT(&v)) { in com_object_cast()
527 res = VariantChangeType(&v, &v, 0, vt); in com_object_cast()
531 php_com_zval_from_variant(writeobj, &v, obj->code_page TSRMLS_CC); in com_object_cast()
534 VariantClear(&v); in com_object_cast()
550 if (!V_ISARRAY(&obj->v)) { in com_object_count()
554 SafeArrayGetLBound(V_ARRAY(&obj->v), 1, &lbound); in com_object_count()
555 SafeArrayGetUBound(V_ARRAY(&obj->v), 1, &ubound); in com_object_count()
592 if (SUCCEEDED(IDispatch_QueryInterface(V_DISPATCH(&obj->v), in php_com_object_enable_event_sink()
625 VariantClear(&obj->v); in php_com_object_free_storage()
650 VariantInit(&cloneobj->v); in php_com_object_clone()
653 VariantCopyInd(&cloneobj->v, &origobject->v); in php_com_object_clone()
671 VariantInit(&obj->v); in php_com_object_new()