jscript: Remove superfluous pointer casts.
This commit is contained in:
parent
2aebb568a8
commit
981f733e41
|
@ -497,7 +497,7 @@ static HRESULT identifier_eval(exec_ctx_t *ctx, BSTR identifier, DWORD flags, ex
|
|||
}
|
||||
|
||||
if(item) {
|
||||
exprval_set_idref(ret, (IDispatch*)item->disp, id);
|
||||
exprval_set_idref(ret, item->disp, id);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,11 +44,11 @@ typedef struct {
|
|||
parser_ctx_t *queue_tail;
|
||||
} JScript;
|
||||
|
||||
#define ACTSCRIPT(x) ((IActiveScript*) &(x)->lpIActiveScriptVtbl)
|
||||
#define ASPARSE(x) ((IActiveScriptParse*) &(x)->lpIActiveScriptParseVtbl)
|
||||
#define ASPARSEPROC(x) ((IActiveScriptParseProcedure2*) &(x)->lpIActiveScriptParseProcedure2Vtbl)
|
||||
#define ACTSCPPROP(x) ((IActiveScriptProperty*) &(x)->lpIActiveScriptPropertyVtbl)
|
||||
#define OBJSAFETY(x) ((IObjectSafety*) &(x)->lpIObjectSafetyVtbl)
|
||||
#define ACTSCRIPT(x) ((IActiveScript*) &(x)->lpIActiveScriptVtbl)
|
||||
#define ASPARSE(x) (&(x)->lpIActiveScriptParseVtbl)
|
||||
#define ASPARSEPROC(x) (&(x)->lpIActiveScriptParseProcedure2Vtbl)
|
||||
#define ACTSCPPROP(x) (&(x)->lpIActiveScriptPropertyVtbl)
|
||||
#define OBJSAFETY(x) (&(x)->lpIObjectSafetyVtbl)
|
||||
|
||||
void script_release(script_ctx_t *ctx)
|
||||
{
|
||||
|
|
|
@ -479,7 +479,7 @@ int parser_lex(void *lval, parser_ctx_t *ctx)
|
|||
if(ret)
|
||||
return ret;
|
||||
|
||||
return parse_identifier(ctx, (const WCHAR**)lval);
|
||||
return parse_identifier(ctx, lval);
|
||||
}
|
||||
|
||||
if(isdigitW(*ctx->ptr))
|
||||
|
@ -684,7 +684,7 @@ int parser_lex(void *lval, parser_ctx_t *ctx)
|
|||
|
||||
case '\"':
|
||||
case '\'':
|
||||
return parse_string_literal(ctx, (const WCHAR**)lval, *ctx->ptr);
|
||||
return parse_string_literal(ctx, lval, *ctx->ptr);
|
||||
|
||||
case '_':
|
||||
case '$':
|
||||
|
|
|
@ -559,7 +559,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
|
|||
emitStateSP->jumpToJumpFlag = FALSE;
|
||||
++emitStateSP;
|
||||
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
|
||||
t = (RENode *) t->kid;
|
||||
t = t->kid;
|
||||
op = t->op;
|
||||
assert(op < REOP_LIMIT);
|
||||
continue;
|
||||
|
@ -572,7 +572,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
|
|||
emitStateSP->continueOp = REOP_ENDALT;
|
||||
++emitStateSP;
|
||||
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
|
||||
t = (RENode *) t->u.kid2;
|
||||
t = t->u.kid2;
|
||||
op = t->op;
|
||||
assert(op < REOP_LIMIT);
|
||||
continue;
|
||||
|
@ -676,7 +676,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
|
|||
emitStateSP->jumpToJumpFlag = FALSE;
|
||||
++emitStateSP;
|
||||
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
|
||||
t = (RENode *) t->kid;
|
||||
t = t->kid;
|
||||
op = t->op;
|
||||
assert(op < REOP_LIMIT);
|
||||
continue;
|
||||
|
@ -699,7 +699,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
|
|||
while (t->next &&
|
||||
t->next->op == REOP_FLAT &&
|
||||
(WCHAR*)t->kid + t->u.flat.length ==
|
||||
(WCHAR*)t->next->kid) {
|
||||
t->next->kid) {
|
||||
t->u.flat.length += t->next->u.flat.length;
|
||||
t->next = t->next->next;
|
||||
}
|
||||
|
@ -727,7 +727,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
|
|||
emitStateSP->continueOp = REOP_RPAREN;
|
||||
++emitStateSP;
|
||||
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
|
||||
t = (RENode *) t->kid;
|
||||
t = t->kid;
|
||||
op = t->op;
|
||||
continue;
|
||||
|
||||
|
@ -747,7 +747,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
|
|||
emitStateSP->continueOp = REOP_ASSERTTEST;
|
||||
++emitStateSP;
|
||||
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
|
||||
t = (RENode *) t->kid;
|
||||
t = t->kid;
|
||||
op = t->op;
|
||||
continue;
|
||||
|
||||
|
@ -765,7 +765,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
|
|||
emitStateSP->continueOp = REOP_ASSERTNOTTEST;
|
||||
++emitStateSP;
|
||||
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
|
||||
t = (RENode *) t->kid;
|
||||
t = t->kid;
|
||||
op = t->op;
|
||||
continue;
|
||||
|
||||
|
@ -793,7 +793,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
|
|||
emitStateSP->continueOp = REOP_ENDCHILD;
|
||||
++emitStateSP;
|
||||
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
|
||||
t = (RENode *) t->kid;
|
||||
t = t->kid;
|
||||
op = t->op;
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue