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)
...
@@ -44,23 +44,23 @@ void ME_Remove(ME_DisplayItem *diWhere)
static
BOOL
ME_DITypesEqual
(
ME_DIType
type
,
ME_DIType
nTypeOrClass
)
static
BOOL
ME_DITypesEqual
(
ME_DIType
type
,
ME_DIType
nTypeOrClass
)
{
{
if
(
type
==
nTypeOrClass
)
switch
(
nTypeOrClass
)
return
TRUE
;
{
if
(
nTypeOrClass
==
diRunOrParagraph
&&
(
type
==
diRun
||
type
==
diParagraph
))
case
diRunOrParagraph
:
return
TRUE
;
return
type
==
diRun
||
type
==
diParagraph
;
if
(
nTypeOrClass
==
diRunOrStartRow
&&
(
type
==
diRun
||
type
==
diStartRow
))
case
diRunOrStartRow
:
return
TRUE
;
return
type
==
diRun
||
type
==
diStartRow
;
if
(
nTypeOrClass
==
diParagraphOrEnd
&&
(
type
==
diTextEnd
||
type
==
diParagraph
))
case
diParagraphOrEnd
:
return
TRUE
;
return
type
==
diTextEnd
||
type
==
diParagraph
;
if
(
nTypeOrClass
==
diStartRowOrParagraph
&&
(
type
==
diStartRow
||
type
==
diParagraph
))
case
diStartRowOrParagraph
:
return
TRUE
;
return
type
==
diStartRow
||
type
==
diParagraph
;
if
(
nTypeOrClass
==
diStartRowOrParagraphOrEnd
case
diStartRowOrParagraphOrEnd
:
&&
(
type
==
diStartRow
||
type
==
diParagraph
||
type
==
diTextEnd
))
return
type
==
diStartRow
||
type
==
diParagraph
||
type
==
diTextEnd
;
return
TRUE
;
case
diRunOrParagraphOrEnd
:
if
(
nTypeOrClass
==
diRunOrParagraphOrEnd
return
type
==
diRun
||
type
==
diParagraph
||
type
==
diTextEnd
;
&&
(
type
==
diRun
||
type
==
diParagraph
||
type
==
diTextEnd
))
default:
return
TRUE
;
return
type
==
nTypeOrClass
;
return
FALSE
;
}
}
}
ME_DisplayItem
*
ME_FindItemBack
(
ME_DisplayItem
*
di
,
ME_DIType
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