riched20: Make ME_GetDITypeName() static.
This commit is contained in:
parent
5ac8507a8e
commit
25e0f11ced
|
@ -95,7 +95,6 @@ ME_DisplayItem *ME_FindItemBackOrHere(ME_DisplayItem *di, ME_DIType nTypeOrClass
|
||||||
ME_DisplayItem *ME_MakeDI(ME_DIType type) DECLSPEC_HIDDEN;
|
ME_DisplayItem *ME_MakeDI(ME_DIType type) DECLSPEC_HIDDEN;
|
||||||
void ME_DestroyDisplayItem(ME_DisplayItem *item) DECLSPEC_HIDDEN;
|
void ME_DestroyDisplayItem(ME_DisplayItem *item) DECLSPEC_HIDDEN;
|
||||||
void ME_DumpDocument(ME_TextBuffer *buffer) DECLSPEC_HIDDEN;
|
void ME_DumpDocument(ME_TextBuffer *buffer) DECLSPEC_HIDDEN;
|
||||||
const char *ME_GetDITypeName(ME_DIType type) DECLSPEC_HIDDEN;
|
|
||||||
|
|
||||||
/* string.c */
|
/* string.c */
|
||||||
ME_String *ME_MakeStringN(LPCWSTR szText, int nMaxChars) DECLSPEC_HIDDEN;
|
ME_String *ME_MakeStringN(LPCWSTR szText, int nMaxChars) DECLSPEC_HIDDEN;
|
||||||
|
|
|
@ -139,9 +139,24 @@ ME_DisplayItem *ME_FindItemFwd(ME_DisplayItem *di, ME_DIType nTypeOrClass)
|
||||||
return NULL;
|
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)
|
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)
|
if (item->type==diParagraph)
|
||||||
{
|
{
|
||||||
FREE_OBJ(item->member.para.pFmt);
|
FREE_OBJ(item->member.para.pFmt);
|
||||||
|
@ -172,20 +187,6 @@ ME_DisplayItem *ME_MakeDI(ME_DIType type)
|
||||||
return item;
|
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)
|
void ME_DumpDocument(ME_TextBuffer *buffer)
|
||||||
{
|
{
|
||||||
/* FIXME this is useless, */
|
/* FIXME this is useless, */
|
||||||
|
|
Loading…
Reference in New Issue