diff options
author | Damien George <damien.p.george@gmail.com> | 2014-06-28 10:27:23 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-06-28 10:27:23 +0100 |
commit | e04a44e2f65d1ac49e5cce164d6010ff968f4d48 (patch) | |
tree | 3204ce1c708a6742d467e523ac95308ba61ecf8e /py/misc.h | |
parent | b3a50f0f3e287d63fce274e29641a3bc57405d5d (diff) |
py: Small comments, name changes, use of machine_int_t.
Diffstat (limited to 'py/misc.h')
-rw-r--r-- | py/misc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -100,7 +100,7 @@ bool unichar_isupper(unichar c); bool unichar_islower(unichar c); unichar unichar_tolower(unichar c); unichar unichar_toupper(unichar c); -uint unichar_charlen(const char *str, uint len); +uint unichar_charlen(const char *str, uint len); // TODO this should return machine_uint_t #define UTF8_IS_NONASCII(ch) ((ch) & 0x80) #define UTF8_IS_CONT(ch) (((ch) & 0xC0) == 0x80) @@ -169,6 +169,7 @@ extern uint mp_verbose_flag; // This is useful for unicode handling. Some CPU archs has // special instructions for efficient implentation of this // function (e.g. CLZ on ARM). +// NOTE: this function is unused at the moment #ifndef count_lead_ones static inline uint count_lead_ones(byte val) { uint c = 0; |