{
#define ELLIPSIS " (...) "
#define NAME_PRECISION 28
-#ifdef MULTIBYTE
if (! is_multibyte)
{
-#endif
int len = strlen( file_data->file_name );
if( len > NAME_PRECISION )
{
user_name, group_name,
link_path );
}
-#ifdef MULTIBYTE
} else {
/* MULTIBYTE
*
user_name, group_name,
link_path );
} /* is_multibyte */
-#endif /* MULTIBYTE */
}
return (long_name);
int i, width, stringWidth;
char * tmp;
char savedChar;
-#ifdef MULTIBYTE
int len;
-#endif /* MULTIBYTE */
width = x2 - x1;
-#ifdef MULTIBYTE
i = 0;
tmp = name;
while ((len = mblen(tmp, MB_CUR_MAX)) > 0)
-#else /* MULTIBYTE */
- for( tmp = name + 1, i = 0;
- *tmp != 0x0;
- ++tmp, ++i )
-#endif /* MULTIBYTE */
{
XmString string;
-#ifdef MULTIBYTE
tmp += len;
-#endif /* MULTIBYTE */
savedChar = *tmp;
*tmp = 0x0;
*tmp = savedChar;
if( stringWidth > width )
break;
-#ifdef MULTIBYTE
else
i++;
-#endif /* MULTIBYTE */
}
return( i );
if (file_view_data == NULL) {
label_len = 1;
} else {
-#ifdef MULTIBYTE
label_len = DtCharCount(file_view_data->label == NULL ?
file_view_data->file_data->file_name : file_view_data->label);
-#else
- label_len = strlen(file_view_data->label == NULL ?
- file_view_data->file_data->file_name : file_view_data->label);
-#endif
}
if (layout_data->pixmap_position == XmPIXMAP_TOP)
#endif
DEPEND_DEFINES = $(DEPENDDEFINES)
-DEFINES = -DMULTIBYTE -DSHAPE -D_ILS_MACROS -DSUN_PERF \
+DEFINES = -DSHAPE -D_ILS_MACROS -DSUN_PERF \
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
-DKORNSHELL=\"$(KORNSHELL)\" $(XINOPT)
{
unsigned char *pchR = pchIn;
register int i;
-#ifdef MULTIBYTE
register int chlen;
for (i = 0; ((chlen = mblen ((char *)pchIn, MB_CUR_MAX)) > 0); i++)
pchIn += chlen;
}
-#else
- for (i = 0; *pchIn && !isspace (*pchIn); i++, pchIn++)
- /* find end of word */
- {
- }
-#endif
-
/* skip to next word */
-#ifdef MULTIBYTE
while (pchIn && (mblen ((char *)pchIn, MB_CUR_MAX) == 1) && isspace (*pchIn))
-#else
- while (pchIn && isspace (*pchIn))
-#endif
{
*pchIn++;
}