Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2e2efd44
Commit
2e2efd44
authored
Aug 11, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Constify some variables.
parent
7319157d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
caret.c
dlls/riched20/caret.c
+2
-2
clipboard.c
dlls/riched20/clipboard.c
+5
-5
editor.c
dlls/riched20/editor.c
+1
-1
editor.h
dlls/riched20/editor.h
+3
-3
No files found.
dlls/riched20/caret.c
View file @
2e2efd44
...
@@ -47,7 +47,7 @@ int ME_GetTextLength(ME_TextEditor *editor)
...
@@ -47,7 +47,7 @@ int ME_GetTextLength(ME_TextEditor *editor)
}
}
int
ME_GetTextLengthEx
(
ME_TextEditor
*
editor
,
GETTEXTLENGTHEX
*
how
)
int
ME_GetTextLengthEx
(
ME_TextEditor
*
editor
,
const
GETTEXTLENGTHEX
*
how
)
{
{
int
length
;
int
length
;
...
@@ -1149,7 +1149,7 @@ static int ME_GetSelCursor(ME_TextEditor *editor, int dir)
...
@@ -1149,7 +1149,7 @@ static int ME_GetSelCursor(ME_TextEditor *editor, int dir)
return
1
;
return
1
;
}
}
BOOL
ME_UpdateSelection
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pTempCursor
)
BOOL
ME_UpdateSelection
(
ME_TextEditor
*
editor
,
const
ME_Cursor
*
pTempCursor
)
{
{
ME_Cursor
old_anchor
=
editor
->
pCursors
[
1
];
ME_Cursor
old_anchor
=
editor
->
pCursors
[
1
];
...
...
dlls/riched20/clipboard.c
View file @
2e2efd44
...
@@ -45,7 +45,7 @@ typedef struct EnumFormatImpl {
...
@@ -45,7 +45,7 @@ typedef struct EnumFormatImpl {
UINT
cur
;
UINT
cur
;
}
EnumFormatImpl
;
}
EnumFormatImpl
;
static
HRESULT
EnumFormatImpl_Create
(
FORMATETC
*
fmtetc
,
UINT
size
,
LPENUMFORMATETC
*
lplpformatetc
);
static
HRESULT
EnumFormatImpl_Create
(
const
FORMATETC
*
fmtetc
,
UINT
size
,
LPENUMFORMATETC
*
lplpformatetc
);
static
HRESULT
WINAPI
EnumFormatImpl_QueryInterface
(
IEnumFORMATETC
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
static
HRESULT
WINAPI
EnumFormatImpl_QueryInterface
(
IEnumFORMATETC
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
{
...
@@ -147,7 +147,7 @@ static const IEnumFORMATETCVtbl VT_EnumFormatImpl = {
...
@@ -147,7 +147,7 @@ static const IEnumFORMATETCVtbl VT_EnumFormatImpl = {
EnumFormatImpl_Clone
EnumFormatImpl_Clone
};
};
static
HRESULT
EnumFormatImpl_Create
(
FORMATETC
*
fmtetc
,
UINT
fmtetc_cnt
,
IEnumFORMATETC
**
lplpformatetc
)
static
HRESULT
EnumFormatImpl_Create
(
const
FORMATETC
*
fmtetc
,
UINT
fmtetc_cnt
,
IEnumFORMATETC
**
lplpformatetc
)
{
{
EnumFormatImpl
*
ret
;
EnumFormatImpl
*
ret
;
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
...
@@ -325,7 +325,7 @@ static const IDataObjectVtbl VT_DataObjectImpl =
...
@@ -325,7 +325,7 @@ static const IDataObjectVtbl VT_DataObjectImpl =
DataObjectImpl_EnumDAdvise
DataObjectImpl_EnumDAdvise
};
};
static
HGLOBAL
get_unicode_text
(
ME_TextEditor
*
editor
,
CHARRANGE
*
lpchrg
)
static
HGLOBAL
get_unicode_text
(
ME_TextEditor
*
editor
,
const
CHARRANGE
*
lpchrg
)
{
{
int
pars
,
len
;
int
pars
,
len
;
WCHAR
*
data
;
WCHAR
*
data
;
...
@@ -369,7 +369,7 @@ static DWORD CALLBACK ME_AppendToHGLOBAL(DWORD_PTR dwCookie, LPBYTE lpBuff, LONG
...
@@ -369,7 +369,7 @@ static DWORD CALLBACK ME_AppendToHGLOBAL(DWORD_PTR dwCookie, LPBYTE lpBuff, LONG
return
0
;
return
0
;
}
}
static
HGLOBAL
get_rtf_text
(
ME_TextEditor
*
editor
,
CHARRANGE
*
lpchrg
)
static
HGLOBAL
get_rtf_text
(
ME_TextEditor
*
editor
,
const
CHARRANGE
*
lpchrg
)
{
{
EDITSTREAM
es
;
EDITSTREAM
es
;
ME_GlobalDestStruct
gds
;
ME_GlobalDestStruct
gds
;
...
@@ -383,7 +383,7 @@ static HGLOBAL get_rtf_text(ME_TextEditor *editor, CHARRANGE *lpchrg)
...
@@ -383,7 +383,7 @@ static HGLOBAL get_rtf_text(ME_TextEditor *editor, CHARRANGE *lpchrg)
return
gds
.
hData
;
return
gds
.
hData
;
}
}
HRESULT
ME_GetDataObject
(
ME_TextEditor
*
editor
,
CHARRANGE
*
lpchrg
,
LPDATAOBJECT
*
lplpdataobj
)
HRESULT
ME_GetDataObject
(
ME_TextEditor
*
editor
,
const
CHARRANGE
*
lpchrg
,
LPDATAOBJECT
*
lplpdataobj
)
{
{
DataObjectImpl
*
obj
;
DataObjectImpl
*
obj
;
TRACE
(
"(%p,%d,%d)
\n
"
,
editor
,
lpchrg
->
cpMin
,
lpchrg
->
cpMax
);
TRACE
(
"(%p,%d,%d)
\n
"
,
editor
,
lpchrg
->
cpMin
,
lpchrg
->
cpMax
);
...
...
dlls/riched20/editor.c
View file @
2e2efd44
...
@@ -782,7 +782,7 @@ ME_FindItemAtOffset(ME_TextEditor *editor, ME_DIType nItemType, int nOffset, int
...
@@ -782,7 +782,7 @@ ME_FindItemAtOffset(ME_TextEditor *editor, ME_DIType nItemType, int nOffset, int
static
int
static
int
ME_FindText
(
ME_TextEditor
*
editor
,
DWORD
flags
,
CHARRANGE
*
chrg
,
const
WCHAR
*
text
,
CHARRANGE
*
chrgText
)
ME_FindText
(
ME_TextEditor
*
editor
,
DWORD
flags
,
const
CHARRANGE
*
chrg
,
const
WCHAR
*
text
,
CHARRANGE
*
chrgText
)
{
{
const
int
nLen
=
lstrlenW
(
text
);
const
int
nLen
=
lstrlenW
(
text
);
const
int
nTextLen
=
ME_GetTextLength
(
editor
);
const
int
nTextLen
=
ME_GetTextLength
(
editor
);
...
...
dlls/riched20/editor.h
View file @
2e2efd44
...
@@ -206,9 +206,9 @@ void ME_InsertGraphicsFromCursor(ME_TextEditor *editor, int nCursor);
...
@@ -206,9 +206,9 @@ void ME_InsertGraphicsFromCursor(ME_TextEditor *editor, int nCursor);
void
ME_InsertTableCellFromCursor
(
ME_TextEditor
*
editor
,
int
nCursor
);
void
ME_InsertTableCellFromCursor
(
ME_TextEditor
*
editor
,
int
nCursor
);
void
ME_InternalDeleteText
(
ME_TextEditor
*
editor
,
int
nOfs
,
int
nChars
);
void
ME_InternalDeleteText
(
ME_TextEditor
*
editor
,
int
nOfs
,
int
nChars
);
int
ME_GetTextLength
(
ME_TextEditor
*
editor
);
int
ME_GetTextLength
(
ME_TextEditor
*
editor
);
int
ME_GetTextLengthEx
(
ME_TextEditor
*
editor
,
GETTEXTLENGTHEX
*
how
);
int
ME_GetTextLengthEx
(
ME_TextEditor
*
editor
,
const
GETTEXTLENGTHEX
*
how
);
ME_Style
*
ME_GetSelectionInsertStyle
(
ME_TextEditor
*
editor
);
ME_Style
*
ME_GetSelectionInsertStyle
(
ME_TextEditor
*
editor
);
BOOL
ME_UpdateSelection
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pTempCursor
);
BOOL
ME_UpdateSelection
(
ME_TextEditor
*
editor
,
const
ME_Cursor
*
pTempCursor
);
/* wrap.c */
/* wrap.c */
void
ME_PrepareParagraphForWrapping
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
);
void
ME_PrepareParagraphForWrapping
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
);
...
@@ -285,4 +285,4 @@ LRESULT ME_StreamOutRange(ME_TextEditor *editor, DWORD dwFormat, int nStart, int
...
@@ -285,4 +285,4 @@ LRESULT ME_StreamOutRange(ME_TextEditor *editor, DWORD dwFormat, int nStart, int
LRESULT
ME_StreamOut
(
ME_TextEditor
*
editor
,
DWORD
dwFormat
,
EDITSTREAM
*
stream
);
LRESULT
ME_StreamOut
(
ME_TextEditor
*
editor
,
DWORD
dwFormat
,
EDITSTREAM
*
stream
);
/* clipboard.c */
/* clipboard.c */
HRESULT
ME_GetDataObject
(
ME_TextEditor
*
editor
,
CHARRANGE
*
lpchrg
,
LPDATAOBJECT
*
lplpdataobj
);
HRESULT
ME_GetDataObject
(
ME_TextEditor
*
editor
,
const
CHARRANGE
*
lpchrg
,
LPDATAOBJECT
*
lplpdataobj
);
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