renamed MOO_BCLEN_MAX to MOO_BCSIZE_MAX
This commit is contained in:
parent
f8b8ad1ddd
commit
645d0e48bd
@ -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
|
||||
* =========================================================================*/
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user