Lines Matching refs:I
450 php_com_saproxy_iter *I = (php_com_saproxy_iter*)Z_PTR(iter->data); in saproxy_iter_dtor() local
452 zval_ptr_dtor(&I->proxy_obj); in saproxy_iter_dtor()
454 efree(I->indices); in saproxy_iter_dtor()
455 efree(I); in saproxy_iter_dtor()
460 php_com_saproxy_iter *I = (php_com_saproxy_iter*)Z_PTR(iter->data); in saproxy_iter_valid() local
462 return (I->key < I->imax) ? SUCCESS : FAILURE; in saproxy_iter_valid()
467 php_com_saproxy_iter *I = (php_com_saproxy_iter*)Z_PTR(iter->data); in saproxy_iter_get_data() local
472 I->indices[I->proxy->dimensions-1] = I->key; in saproxy_iter_get_data()
474 sa = V_ARRAY(&I->proxy->obj->v); in saproxy_iter_get_data()
477 vt = V_VT(&I->proxy->obj->v) & ~VT_ARRAY; in saproxy_iter_get_data()
482 SafeArrayGetElement(sa, I->indices, &v); in saproxy_iter_get_data()
485 SafeArrayGetElement(sa, I->indices, &v.lVal); in saproxy_iter_get_data()
488 ZVAL_NULL(&I->data); in saproxy_iter_get_data()
489 php_com_wrap_variant(&I->data, &v, I->proxy->obj->code_page); in saproxy_iter_get_data()
492 return &I->data; in saproxy_iter_get_data()
497 php_com_saproxy_iter *I = (php_com_saproxy_iter*)Z_PTR(iter->data); in saproxy_iter_get_key() local
499 if (I->key == -1) { in saproxy_iter_get_key()
502 ZVAL_LONG(key, I->key); in saproxy_iter_get_key()
508 php_com_saproxy_iter *I = (php_com_saproxy_iter*)Z_PTR(iter->data); in saproxy_iter_move_forwards() local
510 if (++I->key >= I->imax) { in saproxy_iter_move_forwards()
511 I->key = -1; in saproxy_iter_move_forwards()
529 php_com_saproxy_iter *I; in php_com_saproxy_iter_get() local
537 I = ecalloc(1, sizeof(*I)); in php_com_saproxy_iter_get()
538 I->iter.funcs = &saproxy_iter_funcs; in php_com_saproxy_iter_get()
539 Z_PTR(I->iter.data) = I; in php_com_saproxy_iter_get()
541 I->proxy = proxy; in php_com_saproxy_iter_get()
543 ZVAL_OBJ(&I->proxy_obj, Z_OBJ_P(object)); in php_com_saproxy_iter_get()
545 I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); in php_com_saproxy_iter_get()
548 I->indices[i] = (LONG)Z_LVAL(proxy->indices[i]); in php_com_saproxy_iter_get()
551 SafeArrayGetLBound(V_ARRAY(&proxy->obj->v), proxy->dimensions, &I->imin); in php_com_saproxy_iter_get()
552 SafeArrayGetUBound(V_ARRAY(&proxy->obj->v), proxy->dimensions, &I->imax); in php_com_saproxy_iter_get()
554 I->key = I->imin; in php_com_saproxy_iter_get()
556 return &I->iter; in php_com_saproxy_iter_get()