Lines Matching refs:obj
50 php_com_dotnet_object *obj; in php_com_wrap_dispatch() local
52 obj = emalloc(sizeof(*obj)); in php_com_wrap_dispatch()
53 memset(obj, 0, sizeof(*obj)); in php_com_wrap_dispatch()
54 obj->code_page = codepage; in php_com_wrap_dispatch()
55 obj->ce = php_com_variant_class_entry; in php_com_wrap_dispatch()
56 obj->zo.ce = php_com_variant_class_entry; in php_com_wrap_dispatch()
58 VariantInit(&obj->v); in php_com_wrap_dispatch()
59 V_VT(&obj->v) = VT_DISPATCH; in php_com_wrap_dispatch()
60 V_DISPATCH(&obj->v) = disp; in php_com_wrap_dispatch()
62 IDispatch_AddRef(V_DISPATCH(&obj->v)); in php_com_wrap_dispatch()
63 IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo); in php_com_wrap_dispatch()
65 zend_object_std_init(&obj->zo, php_com_variant_class_entry); in php_com_wrap_dispatch()
66 obj->zo.handlers = &php_com_object_handlers; in php_com_wrap_dispatch()
67 ZVAL_OBJ(z, &obj->zo); in php_com_wrap_dispatch()
73 php_com_dotnet_object *obj; in php_com_wrap_variant() local
75 obj = emalloc(sizeof(*obj)); in php_com_wrap_variant()
76 memset(obj, 0, sizeof(*obj)); in php_com_wrap_variant()
77 obj->code_page = codepage; in php_com_wrap_variant()
78 obj->ce = php_com_variant_class_entry; in php_com_wrap_variant()
79 obj->zo.ce = php_com_variant_class_entry; in php_com_wrap_variant()
81 VariantInit(&obj->v); in php_com_wrap_variant()
82 VariantCopyInd(&obj->v, v); in php_com_wrap_variant()
83 obj->modified = 0; in php_com_wrap_variant()
85 if ((V_VT(&obj->v) == VT_DISPATCH) && (V_DISPATCH(&obj->v) != NULL)) { in php_com_wrap_variant()
86 IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo); in php_com_wrap_variant()
89 zend_object_std_init(&obj->zo, php_com_variant_class_entry); in php_com_wrap_variant()
90 obj->zo.handlers = &php_com_object_handlers; in php_com_wrap_variant()
91 ZVAL_OBJ(z, &obj->zo); in php_com_wrap_variant()