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
4b53c3aa
Commit
4b53c3aa
authored
Jul 01, 2005
by
Stefan Huehner
Committed by
Alexandre Julliard
Jul 01, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make some function static.
parent
12c08baf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
cabextract.c
dlls/cabinet/cabextract.c
+0
-0
caret.c
dlls/riched20/caret.c
+13
-13
draw.c
dlls/uxtheme/draw.c
+8
-8
uxini.c
dlls/uxtheme/uxini.c
+1
-1
No files found.
dlls/cabinet/cabextract.c
View file @
4b53c3aa
This diff is collapsed.
Click to expand it.
dlls/riched20/caret.c
View file @
4b53c3aa
...
...
@@ -413,7 +413,7 @@ void ME_InsertTextFromCursor(ME_TextEditor *editor, int nCursor,
}
}
BOOL
ME_ArrowLeft
(
ME_TextEditor
*
editor
,
ME_Cursor
*
p
)
static
BOOL
ME_ArrowLeft
(
ME_TextEditor
*
editor
,
ME_Cursor
*
p
)
{
if
(
p
->
nOffset
)
{
p
->
nOffset
=
ME_StrRelPos2
(
p
->
pRun
->
member
.
run
.
strText
,
p
->
nOffset
,
-
1
);
...
...
@@ -453,7 +453,7 @@ BOOL ME_ArrowLeft(ME_TextEditor *editor, ME_Cursor *p)
return
FALSE
;
}
BOOL
ME_ArrowRight
(
ME_TextEditor
*
editor
,
ME_Cursor
*
p
)
static
BOOL
ME_ArrowRight
(
ME_TextEditor
*
editor
,
ME_Cursor
*
p
)
{
int
new_ofs
=
ME_StrRelPos2
(
p
->
pRun
->
member
.
run
.
strText
,
p
->
nOffset
,
1
);
if
(
new_ofs
<
p
->
pRun
->
member
.
run
.
strText
->
nLen
)
{
...
...
@@ -698,7 +698,7 @@ static int ME_GetXForArrow(ME_TextEditor *editor, ME_Cursor *pCursor)
return
x
;
}
void
ME_ArrowUp
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
static
void
ME_ArrowUp
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
{
ME_DisplayItem
*
pRun
=
pCursor
->
pRun
;
ME_DisplayItem
*
pItem
,
*
pItem2
;
...
...
@@ -725,7 +725,7 @@ void ME_ArrowUp(ME_TextEditor *editor, ME_Cursor *pCursor)
pCursor
->
pRun
=
ME_FindRunInRow
(
editor
,
pItem2
,
x
,
&
pCursor
->
nOffset
,
&
editor
->
bCaretAtEnd
);
}
void
ME_ArrowDown
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
static
void
ME_ArrowDown
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
{
ME_DisplayItem
*
pRun
=
pCursor
->
pRun
;
ME_DisplayItem
*
pItem
;
...
...
@@ -749,7 +749,7 @@ void ME_ArrowDown(ME_TextEditor *editor, ME_Cursor *pCursor)
assert
(
pCursor
->
pRun
->
type
==
diRun
);
}
void
ME_ArrowPageUp
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
static
void
ME_ArrowPageUp
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
{
ME_DisplayItem
*
pRun
=
pCursor
->
pRun
;
ME_DisplayItem
*
pLast
,
*
p
;
...
...
@@ -804,7 +804,7 @@ void ME_ArrowPageUp(ME_TextEditor *editor, ME_Cursor *pCursor)
In such a situation, clicking the scrollbar restores its position back to the
normal range (ie. sets it to (doclength-screenheight)). */
void
ME_ArrowPageDown
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
static
void
ME_ArrowPageDown
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
{
ME_DisplayItem
*
pRun
=
pCursor
->
pRun
;
ME_DisplayItem
*
pLast
,
*
p
;
...
...
@@ -852,7 +852,7 @@ void ME_ArrowPageDown(ME_TextEditor *editor, ME_Cursor *pCursor)
assert
(
pCursor
->
pRun
->
type
==
diRun
);
}
void
ME_ArrowHome
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
static
void
ME_ArrowHome
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
{
ME_DisplayItem
*
pRow
=
ME_FindItemBack
(
pCursor
->
pRun
,
diStartRow
);
if
(
pRow
)
{
...
...
@@ -871,7 +871,7 @@ void ME_ArrowHome(ME_TextEditor *editor, ME_Cursor *pCursor)
editor
->
bCaretAtEnd
=
FALSE
;
}
void
ME_ArrowCtrlHome
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
static
void
ME_ArrowCtrlHome
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
{
ME_DisplayItem
*
pRow
=
ME_FindItemBack
(
pCursor
->
pRun
,
diTextStart
);
if
(
pRow
)
{
...
...
@@ -883,7 +883,7 @@ void ME_ArrowCtrlHome(ME_TextEditor *editor, ME_Cursor *pCursor)
}
}
void
ME_ArrowEnd
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
static
void
ME_ArrowEnd
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
{
ME_DisplayItem
*
pRow
;
...
...
@@ -907,7 +907,7 @@ void ME_ArrowEnd(ME_TextEditor *editor, ME_Cursor *pCursor)
editor
->
bCaretAtEnd
=
FALSE
;
}
void
ME_ArrowCtrlEnd
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
static
void
ME_ArrowCtrlEnd
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pCursor
)
{
ME_DisplayItem
*
p
=
ME_FindItemFwd
(
pCursor
->
pRun
,
diTextEnd
);
assert
(
p
);
...
...
@@ -924,7 +924,7 @@ BOOL ME_IsSelection(ME_TextEditor *editor)
return
memcmp
(
&
editor
->
pCursors
[
0
],
&
editor
->
pCursors
[
1
],
sizeof
(
ME_Cursor
))
!=
0
;
}
int
ME_GetSelCursor
(
ME_TextEditor
*
editor
,
int
dir
)
static
int
ME_GetSelCursor
(
ME_TextEditor
*
editor
,
int
dir
)
{
int
cdir
=
ME_GetCursorOfs
(
editor
,
0
)
-
ME_GetCursorOfs
(
editor
,
1
);
...
...
@@ -934,7 +934,7 @@ int ME_GetSelCursor(ME_TextEditor *editor, int dir)
return
1
;
}
BOOL
ME_CancelSelection
(
ME_TextEditor
*
editor
,
int
dir
)
static
BOOL
ME_CancelSelection
(
ME_TextEditor
*
editor
,
int
dir
)
{
int
cdir
;
...
...
@@ -979,7 +979,7 @@ BOOL ME_UpdateSelection(ME_TextEditor *editor, ME_Cursor *pTempCursor)
return
TRUE
;
}
void
ME_RepaintSelection
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pTempCursor
)
static
void
ME_RepaintSelection
(
ME_TextEditor
*
editor
,
ME_Cursor
*
pTempCursor
)
{
if
(
ME_UpdateSelection
(
editor
,
pTempCursor
))
{
ME_EnsureVisible
(
editor
,
editor
->
pCursors
[
0
].
pRun
);
...
...
dlls/uxtheme/draw.c
View file @
4b53c3aa
...
...
@@ -134,7 +134,7 @@ HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId,
*
* Select the image to use
*/
PTHEME_PROPERTY
UXTHEME_SelectImage
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
const
RECT
*
pRect
,
BOOL
glyph
)
static
PTHEME_PROPERTY
UXTHEME_SelectImage
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
const
RECT
*
pRect
,
BOOL
glyph
)
{
PTHEME_PROPERTY
tp
;
int
imageselecttype
=
IST_NONE
;
...
...
@@ -186,7 +186,7 @@ PTHEME_PROPERTY UXTHEME_SelectImage(HTHEME hTheme, HDC hdc, int iPartId, int iSt
*
* Load image for part/state
*/
HRESULT
UXTHEME_LoadImage
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
const
RECT
*
pRect
,
BOOL
glyph
,
static
HRESULT
UXTHEME_LoadImage
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
const
RECT
*
pRect
,
BOOL
glyph
,
HBITMAP
*
hBmp
,
RECT
*
bmpRect
)
{
int
imagelayout
=
IL_VERTICAL
;
...
...
@@ -267,7 +267,7 @@ static inline BOOL UXTHEME_Blt(HDC hdcDest, int nXOriginDest, int nYOriginDest,
*
* Draw an imagefile glyph
*/
HRESULT
UXTHEME_DrawImageGlyph
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
static
HRESULT
UXTHEME_DrawImageGlyph
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
RECT
*
pRect
,
const
DTBGOPTS
*
pOptions
)
{
...
...
@@ -333,7 +333,7 @@ HRESULT UXTHEME_DrawImageGlyph(HTHEME hTheme, HDC hdc, int iPartId,
*
* Draw glyph on top of background, if appropriate
*/
HRESULT
UXTHEME_DrawGlyph
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
static
HRESULT
UXTHEME_DrawGlyph
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
RECT
*
pRect
,
const
DTBGOPTS
*
pOptions
)
{
...
...
@@ -356,7 +356,7 @@ HRESULT UXTHEME_DrawGlyph(HTHEME hTheme, HDC hdc, int iPartId,
*
* Draw an imagefile background
*/
HRESULT
UXTHEME_DrawImageBackground
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
static
HRESULT
UXTHEME_DrawImageBackground
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
RECT
*
pRect
,
const
DTBGOPTS
*
pOptions
)
{
...
...
@@ -576,7 +576,7 @@ draw_error:
*
* Draw the bounding rectangle for a borderfill background
*/
HRESULT
UXTHEME_DrawBorderRectangle
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
static
HRESULT
UXTHEME_DrawBorderRectangle
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
RECT
*
pRect
,
const
DTBGOPTS
*
pOptions
)
{
...
...
@@ -621,7 +621,7 @@ HRESULT UXTHEME_DrawBorderRectangle(HTHEME hTheme, HDC hdc, int iPartId,
*
* Fill a borderfill background rectangle
*/
HRESULT
UXTHEME_DrawBackgroundFill
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
static
HRESULT
UXTHEME_DrawBackgroundFill
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
RECT
*
pRect
,
const
DTBGOPTS
*
pOptions
)
{
...
...
@@ -696,7 +696,7 @@ HRESULT UXTHEME_DrawBackgroundFill(HTHEME hTheme, HDC hdc, int iPartId,
*
* Draw an imagefile background
*/
HRESULT
UXTHEME_DrawBorderBackground
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
static
HRESULT
UXTHEME_DrawBorderBackground
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
const
RECT
*
pRect
,
const
DTBGOPTS
*
pOptions
)
{
...
...
dlls/uxtheme/uxini.c
View file @
4b53c3aa
...
...
@@ -149,7 +149,7 @@ static inline BOOL UXINI_isspace(WCHAR c)
* RETURNS
* The section name, non NULL terminated
*/
LPCWSTR
UXINI_GetNextLine
(
PUXINI_FILE
uf
,
DWORD
*
dwLen
)
static
LPCWSTR
UXINI_GetNextLine
(
PUXINI_FILE
uf
,
DWORD
*
dwLen
)
{
LPCWSTR
lpLineEnd
;
LPCWSTR
lpLineStart
;
...
...
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