Fix amalgamate.py script

This unfortunately puts fast_float.h as the second header,
possiby making the amalgamated header less readable.
This commit is contained in:
Lenard Szolnoki 2023-03-04 23:17:27 +00:00
parent e05858a0f8
commit ffc3fd7cc7

View File

@ -31,7 +31,7 @@ for filename in ['LICENSE-MIT', 'LICENSE-APACHE']:
processed_files[filename] = text processed_files[filename] = text
# code # code
for filename in [ 'fast_float.h', 'float_common.h', 'ascii_number.h', for filename in [ 'float_common.h', 'fast_float.h', 'ascii_number.h',
'fast_table.h', 'decimal_to_binary.h', 'bigint.h', 'fast_table.h', 'decimal_to_binary.h', 'bigint.h',
'ascii_number.h', 'digit_comparison.h', 'parse_number.h']: 'ascii_number.h', 'digit_comparison.h', 'parse_number.h']:
with open('include/fast_float/' + filename, encoding='utf8') as f: with open('include/fast_float/' + filename, encoding='utf8') as f:
@ -75,7 +75,7 @@ def license_content(license_arg):
text = ''.join([ text = ''.join([
processed_files['AUTHORS'], processed_files['CONTRIBUTORS'], processed_files['AUTHORS'], processed_files['CONTRIBUTORS'],
*license_content(args.license), *license_content(args.license),
processed_files['fast_float.h'], processed_files['float_common.h'], processed_files['float_common.h'], processed_files['fast_float.h'],
processed_files['ascii_number.h'], processed_files['fast_table.h'], processed_files['ascii_number.h'], processed_files['fast_table.h'],
processed_files['decimal_to_binary.h'], processed_files['bigint.h'], processed_files['decimal_to_binary.h'], processed_files['bigint.h'],
processed_files['ascii_number.h'], processed_files['digit_comparison.h'], processed_files['ascii_number.h'], processed_files['digit_comparison.h'],