mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 05:10:43 +00:00
424dd8e7b5
We generally use the newer C99 var declarations combined with initialization because: - declarations are more local, reduced scope - fewer lines of code - less potential for using uninit vars and other bugs However, we have some relic code from times when we did not understand if we need to stick with C89 or not. Also some external contributions that don't follow style around. Add a static check for C89-style declarations and fix existing precedents. Akaros toolchain uses -std=gnu89 (or something) and does not allow variable declarations inside of for init statement. And we can't switch it to -std=c99 because Akaros headers are C89 themselves. So in common.h we need to declare loop counters outside of for. |
||
---|---|---|
.. | ||
android | ||
common_akaros.h | ||
common_bsd.h | ||
common_fuchsia.h | ||
common_kvm_amd64.h | ||
common_kvm_arm64.h | ||
common_linux.h | ||
common_test.h | ||
common_usb_linux.h | ||
common_usb_netbsd.h | ||
common_usb.h | ||
common_windows.h | ||
common.h | ||
executor_akaros.h | ||
executor_bsd.h | ||
executor_fuchsia.h | ||
executor_linux.h | ||
executor_test.h | ||
executor_windows.h | ||
executor.cc | ||
gen.go | ||
kvm_gen.cc | ||
kvm.h | ||
kvm.S | ||
kvm.S.h | ||
nocover.h | ||
stub.go | ||
style_test.go | ||
test_linux.h | ||
test.h |