Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 81c6365 in mainline


Ignore:
Timestamp:
2018-05-22T16:12:48Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
033ebc25, 29c3c72
Parents:
86b70c6
Message:

Fix autogenerated source files not passing ccheck.

Location:
tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/autocheck.awk

    r86b70c6 r81c6365  
    5959                macro_name = toupper(struct_name) "_SIZE_" toupper(member)
    6060                print "#ifdef " macro_name
    61                 print "_Static_assert(" macro_name " == sizeof(((struct " struct_name "){})." member "), \"\");"
     61                print "_Static_assert(" macro_name " == sizeof(((struct " struct_name "){ })." member "), \"\");"
    6262                print "#endif"
    6363        }
  • tools/mkarray.py

    r86b70c6 r81c6365  
    137137
    138138        data = ''
    139         data += '/***************************************\n'
    140         data += ' * AUTO-GENERATED FILE, DO NOT EDIT!!! *\n'
    141         data += ' * Generated by: tools/mkarray.py      *\n'
    142         data += ' ***************************************/\n\n'
     139        data += '/*\n'
     140        data += ' * AUTO-GENERATED FILE, DO NOT EDIT!!!\n'
     141        data += ' * Generated by: tools/mkarray.py\n'
     142        data += ' */\n\n'
    143143        data += "#ifndef %sS_H_\n" % label.upper()
    144144        data += "#define %sS_H_\n\n" % label.upper()
     
    162162
    163163        data = ''
    164         data += '/***************************************\n'
    165         data += ' * AUTO-GENERATED FILE, DO NOT EDIT!!! *\n'
    166         data += ' * Generated by: tools/mkarray.py      *\n'
    167         data += ' ***************************************/\n\n'
     164        data += '/*\n'
     165        data += ' * AUTO-GENERATED FILE, DO NOT EDIT!!!\n'
     166        data += ' * Generated by: tools/mkarray.py\n'
     167        data += ' */\n\n'
    168168        data += as_prolog
    169169        data += "%s\n\n" % section
     
    174174
    175175        data = ''
    176         data += '/***************************************\n'
    177         data += ' * AUTO-GENERATED FILE, DO NOT EDIT!!! *\n'
    178         data += ' * Generated by: tools/mkarray.py      *\n'
    179         data += ' ***************************************/\n\n'
     176        data += '/*\n'
     177        data += ' * AUTO-GENERATED FILE, DO NOT EDIT!!!\n'
     178        data += ' * Generated by: tools/mkarray.py\n'
     179        data += ' */\n\n'
    180180        data += "#include \"%s.h\"\n\n" % dest
    181181        data += "%s_t %ss[] = {\n" % (label, label)
Note: See TracChangeset for help on using the changeset viewer.