Lines Matching refs:obj

52 	php_com_dotnet_object *obj;  in php_com_wrap_dispatch()  local
54 obj = emalloc(sizeof(*obj)); in php_com_wrap_dispatch()
55 memset(obj, 0, sizeof(*obj)); in php_com_wrap_dispatch()
56 obj->code_page = codepage; in php_com_wrap_dispatch()
57 obj->ce = php_com_variant_class_entry; in php_com_wrap_dispatch()
58 obj->zo.ce = php_com_variant_class_entry; in php_com_wrap_dispatch()
60 VariantInit(&obj->v); in php_com_wrap_dispatch()
61 V_VT(&obj->v) = VT_DISPATCH; in php_com_wrap_dispatch()
62 V_DISPATCH(&obj->v) = disp; in php_com_wrap_dispatch()
64 IDispatch_AddRef(V_DISPATCH(&obj->v)); in php_com_wrap_dispatch()
65 IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo); in php_com_wrap_dispatch()
67 zend_object_std_init(&obj->zo, php_com_variant_class_entry); in php_com_wrap_dispatch()
68 obj->zo.handlers = &php_com_object_handlers; in php_com_wrap_dispatch()
69 ZVAL_OBJ(z, &obj->zo); in php_com_wrap_dispatch()
75 php_com_dotnet_object *obj; in php_com_wrap_variant() local
77 obj = emalloc(sizeof(*obj)); in php_com_wrap_variant()
78 memset(obj, 0, sizeof(*obj)); in php_com_wrap_variant()
79 obj->code_page = codepage; in php_com_wrap_variant()
80 obj->ce = php_com_variant_class_entry; in php_com_wrap_variant()
81 obj->zo.ce = php_com_variant_class_entry; in php_com_wrap_variant()
83 VariantInit(&obj->v); in php_com_wrap_variant()
84 VariantCopyInd(&obj->v, v); in php_com_wrap_variant()
85 obj->modified = 0; in php_com_wrap_variant()
87 if ((V_VT(&obj->v) == VT_DISPATCH) && (V_DISPATCH(&obj->v) != NULL)) { in php_com_wrap_variant()
88 IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo); in php_com_wrap_variant()
91 zend_object_std_init(&obj->zo, php_com_variant_class_entry); in php_com_wrap_variant()
92 obj->zo.handlers = &php_com_object_handlers; in php_com_wrap_variant()
93 ZVAL_OBJ(z, &obj->zo); in php_com_wrap_variant()