From 166b3a6cdbdddc5dcecbc8f34491fbe94eeac653 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Tue, 23 Jan 2007 21:00:27 +0000 Subject: [PATCH] riched20: Declare some functions static. --- dlls/riched20/paint.c | 4 ++-- dlls/riched20/run.c | 20 ++++++++++---------- dlls/riched20/style.c | 4 ++-- dlls/riched20/undo.c | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index e924f806dad..63a0c4c4082 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -206,8 +206,8 @@ static void ME_DebugWrite(HDC hDC, POINT *pt, WCHAR *szText) { SetTextColor(hDC, color); } -void ME_DrawGraphics(ME_Context *c, int x, int y, ME_Run *run, - ME_Paragraph *para, BOOL selected) { +static void ME_DrawGraphics(ME_Context *c, int x, int y, ME_Run *run, + ME_Paragraph *para, BOOL selected) { SIZE sz; int xs, ys, xe, ye, h, ym, width, eyes; ME_GetGraphicsSize(c->editor, run, &sz); diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c index df6753668d6..29fc309ce21 100644 --- a/dlls/riched20/run.c +++ b/dlls/riched20/run.c @@ -634,11 +634,10 @@ int ME_PointFromChar(ME_TextEditor *editor, ME_Run *pRun, int nOffset) /****************************************************************************** * ME_GetTextExtent - * - * Finds a width and a height of the text using a specified style - */ -void ME_GetTextExtent(ME_Context *c, LPCWSTR szText, int nChars, ME_Style *s, - SIZE *size) + * + * Finds a width and a height of the text using a specified style + */ +static void ME_GetTextExtent(ME_Context *c, LPCWSTR szText, int nChars, ME_Style *s, SIZE *size) { HDC hDC = c->hDC; HGDIOBJ hOldFont; @@ -650,10 +649,11 @@ void ME_GetTextExtent(ME_Context *c, LPCWSTR szText, int nChars, ME_Style *s, /****************************************************************************** * ME_GetRunSizeCommon * - * Finds width, height, ascent and descent of a run, up to given character - * (nLen). - */ -SIZE ME_GetRunSizeCommon(ME_Context *c, ME_Paragraph *para, ME_Run *run, int nLen, int *pAscent, int *pDescent) + * Finds width, height, ascent and descent of a run, up to given character + * (nLen). + */ +static SIZE ME_GetRunSizeCommon(ME_Context *c, ME_Paragraph *para, ME_Run *run, int nLen, + int *pAscent, int *pDescent) { SIZE size; int nMaxLen = ME_StrVLen(run->strText); @@ -865,7 +865,7 @@ void ME_SetDefaultCharFormat(ME_TextEditor *editor, CHARFORMAT2W *mod) /* pcf = editor->pBuffer->pDefaultStyle->fmt; */ } -void ME_GetRunCharFormat(ME_TextEditor *editor, ME_DisplayItem *run, CHARFORMAT2W *pFmt) +static void ME_GetRunCharFormat(ME_TextEditor *editor, ME_DisplayItem *run, CHARFORMAT2W *pFmt) { ME_CopyCharFormat(pFmt, &run->member.run.style->fmt); } diff --git a/dlls/riched20/style.c b/dlls/riched20/style.c index 14c8d803def..1dfdef1d64a 100644 --- a/dlls/riched20/style.c +++ b/dlls/riched20/style.c @@ -305,10 +305,10 @@ void ME_CharFormatFromLogFont(HDC hDC, LOGFONTW *lf, CHARFORMAT2W *fmt) would add an erronious CFM_UNDERLINE. This isn't currently ever a problem */ if (lf->lfStrikeOut) fmt->dwEffects |= CFM_STRIKEOUT; fmt->bPitchAndFamily = lf->lfPitchAndFamily; - fmt->bCharSet = lf->lfCharSet; + fmt->bCharSet = lf->lfCharSet; } -BOOL ME_IsFontEqual(LOGFONTW *p1, LOGFONTW *p2) +static BOOL ME_IsFontEqual(LOGFONTW *p1, LOGFONTW *p2) { if (memcmp(p1, p2, sizeof(LOGFONTW)-sizeof(p1->lfFaceName))) return FALSE; diff --git a/dlls/riched20/undo.c b/dlls/riched20/undo.c index 88de04aec2c..2a9d9156033 100644 --- a/dlls/riched20/undo.c +++ b/dlls/riched20/undo.c @@ -165,7 +165,7 @@ void ME_CommitUndo(ME_TextEditor *editor) { ME_SendSelChange(editor); } -void ME_PlayUndoItem(ME_TextEditor *editor, ME_DisplayItem *pItem) +static void ME_PlayUndoItem(ME_TextEditor *editor, ME_DisplayItem *pItem) { ME_UndoItem *pUItem = (ME_UndoItem *)pItem;