[i18n] Adding NUM_SCRIPTS to the end of the scripts enum
This commit is contained in:
@@ -75,6 +75,7 @@ scripts_header_template = u'''#ifndef UNICODE_SCRIPT_TYPES_H
|
|||||||
|
|
||||||
typedef enum {{
|
typedef enum {{
|
||||||
{script_enum}
|
{script_enum}
|
||||||
|
NUM_SCRIPTS
|
||||||
}} script_t;
|
}} script_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -370,8 +371,8 @@ def main(out_dir):
|
|||||||
|
|
||||||
# Generate C header and constants
|
# Generate C header and constants
|
||||||
|
|
||||||
script_enum = u''',
|
script_enum = u'''
|
||||||
'''.join(['SCRIPT_{} = {}'.format(s.upper(), i) for s, i in sorted(all_scripts.iteritems(), key=itemgetter(1))])
|
'''.join(['SCRIPT_{} = {},'.format(s.upper(), i) for s, i in sorted(all_scripts.iteritems(), key=itemgetter(1))])
|
||||||
|
|
||||||
out_header.write(scripts_header_template.format(num_chars=NUM_CHARS,
|
out_header.write(scripts_header_template.format(num_chars=NUM_CHARS,
|
||||||
max_langs=max_langs,
|
max_langs=max_langs,
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ typedef enum {
|
|||||||
SCRIPT_JAVANESE = 68,
|
SCRIPT_JAVANESE = 68,
|
||||||
SCRIPT_CHAM = 69,
|
SCRIPT_CHAM = 69,
|
||||||
SCRIPT_TAI_VIET = 70,
|
SCRIPT_TAI_VIET = 70,
|
||||||
SCRIPT_MEETEI_MAYEK = 71
|
SCRIPT_MEETEI_MAYEK = 71,
|
||||||
|
NUM_SCRIPTS
|
||||||
} script_t;
|
} script_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user