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
e81412a4
Commit
e81412a4
authored
Nov 20, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Use BOOL type where appropriate.
parent
37abf45e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
editor.c
dlls/riched20/editor.c
+1
-1
editor.h
dlls/riched20/editor.h
+2
-2
run.c
dlls/riched20/run.c
+7
-7
No files found.
dlls/riched20/editor.c
View file @
e81412a4
...
...
@@ -247,7 +247,7 @@ static const WCHAR REListBox20W[] = {'R','E','L','i','s','t','B','o','x','2','0'
static
const
WCHAR
REComboBox20W
[]
=
{
'R'
,
'E'
,
'C'
,
'o'
,
'm'
,
'b'
,
'o'
,
'B'
,
'o'
,
'x'
,
'2'
,
'0'
,
'W'
,
0
};
static
HCURSOR
hLeft
;
int
me_debug
=
0
;
BOOL
me_debug
=
FALSE
;
HANDLE
me_heap
=
NULL
;
static
BOOL
ME_ListBoxRegistered
=
FALSE
;
...
...
dlls/riched20/editor.h
View file @
e81412a4
...
...
@@ -144,7 +144,7 @@ int ME_CharFromPointContext(ME_Context *c, int cx, ME_Run *run, BOOL closest, BO
int
ME_CharFromPoint
(
ME_TextEditor
*
editor
,
int
cx
,
ME_Run
*
run
,
BOOL
closest
,
BOOL
visual_order
)
DECLSPEC_HIDDEN
;
int
ME_PointFromCharContext
(
ME_Context
*
c
,
ME_Run
*
pRun
,
int
nOffset
,
BOOL
visual_order
)
DECLSPEC_HIDDEN
;
int
ME_PointFromChar
(
ME_TextEditor
*
editor
,
ME_Run
*
pRun
,
int
nOffset
,
BOOL
visual_order
)
DECLSPEC_HIDDEN
;
int
ME_CanJoinRuns
(
const
ME_Run
*
run1
,
const
ME_Run
*
run2
)
DECLSPEC_HIDDEN
;
BOOL
ME_CanJoinRuns
(
const
ME_Run
*
run1
,
const
ME_Run
*
run2
)
DECLSPEC_HIDDEN
;
void
ME_JoinRuns
(
ME_TextEditor
*
editor
,
ME_DisplayItem
*
p
)
DECLSPEC_HIDDEN
;
ME_DisplayItem
*
ME_SplitRunSimple
(
ME_TextEditor
*
editor
,
ME_Cursor
*
cursor
)
DECLSPEC_HIDDEN
;
void
ME_UpdateRunFlags
(
ME_TextEditor
*
editor
,
ME_Run
*
run
)
DECLSPEC_HIDDEN
;
...
...
@@ -257,7 +257,7 @@ void ME_RTFParAttrHook(struct _RTF_Info *info) DECLSPEC_HIDDEN;
void
ME_RTFTblAttrHook
(
struct
_RTF_Info
*
info
)
DECLSPEC_HIDDEN
;
void
ME_RTFSpecialCharHook
(
struct
_RTF_Info
*
info
)
DECLSPEC_HIDDEN
;
void
ME_StreamInFill
(
ME_InStream
*
stream
)
DECLSPEC_HIDDEN
;
extern
int
me_debug
DECLSPEC_HIDDEN
;
extern
BOOL
me_debug
DECLSPEC_HIDDEN
;
/* table.c */
BOOL
ME_IsInTable
(
ME_DisplayItem
*
pItem
)
DECLSPEC_HIDDEN
;
...
...
dlls/riched20/run.c
View file @
e81412a4
...
...
@@ -30,17 +30,17 @@ WINE_DECLARE_DEBUG_CHANNEL(richedit_lists);
/******************************************************************************
* ME_CanJoinRuns
*
* Returns
1 if two runs can be safely merged into one, 0
otherwise.
*/
int
ME_CanJoinRuns
(
const
ME_Run
*
run1
,
const
ME_Run
*
run2
)
* Returns
TRUE if two runs can be safely merged into one, FALSE
otherwise.
*/
BOOL
ME_CanJoinRuns
(
const
ME_Run
*
run1
,
const
ME_Run
*
run2
)
{
if
((
run1
->
nFlags
|
run2
->
nFlags
)
&
MERF_NOJOIN
)
return
0
;
return
FALSE
;
if
(
run1
->
style
!=
run2
->
style
)
return
0
;
return
FALSE
;
if
((
run1
->
nFlags
&
MERF_STYLEFLAGS
)
!=
(
run2
->
nFlags
&
MERF_STYLEFLAGS
))
return
0
;
return
1
;
return
FALSE
;
return
TRUE
;
}
void
ME_SkipAndPropagateCharOffset
(
ME_DisplayItem
*
p
,
int
shift
)
...
...
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