X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Funcrustify.sh;h=b36953e366231db2192a145697470e6fa5d016a4;hb=bda4e58210275f23266f9a1231de949b6bc64893;hp=2df39aa3a83c904623621483762ca4722a1f4415;hpb=0f0e69c6625fc4db17559e2e47f2fdaed8298076;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/uncrustify.sh b/qcsrc/uncrustify.sh index 2df39aa3a..b36953e36 100755 --- a/qcsrc/uncrustify.sh +++ b/qcsrc/uncrustify.sh @@ -3,7 +3,7 @@ fix_function_types() { # void(void) func; # ) wrong and removes the space between type and variable. Fix this by # a simple sed on ")letter" which should normally not occur. - sed -e 's/)\([A-Za-z0-9]\)/) \1/g' "$@" + sed -e 's/)\([A-Za-z_]\)/) \1/g' "$@" } if [ -z "$UNCRUSTIFY_CONFIG" ]; then @@ -16,7 +16,7 @@ case "$#" in fix_function_types ;; *) - uncrustify --replace --no-backup -c "$UNCRUSTIFY_CONFIG" "$@" &&\ + uncrustify --replace --no-backup -c "$UNCRUSTIFY_CONFIG" "$@" ;\ fix_function_types -i "$@" ;; esac