76 WARN(
"failed to convert jsval to variant!\n");
141 hres = IEnumVARIANT_Reset(
This->enumvar);
217 ctx->enumerator_constr);
234 DISPPARAMS dispparams = {
NULL,
NULL, 0, 0};
243 FIXME(
"I don't know how to handle this type!\n");
255 WARN(
"Enumerator: no DISPID_NEWENUM.\n");
262 &IID_IEnumVARIANT, (
void**)&
enumvar);
266 FIXME(
"Enumerator: NewEnum unexpected type of varresult (%d).\n",
V_VT(&varresult));
304 case DISPATCH_CONSTRUCT: {
336 static const WCHAR EnumeratorW[] = {
'E',
'n',
'u',
'm',
'e',
'r',
'a',
't',
'o',
'r',0};
static BOOL heap_free(void *mem)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
HRESULT throw_syntax_error(script_ctx_t *ctx, HRESULT error, const WCHAR *str)
HRESULT throw_type_error(script_ctx_t *ctx, HRESULT error, const WCHAR *str)
HRESULT create_builtin_constructor(script_ctx_t *ctx, builtin_invoke_t value_proc, const WCHAR *name, const builtin_info_t *builtin_info, DWORD flags, jsdisp_t *prototype, jsdisp_t **ret)
static const WCHAR itemW[]
static HRESULT EnumeratorConstr_value(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
static const WCHAR atEndW[]
static const builtin_prop_t Enumerator_props[]
static const builtin_info_t EnumeratorConstr_info
static EnumeratorInstance * enumerator_from_vdisp(vdisp_t *vdisp)
static const WCHAR moveFirstW[]
static const WCHAR moveNextW[]
static EnumeratorInstance * enumerator_this(vdisp_t *jsthis)
static EnumeratorInstance * enumerator_from_jsdisp(jsdisp_t *jsdisp)
static void Enumerator_destructor(jsdisp_t *dispex)
static const builtin_info_t EnumeratorInst_info
static HRESULT Enumerator_atEnd(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
static HRESULT enumvar_get_next_item(EnumeratorInstance *This)
static HRESULT alloc_enumerator(script_ctx_t *ctx, jsdisp_t *object_prototype, EnumeratorInstance **ret)
static HRESULT Enumerator_moveNext(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
static HRESULT Enumerator_moveFirst(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
static HRESULT create_enumerator(script_ctx_t *ctx, jsval_t *argv, jsdisp_t **ret)
static const builtin_info_t Enumerator_info
HRESULT create_enumerator_constr(script_ctx_t *ctx, jsdisp_t *object_prototype, jsdisp_t **ret)
static HRESULT Enumerator_item(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
GLdouble GLdouble GLdouble r
HRESULT init_dispex_from_constr(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *constr)
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
static const WCHAR EnumeratorW[]
static BOOL is_vclass(vdisp_t *vdisp, jsclass_t class)
#define DEFAULT_FUNCTION_VALUE
#define JS_E_ENUMERATOR_EXPECTED
static void jsdisp_release(jsdisp_t *jsdisp)
HRESULT variant_to_jsval(VARIANT *var, jsval_t *r)
HRESULT jsval_copy(jsval_t v, jsval_t *r)
void jsval_release(jsval_t val)
static jsval_t jsval_undefined(void)
static jsval_t jsval_obj(jsdisp_t *obj)
static jsval_t jsval_bool(BOOL b)
static IDispatch * get_object(jsval_t v)
static BOOL is_object_instance(jsval_t v)
#define CONTAINING_RECORD(address, type, field)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
void WINAPI VariantInit(VARIANTARG *pVarg)