Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
981f733e
Commit
981f733e
authored
Feb 02, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Remove superfluous pointer casts.
parent
2aebb568
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
engine.c
dlls/jscript/engine.c
+1
-1
jscript.c
dlls/jscript/jscript.c
+5
-5
lex.c
dlls/jscript/lex.c
+2
-2
regexp.c
dlls/jscript/regexp.c
+8
-8
No files found.
dlls/jscript/engine.c
View file @
981f733e
...
...
@@ -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
;
}
...
...
dlls/jscript/jscript.c
View file @
981f733e
...
...
@@ -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
)
{
...
...
dlls/jscript/lex.c
View file @
981f733e
...
...
@@ -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
'$'
:
...
...
dlls/jscript/regexp.c
View file @
981f733e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment