Andrew Talbot : riched20: Declare some functions static.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jan 24 06:18:33 CST 2007


Module: wine
Branch: master
Commit: 166b3a6cdbdddc5dcecbc8f34491fbe94eeac653
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=166b3a6cdbdddc5dcecbc8f34491fbe94eeac653

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Tue Jan 23 21:00:27 2007 +0000

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 e924f80..63a0c4c 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -206,8 +206,8 @@ static void ME_DebugWrite(HDC hDC, POINT
   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 df67536..29fc309 100644
--- a/dlls/riched20/run.c
+++ b/dlls/riched20/run.c
@@ -634,11 +634,10 @@ int ME_PointFromChar(ME_TextEditor *edit
 
 /******************************************************************************
  * 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, LPC
 /******************************************************************************
  * 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_TextEdit
   /*  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 14c8d80..1dfdef1 100644
--- a/dlls/riched20/style.c
+++ b/dlls/riched20/style.c
@@ -305,10 +305,10 @@ void ME_CharFormatFromLogFont(HDC hDC, L
       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 88de04a..2a9d915 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;
 




More information about the wine-cvs mailing list