renamed MOO_BCLEN_MAX to MOO_BCSIZE_MAX

This commit is contained in:
hyunghwan.chung 2018-03-12 10:04:22 +00:00
parent f8b8ad1ddd
commit 645d0e48bd
2 changed files with 5 additions and 4 deletions

View File

@ -345,6 +345,9 @@ typedef struct moo_bcs_t moo_bcs_t;
# define MOO_SIZEOF_OOCH_T MOO_SIZEOF_BCH_T
#endif
/* the maximum number of bch charaters to represent a single uch character */
#define MOO_BCSIZE_MAX 6
/* =========================================================================
* TIME-RELATED TYPES
* =========================================================================*/

View File

@ -26,8 +26,6 @@
#include "moo-prv.h"
#define MOO_BCLEN_MAX 6
/* some naming conventions
* bchars, uchars -> pointer and length
* bcstr, ucstr -> null-terminated string pointer
@ -576,7 +574,7 @@ static MOO_INLINE int ucsn_to_bcsn_with_cmgr (
}
else
{
moo_bch_t bcsbuf[MOO_BCLEN_MAX];
moo_bch_t bcsbuf[MOO_BCSIZE_MAX];
moo_oow_t mlen = 0;
while (p < end)
@ -658,7 +656,7 @@ static int ucs_to_bcs_with_cmgr (
}
else
{
moo_bch_t bcsbuf[MOO_BCLEN_MAX];
moo_bch_t bcsbuf[MOO_BCSIZE_MAX];
moo_oow_t mlen = 0;
while (*p != '\0')