From ede12d99fc46ca3fd638d8b47f498497ef28b3df Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 27 Aug 2021 22:44:19 -0300 Subject: src/*.c: Add newline between function return type and its name The purpose of this change is two-fold: - make function and variable declarations grep-friendly (one can use a pattern /^fn_name/ to find the definition); - make the lines shorter, so less functions need to have their arguments span over many lines. This is more grep-friendly both for finding the function definition, but also for matching on the return type of the function or the variable. Update tests/c-lint.sh to enforce this. --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 34214ea..a8bab28 100644 --- a/src/main.c +++ b/src/main.c @@ -4,13 +4,15 @@ #include #ifdef TEST -static void unit_tests(void) { +static void +unit_tests(void) { unit_tests_tar(); unit_tests_gistatic(); } #endif -int main(int argc, char *argv[]) { +int +main(int argc, char *argv[]) { #ifdef TEST unit_tests(); return EXIT_SUCCESS; -- cgit v1.2.3