Lines Matching refs:I
474 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_dtor() local
476 zval_ptr_dtor(&I->proxy_obj); in saproxy_iter_dtor()
478 efree(I->indices); in saproxy_iter_dtor()
479 efree(I); in saproxy_iter_dtor()
484 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_valid() local
486 return (I->key < I->imax) ? SUCCESS : FAILURE; in saproxy_iter_valid()
491 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_get_data() local
497 I->indices[I->proxy->dimensions-1] = I->key; in saproxy_iter_get_data()
499 sa = V_ARRAY(&I->proxy->obj->v); in saproxy_iter_get_data()
502 vt = V_VT(&I->proxy->obj->v) & ~VT_ARRAY; in saproxy_iter_get_data()
507 SafeArrayGetElement(sa, I->indices, &v); in saproxy_iter_get_data()
510 SafeArrayGetElement(sa, I->indices, &v.lVal); in saproxy_iter_get_data()
514 php_com_wrap_variant(return_value, &v, I->proxy->obj->code_page TSRMLS_CC); in saproxy_iter_get_data()
525 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_get_key() local
527 if (I->key == -1) { in saproxy_iter_get_key()
530 *int_key = (ulong)I->key; in saproxy_iter_get_key()
536 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_move_forwards() local
538 if (++I->key >= I->imax) { in saproxy_iter_move_forwards()
539 I->key = -1; in saproxy_iter_move_forwards()
558 php_com_saproxy_iter *I; in php_com_saproxy_iter_get() local
565 I = ecalloc(1, sizeof(*I)); in php_com_saproxy_iter_get()
566 I->iter.funcs = &saproxy_iter_funcs; in php_com_saproxy_iter_get()
567 I->iter.data = I; in php_com_saproxy_iter_get()
569 I->proxy = proxy; in php_com_saproxy_iter_get()
570 I->proxy_obj = object; in php_com_saproxy_iter_get()
571 Z_ADDREF_P(I->proxy_obj); in php_com_saproxy_iter_get()
573 I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); in php_com_saproxy_iter_get()
576 I->indices[i] = Z_LVAL_P(proxy->indices[i]); in php_com_saproxy_iter_get()
579 SafeArrayGetLBound(V_ARRAY(&proxy->obj->v), proxy->dimensions, &I->imin); in php_com_saproxy_iter_get()
580 SafeArrayGetUBound(V_ARRAY(&proxy->obj->v), proxy->dimensions, &I->imax); in php_com_saproxy_iter_get()
582 I->key = I->imin; in php_com_saproxy_iter_get()
584 return &I->iter; in php_com_saproxy_iter_get()