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
f03c8a19
Commit
f03c8a19
authored
Nov 05, 2011
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Remove extraneous braces from switch statements.
parent
f640ba23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
30 deletions
+11
-30
pop3transport.c
dlls/inetcomm/pop3transport.c
+11
-30
No files found.
dlls/inetcomm/pop3transport.c
View file @
f03c8a19
...
...
@@ -63,7 +63,6 @@ static HRESULT parse_response(POP3Transport *This)
switch
(
This
->
state
)
{
case
STATE_NONE
:
{
if
(
strlen
(
This
->
response
)
<
3
)
{
WARN
(
"parse error
\n
"
);
...
...
@@ -78,7 +77,7 @@ static HRESULT parse_response(POP3Transport *This)
}
This
->
state
=
STATE_DONE
;
return
S_FALSE
;
}
default:
return
S_OK
;
}
}
...
...
@@ -92,7 +91,6 @@ static HRESULT parse_uidl_response(POP3Transport *This, POP3UIDL *uidl)
switch
(
This
->
state
)
{
case
STATE_OK
:
{
if
(
This
->
type
==
POP3CMD_GET_POPID
)
{
if
((
p
=
strchr
(
This
->
ptr
,
' '
)))
...
...
@@ -111,9 +109,8 @@ static HRESULT parse_uidl_response(POP3Transport *This, POP3UIDL *uidl)
}
This
->
state
=
STATE_MULTILINE
;
return
S_OK
;
}
case
STATE_MULTILINE
:
{
if
(
This
->
response
[
0
]
==
'.'
&&
!
This
->
response
[
1
])
{
This
->
valid_info
=
FALSE
;
...
...
@@ -128,14 +125,12 @@ static HRESULT parse_uidl_response(POP3Transport *This, POP3UIDL *uidl)
This
->
valid_info
=
TRUE
;
return
S_OK
;
}
}
default:
{
WARN
(
"parse error
\n
"
);
This
->
state
=
STATE_DONE
;
return
S_FALSE
;
}
}
}
static
HRESULT
parse_stat_response
(
POP3Transport
*
This
,
POP3STAT
*
stat
)
...
...
@@ -147,7 +142,6 @@ static HRESULT parse_stat_response(POP3Transport *This, POP3STAT *stat)
switch
(
This
->
state
)
{
case
STATE_OK
:
{
if
((
p
=
strchr
(
This
->
ptr
,
' '
)))
{
while
(
*
p
==
' '
)
p
++
;
...
...
@@ -156,14 +150,12 @@ static HRESULT parse_stat_response(POP3Transport *This, POP3STAT *stat)
This
->
state
=
STATE_DONE
;
return
S_OK
;
}
}
default:
{
WARN
(
"parse error
\n
"
);
This
->
state
=
STATE_DONE
;
return
S_FALSE
;
}
}
}
static
HRESULT
parse_list_response
(
POP3Transport
*
This
,
POP3LIST
*
list
)
...
...
@@ -175,7 +167,6 @@ static HRESULT parse_list_response(POP3Transport *This, POP3LIST *list)
switch
(
This
->
state
)
{
case
STATE_OK
:
{
if
(
This
->
type
==
POP3CMD_GET_POPID
)
{
if
((
p
=
strchr
(
This
->
ptr
,
' '
)))
...
...
@@ -189,9 +180,8 @@ static HRESULT parse_list_response(POP3Transport *This, POP3LIST *list)
}
This
->
state
=
STATE_MULTILINE
;
return
S_OK
;
}
case
STATE_MULTILINE
:
{
if
(
This
->
response
[
0
]
==
'.'
&&
!
This
->
response
[
1
])
{
This
->
valid_info
=
FALSE
;
...
...
@@ -206,14 +196,12 @@ static HRESULT parse_list_response(POP3Transport *This, POP3LIST *list)
This
->
valid_info
=
TRUE
;
return
S_OK
;
}
}
default:
{
WARN
(
"parse error
\n
"
);
This
->
state
=
STATE_DONE
;
return
S_FALSE
;
}
}
}
static
HRESULT
parse_dele_response
(
POP3Transport
*
This
,
DWORD
*
dwPopId
)
...
...
@@ -221,18 +209,15 @@ static HRESULT parse_dele_response(POP3Transport *This, DWORD *dwPopId)
switch
(
This
->
state
)
{
case
STATE_OK
:
{
*
dwPopId
=
0
;
/* FIXME */
This
->
state
=
STATE_DONE
;
return
S_OK
;
}
default:
{
WARN
(
"parse error
\n
"
);
This
->
state
=
STATE_DONE
;
return
S_FALSE
;
}
}
}
static
HRESULT
parse_retr_response
(
POP3Transport
*
This
,
POP3RETR
*
retr
)
...
...
@@ -240,7 +225,6 @@ static HRESULT parse_retr_response(POP3Transport *This, POP3RETR *retr)
switch
(
This
->
state
)
{
case
STATE_OK
:
{
retr
->
fHeader
=
FALSE
;
retr
->
fBody
=
FALSE
;
retr
->
dwPopId
=
This
->
msgid
;
...
...
@@ -251,7 +235,7 @@ static HRESULT parse_retr_response(POP3Transport *This, POP3RETR *retr)
This
->
state
=
STATE_MULTILINE
;
This
->
valid_info
=
FALSE
;
return
S_OK
;
}
case
STATE_MULTILINE
:
{
int
len
;
...
...
@@ -273,13 +257,12 @@ static HRESULT parse_retr_response(POP3Transport *This, POP3RETR *retr)
This
->
valid_info
=
TRUE
;
return
S_OK
;
}
default:
{
WARN
(
"parse error
\n
"
);
This
->
state
=
STATE_DONE
;
return
S_FALSE
;
}
}
}
static
HRESULT
parse_top_response
(
POP3Transport
*
This
,
POP3TOP
*
top
)
...
...
@@ -287,7 +270,6 @@ static HRESULT parse_top_response(POP3Transport *This, POP3TOP *top)
switch
(
This
->
state
)
{
case
STATE_OK
:
{
top
->
fHeader
=
FALSE
;
top
->
fBody
=
FALSE
;
top
->
dwPopId
=
This
->
msgid
;
...
...
@@ -299,7 +281,7 @@ static HRESULT parse_top_response(POP3Transport *This, POP3TOP *top)
This
->
state
=
STATE_MULTILINE
;
This
->
valid_info
=
FALSE
;
return
S_OK
;
}
case
STATE_MULTILINE
:
{
int
len
;
...
...
@@ -321,13 +303,12 @@ static HRESULT parse_top_response(POP3Transport *This, POP3TOP *top)
This
->
valid_info
=
TRUE
;
return
S_OK
;
}
default:
{
WARN
(
"parse error
\n
"
);
This
->
state
=
STATE_DONE
;
return
S_FALSE
;
}
}
}
static
void
init_parser
(
POP3Transport
*
This
,
POP3COMMAND
command
,
POP3CMDTYPE
type
)
...
...
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