Clone of official tools
Diff: config.py
- Revision:
- 30:f12ce67666d0
- Parent:
- 29:1210849dba19
- Child:
- 31:8ea194f6145b
--- a/config.py Mon Aug 29 11:18:36 2016 +0100 +++ b/config.py Mon Aug 29 11:56:59 2016 +0100 @@ -774,15 +774,14 @@ if macro.macro_value: header_data += ("#define {0:<{1}} {2!s:<{3}}" + " // defined by {4}\n")\ - .format(macro.macro_name, max_macro_name_len, - macro.macro_value, max_macro_val_len, - macro.defined_by) + .format(m.macro_name, max_macro_name_len, m.macro_value, + max_macro_val_len, m.defined_by) else: header_data += ("#define {0:<{1}}" + " // defined by {2}\n")\ - .format(macro.macro_name, + .format(m.macro_name, max_macro_name_len + max_macro_val_len + 1, - macro.defined_by) + m.defined_by) header_data += "\n#endif\n" # If fname is given, write "header_data" to it if fname: