Lines Matching refs:v

98 	if (V_VT(&proxy->obj->v) == VT_DISPATCH) {  in saproxy_read_dimension()
99 VARIANT v; in saproxy_read_dimension() local
113 VariantInit(&v); in saproxy_read_dimension()
116 Z_STRLEN(proxy->indices[0]), DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, in saproxy_read_dimension()
120 php_com_zval_from_variant(rv, &v, proxy->obj->code_page); in saproxy_read_dimension()
121 VariantClear(&v); in saproxy_read_dimension()
129 } else if (!V_ISARRAY(&proxy->obj->v)) { in saproxy_read_dimension()
139 sa = V_ARRAY(&proxy->obj->v); in saproxy_read_dimension()
160 VARIANT v; in saproxy_read_dimension() local
162 VariantInit(&v); in saproxy_read_dimension()
178 vt = V_VT(&proxy->obj->v) & ~VT_ARRAY; in saproxy_read_dimension()
182 res = SafeArrayGetElement(sa, indices, &v); in saproxy_read_dimension()
184 V_VT(&v) = vt; in saproxy_read_dimension()
185 res = SafeArrayGetElement(sa, indices, &v.lVal); in saproxy_read_dimension()
191 php_com_wrap_variant(rv, &v, proxy->obj->code_page); in saproxy_read_dimension()
196 VariantClear(&v); in saproxy_read_dimension()
211 VARIANT v; in saproxy_write_dimension() local
213 if (V_VT(&proxy->obj->v) == VT_DISPATCH) { in saproxy_write_dimension()
226 VariantInit(&v); in saproxy_write_dimension()
228 Z_STRLEN(proxy->indices[0]), DISPATCH_PROPERTYPUT, &v, proxy->dimensions + 1, in saproxy_write_dimension()
230 VariantClear(&v); in saproxy_write_dimension()
235 } else if (V_ISARRAY(&proxy->obj->v)) { in saproxy_write_dimension()
239 dims = SafeArrayGetDim(V_ARRAY(&proxy->obj->v)); in saproxy_write_dimension()
251 if (FAILED(SafeArrayGetVartype(V_ARRAY(&proxy->obj->v), &vt)) || vt == VT_EMPTY) { in saproxy_write_dimension()
252 vt = V_VT(&proxy->obj->v) & ~VT_ARRAY; in saproxy_write_dimension()
255 VariantInit(&v); in saproxy_write_dimension()
256 php_com_variant_from_zval(&v, value, proxy->obj->code_page); in saproxy_write_dimension()
258 if (V_VT(&v) != vt) { in saproxy_write_dimension()
259 VariantChangeType(&v, &v, 0, vt); in saproxy_write_dimension()
263 res = SafeArrayPutElement(V_ARRAY(&proxy->obj->v), indices, &v); in saproxy_write_dimension()
265 res = SafeArrayPutElement(V_ARRAY(&proxy->obj->v), indices, &v.lVal); in saproxy_write_dimension()
269 VariantClear(&v); in saproxy_write_dimension()
356 if (!V_ISARRAY(&proxy->obj->v)) { in saproxy_count_elements()
360 SafeArrayGetLBound(V_ARRAY(&proxy->obj->v), proxy->dimensions, &lbound); in saproxy_count_elements()
361 SafeArrayGetUBound(V_ARRAY(&proxy->obj->v), proxy->dimensions, &ubound); in saproxy_count_elements()
479 VARIANT v; in saproxy_iter_get_data() local
485 sa = V_ARRAY(&I->proxy->obj->v); in saproxy_iter_get_data()
488 vt = V_VT(&I->proxy->obj->v) & ~VT_ARRAY; in saproxy_iter_get_data()
491 VariantInit(&v); in saproxy_iter_get_data()
493 SafeArrayGetElement(sa, I->indices, &v); in saproxy_iter_get_data()
495 V_VT(&v) = vt; in saproxy_iter_get_data()
496 SafeArrayGetElement(sa, I->indices, &v.lVal); in saproxy_iter_get_data()
500 php_com_wrap_variant(&I->data, &v, I->proxy->obj->code_page); in saproxy_iter_get_data()
501 VariantClear(&v); in saproxy_iter_get_data()
561 SafeArrayGetLBound(V_ARRAY(&proxy->obj->v), proxy->dimensions, &I->imin); in php_com_saproxy_iter_get()
562 SafeArrayGetUBound(V_ARRAY(&proxy->obj->v), proxy->dimensions, &I->imax); in php_com_saproxy_iter_get()