Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
77d0c2a4
Commit
77d0c2a4
authored
Sep 30, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Moved skipping spaces to separated function.
parent
79dc3bc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
lex.c
dlls/jscript/lex.c
+11
-5
No files found.
dlls/jscript/lex.c
View file @
77d0c2a4
...
...
@@ -231,6 +231,16 @@ static BOOL skip_comment(parser_ctx_t *ctx)
return
TRUE
;
}
static
BOOL
skip_spaces
(
parser_ctx_t
*
ctx
)
{
while
(
ctx
->
ptr
<
ctx
->
end
&&
isspaceW
(
*
ctx
->
ptr
))
{
if
(
is_endline
(
*
ctx
->
ptr
++
))
ctx
->
nl
=
TRUE
;
}
return
ctx
->
ptr
!=
ctx
->
end
;
}
static
BOOL
unescape
(
WCHAR
*
str
)
{
WCHAR
*
pd
,
*
p
,
c
;
...
...
@@ -534,11 +544,7 @@ static BOOL parse_numeric_literal(parser_ctx_t *ctx, double *ret)
static
int
next_token
(
parser_ctx_t
*
ctx
,
void
*
lval
)
{
do
{
while
(
ctx
->
ptr
<
ctx
->
end
&&
isspaceW
(
*
ctx
->
ptr
))
{
if
(
is_endline
(
*
ctx
->
ptr
++
))
ctx
->
nl
=
TRUE
;
}
if
(
ctx
->
ptr
==
ctx
->
end
)
if
(
!
skip_spaces
(
ctx
))
return
tEOF
;
}
while
(
skip_comment
(
ctx
)
||
skip_html_comment
(
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