-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: remove trailing underscores from header guards #6407
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every #ifdef FOOBAR_H_
has corresponding #endif /* FOOBAR_H_ */
. Although the strings in the endif comments are not functional I think its recommended to correct them too.
Comment addressed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's always a delight that github doesn't allow me to mark line that are not changed. :D
Following is a list of filename:linenumber where the comment in the endif is missing or not matching.
boards/chronos/drivers/include/display.h:466
boards/chronos/include/buttons.h:27
boards/msb-430-common/include/board_common.h:64
boards/pba-d-01-kw2x/include/board.h:135
boards/pba-d-01-kw2x/include/periph_conf.h:296
boards/qemu-i386/include/board.h:40
boards/qemu-i386/include/cpu_conf.h:39
boards/telosb/include/board-conf.h:22
boards/z1/include/board-conf.h:37
cpu/arm7_common/include/VIC.h:92
cpu/arm7_common/include/iap.h:67
cpu/k60/include/system_MK60D10.h:80
cpu/stm32l1/include/cpu_conf.h:45
cpu/x86/include/cpu.h:134
drivers/include/kw2xrf.h:162
drivers/include/sht11.h:108
examples/riot_and_cpp/c_functions.h:50
examples/riot_and_cpp/cpp_class.hpp:63
sys/include/crypto/modes/ctr.h:73
sys/include/crypto/modes/ecb.h:62
sys/include/xtimer/implementation.h:305
sys/posix/pthread/include/pthread_spin.h:94
Isn't that a good indicator that these issues should be addressed in a separate PR? |
But since you were so kind to already provide a list, I've extended the purpose of this PR. :) |
Then I don't understand why you didn't object my first comment, that was also related to areas you hadn't changed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks valid to me. ACK when squashed and CI is green.
May I ask why we remove the trailing |
May I ask why you raise this question after more than one year? ;-) But anyway, I read #2623 differently and I don't see a good reason for the trailing underscore. |
It's all about balance. ;-) |
Interesting problem - I'm investigating. |
Figured the problem - LWIP has ambiguous header guards. |
Oops :-/ |
f870a06
to
408db23
Compare
I must admit, I'm a little bit lost regarding the CI fails. |
@OlegHahm The patches to pkg don't apply, you need to revert the |
To complement @gebart's comment. This is what I can read from the Jenkins output:
|
Yes, thanks. I somehow overlooked that I've actually touched the patch files. |
484ce8d
to
1155ab1
Compare
seems to be in need of a rebase |
1155ab1
to
0384de2
Compare
Rebased. |
FYI: Jenkins is happy with the changes, it just complains about the squashing. |
0384de2
to
3c6678b
Compare
For some strange reason the header for the NRF softdevice package was complete shit. Fixed it. |
Maybe because the review for it happened crammed in the FU lecture hall during RIOT summit ^^. |
FYI: there are still headers with trailing |
(and of course all open PRs have the potential to re-introduce #2623 again) |
Relaces #4626 and fixes #2623.