Commit 981f733e authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

jscript: Remove superfluous pointer casts.

parent 2aebb568
...@@ -497,7 +497,7 @@ static HRESULT identifier_eval(exec_ctx_t *ctx, BSTR identifier, DWORD flags, ex ...@@ -497,7 +497,7 @@ static HRESULT identifier_eval(exec_ctx_t *ctx, BSTR identifier, DWORD flags, ex
} }
if(item) { if(item) {
exprval_set_idref(ret, (IDispatch*)item->disp, id); exprval_set_idref(ret, item->disp, id);
return S_OK; return S_OK;
} }
......
...@@ -45,10 +45,10 @@ typedef struct { ...@@ -45,10 +45,10 @@ typedef struct {
} JScript; } JScript;
#define ACTSCRIPT(x) ((IActiveScript*) &(x)->lpIActiveScriptVtbl) #define ACTSCRIPT(x) ((IActiveScript*) &(x)->lpIActiveScriptVtbl)
#define ASPARSE(x) ((IActiveScriptParse*) &(x)->lpIActiveScriptParseVtbl) #define ASPARSE(x) (&(x)->lpIActiveScriptParseVtbl)
#define ASPARSEPROC(x) ((IActiveScriptParseProcedure2*) &(x)->lpIActiveScriptParseProcedure2Vtbl) #define ASPARSEPROC(x) (&(x)->lpIActiveScriptParseProcedure2Vtbl)
#define ACTSCPPROP(x) ((IActiveScriptProperty*) &(x)->lpIActiveScriptPropertyVtbl) #define ACTSCPPROP(x) (&(x)->lpIActiveScriptPropertyVtbl)
#define OBJSAFETY(x) ((IObjectSafety*) &(x)->lpIObjectSafetyVtbl) #define OBJSAFETY(x) (&(x)->lpIObjectSafetyVtbl)
void script_release(script_ctx_t *ctx) void script_release(script_ctx_t *ctx)
{ {
......
...@@ -479,7 +479,7 @@ int parser_lex(void *lval, parser_ctx_t *ctx) ...@@ -479,7 +479,7 @@ int parser_lex(void *lval, parser_ctx_t *ctx)
if(ret) if(ret)
return ret; return ret;
return parse_identifier(ctx, (const WCHAR**)lval); return parse_identifier(ctx, lval);
} }
if(isdigitW(*ctx->ptr)) if(isdigitW(*ctx->ptr))
...@@ -684,7 +684,7 @@ int parser_lex(void *lval, parser_ctx_t *ctx) ...@@ -684,7 +684,7 @@ int parser_lex(void *lval, parser_ctx_t *ctx)
case '\"': case '\"':
case '\'': case '\'':
return parse_string_literal(ctx, (const WCHAR**)lval, *ctx->ptr); return parse_string_literal(ctx, lval, *ctx->ptr);
case '_': case '_':
case '$': case '$':
......
...@@ -559,7 +559,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth, ...@@ -559,7 +559,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
emitStateSP->jumpToJumpFlag = FALSE; emitStateSP->jumpToJumpFlag = FALSE;
++emitStateSP; ++emitStateSP;
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth); assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
t = (RENode *) t->kid; t = t->kid;
op = t->op; op = t->op;
assert(op < REOP_LIMIT); assert(op < REOP_LIMIT);
continue; continue;
...@@ -572,7 +572,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth, ...@@ -572,7 +572,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
emitStateSP->continueOp = REOP_ENDALT; emitStateSP->continueOp = REOP_ENDALT;
++emitStateSP; ++emitStateSP;
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth); assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
t = (RENode *) t->u.kid2; t = t->u.kid2;
op = t->op; op = t->op;
assert(op < REOP_LIMIT); assert(op < REOP_LIMIT);
continue; continue;
...@@ -676,7 +676,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth, ...@@ -676,7 +676,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
emitStateSP->jumpToJumpFlag = FALSE; emitStateSP->jumpToJumpFlag = FALSE;
++emitStateSP; ++emitStateSP;
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth); assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
t = (RENode *) t->kid; t = t->kid;
op = t->op; op = t->op;
assert(op < REOP_LIMIT); assert(op < REOP_LIMIT);
continue; continue;
...@@ -699,7 +699,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth, ...@@ -699,7 +699,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
while (t->next && while (t->next &&
t->next->op == REOP_FLAT && t->next->op == REOP_FLAT &&
(WCHAR*)t->kid + t->u.flat.length == (WCHAR*)t->kid + t->u.flat.length ==
(WCHAR*)t->next->kid) { t->next->kid) {
t->u.flat.length += t->next->u.flat.length; t->u.flat.length += t->next->u.flat.length;
t->next = t->next->next; t->next = t->next->next;
} }
...@@ -727,7 +727,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth, ...@@ -727,7 +727,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
emitStateSP->continueOp = REOP_RPAREN; emitStateSP->continueOp = REOP_RPAREN;
++emitStateSP; ++emitStateSP;
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth); assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
t = (RENode *) t->kid; t = t->kid;
op = t->op; op = t->op;
continue; continue;
...@@ -747,7 +747,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth, ...@@ -747,7 +747,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
emitStateSP->continueOp = REOP_ASSERTTEST; emitStateSP->continueOp = REOP_ASSERTTEST;
++emitStateSP; ++emitStateSP;
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth); assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
t = (RENode *) t->kid; t = t->kid;
op = t->op; op = t->op;
continue; continue;
...@@ -765,7 +765,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth, ...@@ -765,7 +765,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
emitStateSP->continueOp = REOP_ASSERTNOTTEST; emitStateSP->continueOp = REOP_ASSERTNOTTEST;
++emitStateSP; ++emitStateSP;
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth); assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
t = (RENode *) t->kid; t = t->kid;
op = t->op; op = t->op;
continue; continue;
...@@ -793,7 +793,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth, ...@@ -793,7 +793,7 @@ EmitREBytecode(CompilerState *state, JSRegExp *re, size_t treeDepth,
emitStateSP->continueOp = REOP_ENDCHILD; emitStateSP->continueOp = REOP_ENDCHILD;
++emitStateSP; ++emitStateSP;
assert((size_t)(emitStateSP - emitStateStack) <= treeDepth); assert((size_t)(emitStateSP - emitStateStack) <= treeDepth);
t = (RENode *) t->kid; t = t->kid;
op = t->op; op = t->op;
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment