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/logerr.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/logerr.c') diff --git a/src/logerr.c b/src/logerr.c index ba27b35..029ed7f 100644 --- a/src/logerr.c +++ b/src/logerr.c @@ -4,7 +4,8 @@ #include -void logerr_file( +void +logerr_file( const char *const s, const char *const msg, const char *const file, @@ -21,7 +22,8 @@ void logerr_file( ); } -void logerrs_file( +void +logerrs_file( const char *const pre, const char *const mid, const char *const post, @@ -42,7 +44,8 @@ void logerrs_file( ); } -void logerrl_file( +void +logerrl_file( const char *const pre, const size_t mid, const char *const post, -- cgit v1.2.3