headers: Fix headers guards
Any word started with underscore followed by and uppercase letter or a second underscore is a reserved word according with C99. With have *many* violations on Zephyr's code, this commit is tackling only the violations caused by headers guards. It also takes the opportunity to normalize them using the filename in uppercase and replacing dot with underscore. e.g file.h -> FILE_H Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
6a68a66726
commit
a7fffa9e00
13 changed files with 38 additions and 38 deletions
|
@ -659,8 +659,8 @@ def output_include_lines(fd, fixups):
|
|||
fd.write(" * DO NOT MODIFY\n")
|
||||
fd.write(" */\n")
|
||||
fd.write("\n")
|
||||
fd.write("#ifndef _DEVICE_TREE_BOARD_H" + "\n")
|
||||
fd.write("#define _DEVICE_TREE_BOARD_H" + "\n")
|
||||
fd.write("#ifndef DEVICE_TREE_BOARD_H" + "\n")
|
||||
fd.write("#define DEVICE_TREE_BOARD_H" + "\n")
|
||||
fd.write("\n")
|
||||
|
||||
node_keys = sorted(defs.keys())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue