Ignore:
Timestamp:
Sep 20, 2017, 10:34:18 AM (19 months ago)
Author:
cameron
Message:

Minor updates to UCD generation for consistency with manual edits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/charsetcompiler/UCD/UnicodeNameData.py

    r5143 r5642  
    1616#include "UnicodeNameData.h"
    1717const int Unamesize = %s;
    18 char __attribute__ ((aligned (32))) Unamedata[Unamesize] = "%s";
     18char __attribute__ ((aligned (32))) Unamedata[Unamesize + %s] = "%s";
    1919
    2020char * getUnicodeNameDataPtr() {
     
    3636        name_data_len += len(cp) + len(name) + 2
    3737    f = open(UCD_config.UCD_output_dir + '/UnicodeNameData.cpp', 'w')
    38     f.write(UnicodeNameData_cpp_template % (name_data_len + 1, name_data_string))
     38    f.write(UnicodeNameData_cpp_template % (name_data_len + 1, 255 - (name_data_len % 256), name_data_string))
    3939    f.close()
    4040
Note: See TracChangeset for help on using the changeset viewer.