enhanced types and macros to handle the wchar_t type defined to 1 byte in size
This commit is contained in:
@ -156,7 +156,7 @@ int qse_ismctype (qse_mcint_t c, qse_mctype_t type)
|
||||
|
||||
static int (*f[]) (qse_mcint_t) =
|
||||
{
|
||||
#if 0
|
||||
#if 1
|
||||
is_malnum,
|
||||
is_malpha,
|
||||
is_mblank,
|
||||
@ -169,8 +169,7 @@ int qse_ismctype (qse_mcint_t c, qse_mctype_t type)
|
||||
is_mspace,
|
||||
is_mupper,
|
||||
is_mxdigit
|
||||
#endif
|
||||
|
||||
#else
|
||||
isalnum,
|
||||
isalpha,
|
||||
is_mblank,
|
||||
@ -183,6 +182,7 @@ int qse_ismctype (qse_mcint_t c, qse_mctype_t type)
|
||||
isspace,
|
||||
isupper,
|
||||
isxdigit
|
||||
#endif
|
||||
};
|
||||
|
||||
QSE_ASSERTX (type >= QSE_WCTYPE_ALNUM && type <= QSE_WCTYPE_XDIGIT,
|
||||
|
@ -299,8 +299,9 @@ void qse_dll_walk (qse_dll_t* dll, qse_dll_walker_t walker, void* ctx)
|
||||
|
||||
while (QSE_GDL_ISLINK(&dll->gdl,n))
|
||||
{
|
||||
qse_gdl_link_t tmp = *n;
|
||||
qse_gdl_link_t tmp;
|
||||
|
||||
tmp = *n;
|
||||
w = walker (dll, QSE_GDL_CONTAINER (n, qse_dll_node_t, link), ctx);
|
||||
|
||||
if (w == QSE_DLL_WALK_FORWARD) n = QSE_GDL_NEXT (&tmp);
|
||||
@ -316,8 +317,9 @@ void qse_dll_rwalk (qse_dll_t* dll, qse_dll_walker_t walker, void* ctx)
|
||||
|
||||
while (QSE_GDL_ISLINK(&dll->gdl,n))
|
||||
{
|
||||
qse_gdl_link_t tmp = *n;
|
||||
qse_gdl_link_t tmp;
|
||||
|
||||
tmp = *n;
|
||||
w = walker (dll, QSE_GDL_CONTAINER (n, qse_dll_node_t, link), ctx);
|
||||
|
||||
if (w == QSE_DLL_WALK_FORWARD) n = QSE_GDL_NEXT (&tmp);
|
||||
|
Reference in New Issue
Block a user