mirror of
git://repo.or.cz/tinycc.git
synced 2026-07-07 03:48:40 +08:00
Fix unnecessary symbol collision
This commit is contained in:
parent
5201312cb2
commit
a1d10c8bde
4
tccpp.c
4
tccpp.c
@ -350,7 +350,7 @@ ST_INLN void cstr_ccat(CString *cstr, int ch)
|
|||||||
cstr->size = size;
|
cstr->size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *unicode_to_utf8 (char *b, uint32_t Uc)
|
ST_INLN char *unicode_to_utf8 (char *b, uint32_t Uc)
|
||||||
{
|
{
|
||||||
if (Uc<0x80) *b++=Uc;
|
if (Uc<0x80) *b++=Uc;
|
||||||
else if (Uc<0x800) *b++=192+Uc/64, *b++=128+Uc%64;
|
else if (Uc<0x800) *b++=192+Uc/64, *b++=128+Uc%64;
|
||||||
@ -361,7 +361,7 @@ char *unicode_to_utf8 (char *b, uint32_t Uc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* add a unicode character expanded into utf8 */
|
/* add a unicode character expanded into utf8 */
|
||||||
void cstr_u8cat(CString *cstr, int ch)
|
ST_INLN void cstr_u8cat(CString *cstr, int ch)
|
||||||
{
|
{
|
||||||
char buf[4], *e;
|
char buf[4], *e;
|
||||||
e = unicode_to_utf8(buf, (uint32_t)ch);
|
e = unicode_to_utf8(buf, (uint32_t)ch);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user