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
6cb12645
Commit
6cb12645
authored
Feb 16, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Get rid of the "size" and "type" arguments to scan_url().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b72f7afc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
28 deletions
+7
-28
path.c
dlls/kernelbase/path.c
+7
-28
No files found.
dlls/kernelbase/path.c
View file @
6cb12645
...
@@ -74,11 +74,6 @@ struct parsed_url
...
@@ -74,11 +74,6 @@ struct parsed_url
DWORD
query_len
;
/* [out] size of Query (until eos) */
DWORD
query_len
;
/* [out] size of Query (until eos) */
};
};
enum
url_scan_type
{
SCHEME
,
};
static
WCHAR
*
heap_strdupAtoW
(
const
char
*
str
)
static
WCHAR
*
heap_strdupAtoW
(
const
char
*
str
)
{
{
WCHAR
*
ret
=
NULL
;
WCHAR
*
ret
=
NULL
;
...
@@ -4158,28 +4153,11 @@ HRESULT WINAPI UrlGetPartA(const char *url, char *out, DWORD *out_len, DWORD par
...
@@ -4158,28 +4153,11 @@ HRESULT WINAPI UrlGetPartA(const char *url, char *out, DWORD *out_len, DWORD par
return
hr
;
return
hr
;
}
}
static
const
WCHAR
*
scan_url
(
const
WCHAR
*
start
,
DWORD
*
size
,
enum
url_scan_type
type
)
static
const
WCHAR
*
parse_scheme
(
const
WCHAR
*
p
)
{
{
*
size
=
0
;
while
((
*
p
>=
'a'
&&
*
p
<=
'z'
)
||
(
*
p
>=
'0'
&&
*
p
<=
'9'
)
||
*
p
==
'+'
||
*
p
==
'-'
||
*
p
==
'.'
)
++
p
;
switch
(
type
)
return
p
;
{
case
SCHEME
:
while
((
isalnum
(
*
start
)
&&
!
isupper
(
*
start
))
||
*
start
==
'+'
||
*
start
==
'-'
||
*
start
==
'.'
)
{
start
++
;
(
*
size
)
++
;
}
if
(
*
start
!=
':'
)
*
size
=
0
;
break
;
default:
FIXME
(
"unknown type %d
\n
"
,
type
);
return
L""
;
}
return
start
;
}
}
static
const
WCHAR
*
parse_url_element
(
const
WCHAR
*
url
,
const
WCHAR
*
separators
)
static
const
WCHAR
*
parse_url_element
(
const
WCHAR
*
url
,
const
WCHAR
*
separators
)
...
@@ -4202,8 +4180,9 @@ static void parse_url( const WCHAR *url, struct parsed_url *pl )
...
@@ -4202,8 +4180,9 @@ static void parse_url( const WCHAR *url, struct parsed_url *pl )
memset
(
pl
,
0
,
sizeof
(
*
pl
));
memset
(
pl
,
0
,
sizeof
(
*
pl
));
pl
->
scheme
=
url
;
pl
->
scheme
=
url
;
work
=
scan_url
(
pl
->
scheme
,
&
pl
->
scheme_len
,
SCHEME
);
work
=
parse_scheme
(
pl
->
scheme
);
if
(
!*
work
||
(
*
work
!=
':'
))
return
;
if
(
*
work
!=
':'
)
return
;
pl
->
scheme_len
=
work
-
pl
->
scheme
;
work
++
;
work
++
;
if
(
!
is_slash
(
work
[
0
]
)
||
!
is_slash
(
work
[
1
]
))
if
(
!
is_slash
(
work
[
0
]
)
||
!
is_slash
(
work
[
1
]
))
return
;
return
;
...
...
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