From: Amos Jeffries Date: Sat, 20 Jun 2020 14:07:26 +0000 (+0000) Subject: Maintenance: fix syntax of profiler/xprof_type.h (#669) X-Git-Tag: 4.15-20210522-snapshot~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c18687a80c0cf58d6c5bdbccfd52e3dfbf522ef;p=thirdparty%2Fsquid.git Maintenance: fix syntax of profiler/xprof_type.h (#669) Generate xprof_type.h compliant with Squid coding guidelines to prevent syntax collisions when astyle is not available to enforce correctness. --- diff --git a/scripts/source-maintenance.sh b/scripts/source-maintenance.sh index fa6e904cc9..9102dd2010 100755 --- a/scripts/source-maintenance.sh +++ b/scripts/source-maintenance.sh @@ -312,11 +312,13 @@ echo "#define _PROFILER_XPROF_TYPE_H_" echo "/* AUTO-GENERATED FILE */" echo "#if USE_XPROF_STATS" echo "typedef enum {" -echo " XPROF_PROF_UNACCOUNTED," -grep -R -h "PROF_start.*" ./* | grep -v probename | sed -e 's/ //g; s/PROF_start(/XPROF_/; s/);/,/' | sort -u -echo " XPROF_LAST } xprof_type;" +echo " XPROF_PROF_UNACCOUNTED," +grep -R -h "PROF_start.*" ./* | grep -v probename | sed -e 's/ //g; s/PROF_start(/ XPROF_/; s/);/,/;' | sort -u +echo " XPROF_LAST" +echo "} xprof_type;" echo "#endif" echo "#endif" +echo "" ) >lib/profiler/list mv lib/profiler/list lib/profiler/xprof_type.h