riched20: Make ME_GetDITypeName() static.
Francois Gouget
fgouget at free.fr
Mon Jan 13 06:30:37 CST 2014
Make sure the compiler sees the one call to it to prevent bitrot, even though it's only used for debugging.
---
dlls/riched20/editor.h | 1 -
dlls/riched20/list.c | 31 ++++++++++++++++---------------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/dlls/riched20/editor.h b/dlls/riched20/editor.h
index 40bf04c..ae8b81a 100644
--- a/dlls/riched20/editor.h
+++ b/dlls/riched20/editor.h
@@ -95,7 +95,6 @@ ME_DisplayItem *ME_FindItemBackOrHere(ME_DisplayItem *di, ME_DIType nTypeOrClass
ME_DisplayItem *ME_MakeDI(ME_DIType type) DECLSPEC_HIDDEN;
void ME_DestroyDisplayItem(ME_DisplayItem *item) DECLSPEC_HIDDEN;
void ME_DumpDocument(ME_TextBuffer *buffer) DECLSPEC_HIDDEN;
-const char *ME_GetDITypeName(ME_DIType type) DECLSPEC_HIDDEN;
/* string.c */
ME_String *ME_MakeStringN(LPCWSTR szText, int nMaxChars) DECLSPEC_HIDDEN;
diff --git a/dlls/riched20/list.c b/dlls/riched20/list.c
index 7722fc9..a6b3c65 100644
--- a/dlls/riched20/list.c
+++ b/dlls/riched20/list.c
@@ -139,9 +139,24 @@ ME_DisplayItem *ME_FindItemFwd(ME_DisplayItem *di, ME_DIType nTypeOrClass)
return NULL;
}
+static const char *ME_GetDITypeName(ME_DIType type)
+{
+ switch(type)
+ {
+ case diParagraph: return "diParagraph";
+ case diRun: return "diRun";
+ case diCell: return "diCell";
+ case diTextStart: return "diTextStart";
+ case diTextEnd: return "diTextEnd";
+ case diStartRow: return "diStartRow";
+ default: return "?";
+ }
+}
+
void ME_DestroyDisplayItem(ME_DisplayItem *item)
{
-/* TRACE("type=%s\n", ME_GetDITypeName(item->type)); */
+ if (0)
+ TRACE("type=%s\n", ME_GetDITypeName(item->type));
if (item->type==diParagraph)
{
FREE_OBJ(item->member.para.pFmt);
@@ -172,20 +187,6 @@ ME_DisplayItem *ME_MakeDI(ME_DIType type)
return item;
}
-const char *ME_GetDITypeName(ME_DIType type)
-{
- switch(type)
- {
- case diParagraph: return "diParagraph";
- case diRun: return "diRun";
- case diCell: return "diCell";
- case diTextStart: return "diTextStart";
- case diTextEnd: return "diTextEnd";
- case diStartRow: return "diStartRow";
- default: return "?";
- }
-}
-
void ME_DumpDocument(ME_TextBuffer *buffer)
{
/* FIXME this is useless, */
--
1.8.5.2
More information about the wine-patches
mailing list