Lines Matching refs:obj

48 	php_com_dotnet_object *obj;  in php_com_wrap_dispatch()  local
50 obj = emalloc(sizeof(*obj)); in php_com_wrap_dispatch()
51 memset(obj, 0, sizeof(*obj)); in php_com_wrap_dispatch()
52 obj->code_page = codepage; in php_com_wrap_dispatch()
53 obj->ce = php_com_variant_class_entry; in php_com_wrap_dispatch()
54 obj->zo.ce = php_com_variant_class_entry; in php_com_wrap_dispatch()
56 VariantInit(&obj->v); in php_com_wrap_dispatch()
57 V_VT(&obj->v) = VT_DISPATCH; in php_com_wrap_dispatch()
58 V_DISPATCH(&obj->v) = disp; in php_com_wrap_dispatch()
60 IDispatch_AddRef(V_DISPATCH(&obj->v)); in php_com_wrap_dispatch()
61 IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo); in php_com_wrap_dispatch()
63 zend_object_std_init(&obj->zo, php_com_variant_class_entry); in php_com_wrap_dispatch()
64 obj->zo.handlers = &php_com_object_handlers; in php_com_wrap_dispatch()
65 ZVAL_OBJ(z, &obj->zo); in php_com_wrap_dispatch()
71 php_com_dotnet_object *obj; in php_com_wrap_variant() local
73 obj = emalloc(sizeof(*obj)); in php_com_wrap_variant()
74 memset(obj, 0, sizeof(*obj)); in php_com_wrap_variant()
75 obj->code_page = codepage; in php_com_wrap_variant()
76 obj->ce = php_com_variant_class_entry; in php_com_wrap_variant()
77 obj->zo.ce = php_com_variant_class_entry; in php_com_wrap_variant()
79 VariantInit(&obj->v); in php_com_wrap_variant()
80 VariantCopyInd(&obj->v, v); in php_com_wrap_variant()
81 obj->modified = 0; in php_com_wrap_variant()
83 if ((V_VT(&obj->v) == VT_DISPATCH) && (V_DISPATCH(&obj->v) != NULL)) { in php_com_wrap_variant()
84 IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo); in php_com_wrap_variant()
87 zend_object_std_init(&obj->zo, php_com_variant_class_entry); in php_com_wrap_variant()
88 obj->zo.handlers = &php_com_object_handlers; in php_com_wrap_variant()
89 ZVAL_OBJ(z, &obj->zo); in php_com_wrap_variant()