Ignore:
Timestamp:
Sep 7, 2016, 11:54:14 AM (2 years ago)
Author:
cameron
Message:

Updates for Unicode 9.0; clean-ups

File:
1 edited

Legend:

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

    r4632 r5143  
     1import UCD_config
    12
    23header_template = r"""#ifndef %s
    34#define %s
    45/*
    5  *  Copyright (c) 2015 International Characters, Inc.
     6 *  Copyright (c) 2016 International Characters, Inc.
    67 *  This software is licensed to the public under the Open Software License 3.0.
    78 *  icgrep is a trademark of International Characters, Inc.
     
    1415cpp_template = r"""
    1516/*
    16  *  Copyright (c) 2015 International Characters, Inc.
     17 *  Copyright (c) 2016 International Characters, Inc.
    1718 *  This software is licensed to the public under the Open Software License 3.0.
    1819 *  icgrep is a trademark of International Characters, Inc.
     
    2728
    2829def open_header_file_for_write(filename, generator_name='UCD_properties.py'):
    29    f = open(filename + '.h', 'w')
     30   f = open(UCD_config.UCD_output_dir + '/' + filename + '.h', 'w')
    3031   hname = filename.upper() + '_H'
    3132   f.write(header_template % (hname, hname, generator_name))
     
    3334
    3435def open_cpp_file_for_write(filename, generator_name='UCD_properties.py'):
    35    f = open(filename + '.cpp', 'w')
     36   f = open(UCD_config.UCD_output_dir + '/' + filename + '.cpp', 'w')
    3637   f.write(cpp_template % (generator_name, filename))
    3738   return f
Note: See TracChangeset for help on using the changeset viewer.