Changeset 81c6365 in mainline
- Timestamp:
- 2018-05-22T16:12:48Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 033ebc25, 29c3c72
- Parents:
- 86b70c6
- Location:
- tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autocheck.awk
r86b70c6 r81c6365 59 59 macro_name = toupper(struct_name) "_SIZE_" toupper(member) 60 60 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 "), \"\");" 62 62 print "#endif" 63 63 } -
tools/mkarray.py
r86b70c6 r81c6365 137 137 138 138 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' 143 143 data += "#ifndef %sS_H_\n" % label.upper() 144 144 data += "#define %sS_H_\n\n" % label.upper() … … 162 162 163 163 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' 168 168 data += as_prolog 169 169 data += "%s\n\n" % section … … 174 174 175 175 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' 180 180 data += "#include \"%s.h\"\n\n" % dest 181 181 data += "%s_t %ss[] = {\n" % (label, label)
Note:
See TracChangeset
for help on using the changeset viewer.