Avoid unnecessary calls to mark_for_codepoint

This commit is contained in:
Kovid Goyal
2018-02-06 11:22:02 +05:30
parent 96c93fa252
commit ff2e5b3966
7 changed files with 11 additions and 5 deletions

View File

@@ -206,6 +206,10 @@ def gen_ucd():
p('default: return 0;')
p('\t} // }}}')
p('}\n')
if rmap[0xfe0e] != 1275:
raise ValueError('The mark for 0xfe0e has changed, you have to update VS15 to {} and VS16 to {} in unicode-data.h'.format(
rmap[0xfe0e], rmap[0xfe0f]
))
def gen_wcwidth():