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
3faeffc5
Commit
3faeffc5
authored
Mar 13, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use DEFAULT_UNREACHABLE macro where appropriate.
parent
9eed654e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
compile.c
dlls/jscript/compile.c
+6
-16
No files found.
dlls/jscript/compile.c
View file @
3faeffc5
...
...
@@ -92,8 +92,7 @@ static void dump_instr_arg(instr_arg_type_t type, instr_arg_t *arg)
case
ARG_FUNC
:
case
ARG_NONE
:
break
;
default:
assert
(
0
);
DEFAULT_UNREACHABLE
;
}
}
...
...
@@ -447,8 +446,7 @@ static HRESULT compile_memberid_expression(compiler_ctx_t *ctx, expression_t *ex
hres
=
push_instr_uint
(
ctx
,
OP_memberid
,
flags
);
break
;
}
default:
assert
(
0
);
DEFAULT_UNREACHABLE
;
}
return
hres
;
...
...
@@ -771,9 +769,7 @@ static HRESULT compile_literal(compiler_ctx_t *ctx, literal_t *literal)
instr_ptr
(
ctx
,
instr
)
->
u
.
arg
[
1
].
uint
=
literal
->
u
.
regexp
.
flags
;
return
S_OK
;
}
default:
assert
(
0
);
return
E_FAIL
;
DEFAULT_UNREACHABLE
;
}
}
...
...
@@ -797,9 +793,7 @@ static HRESULT literal_as_bstr(compiler_ctx_t *ctx, literal_t *literal, BSTR *st
jsstr_release
(
jsstr
);
break
;
}
default:
assert
(
0
);
return
E_FAIL
;
DEFAULT_UNREACHABLE
;
}
return
*
str
?
S_OK
:
E_OUTOFMEMORY
;
...
...
@@ -1050,9 +1044,7 @@ static HRESULT compile_expression(compiler_ctx_t *ctx, expression_t *expr, BOOL
case
EXPR_BXOR
:
hres
=
compile_binary_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_xor
);
break
;
default:
assert
(
0
);
hres
=
E_FAIL
;
DEFAULT_UNREACHABLE
;
}
if
(
FAILED
(
hres
))
...
...
@@ -1769,9 +1761,7 @@ static HRESULT compile_statement(compiler_ctx_t *ctx, statement_ctx_t *stat_ctx,
case
STAT_WITH
:
hres
=
compile_with_statement
(
ctx
,
(
with_statement_t
*
)
stat
);
break
;
default:
assert
(
0
);
hres
=
E_FAIL
;
DEFAULT_UNREACHABLE
;
}
if
(
stat_ctx
)
{
...
...
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