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
67826276
Commit
67826276
authored
Aug 10, 2009
by
Dylan Smith
Committed by
Alexandre Julliard
Aug 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Implement ME_DITypesEqual using a switch statment.
parent
694b6955
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
list.c
dlls/riched20/list.c
+17
-17
No files found.
dlls/riched20/list.c
View file @
67826276
...
...
@@ -44,23 +44,23 @@ void ME_Remove(ME_DisplayItem *diWhere)
static
BOOL
ME_DITypesEqual
(
ME_DIType
type
,
ME_DIType
nTypeOrClass
)
{
if
(
type
==
nTypeOrClass
)
return
TRUE
;
if
(
nTypeOrClass
==
diRunOrParagraph
&&
(
type
==
diRun
||
type
==
diParagraph
))
return
TRUE
;
if
(
nTypeOrClass
==
diRunOrStartRow
&&
(
type
==
diRun
||
type
==
diStartRow
))
return
TRUE
;
if
(
nTypeOrClass
==
diParagraphOrEnd
&&
(
type
==
diTextEnd
||
type
==
diParagraph
))
return
TRUE
;
if
(
nTypeOrClass
==
diStartRowOrParagraph
&&
(
type
==
diStartRow
||
type
==
diParagraph
))
return
TRUE
;
if
(
nTypeOrClass
==
diStartRowOrParagraphOrEnd
&&
(
type
==
diStartRow
||
type
==
diParagraph
||
type
==
diTextEnd
))
return
TRUE
;
if
(
nTypeOrClass
==
diRunOrParagraphOrEnd
&&
(
type
==
diRun
||
type
==
diParagraph
||
type
==
diTextEnd
))
return
TRUE
;
return
FALSE
;
switch
(
nTypeOrClass
)
{
case
diRunOrParagraph
:
return
type
==
diRun
||
type
==
diParagraph
;
case
diRunOrStartRow
:
return
type
==
diRun
||
type
==
diStartRow
;
case
diParagraphOrEnd
:
return
type
==
diTextEnd
||
type
==
diParagraph
;
case
diStartRowOrParagraph
:
return
type
==
diStartRow
||
type
==
diParagraph
;
case
diStartRowOrParagraphOrEnd
:
return
type
==
diStartRow
||
type
==
diParagraph
||
type
==
diTextEnd
;
case
diRunOrParagraphOrEnd
:
return
type
==
diRun
||
type
==
diParagraph
||
type
==
diTextEnd
;
default:
return
type
==
nTypeOrClass
;
}
}
ME_DisplayItem
*
ME_FindItemBack
(
ME_DisplayItem
*
di
,
ME_DIType
nTypeOrClass
)
...
...
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