From eb88c0768e5c2528116a0f5685cfa5a8f7a2099c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 26 Jul 2016 15:15:27 +0300 Subject: code style --- .bashrc_cxx | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.bashrc_cxx b/.bashrc_cxx index 8243167..7ce52ee 100644 --- a/.bashrc_cxx +++ b/.bashrc_cxx @@ -16,7 +16,10 @@ runc() ( echo "$FUNCNAME: missing argument for parameter: $1" >&2 return 1 fi - shift ; c_flags+=("$1") ; shift ;; + shift + c_flags+=("$1") + shift + ;; -h) echo "usage: $FUNCNAME [-h] [-c|--c-flags FLAG]" @@ -24,10 +27,14 @@ runc() ( ;; --) - shift ; break ;; + shift + break + ;; *) - src_files+=("$( realpath "$1" )") ; shift ;; + src_files+=("$( realpath "$1" )") + shift + ;; esac done @@ -61,7 +68,10 @@ runcxx() ( echo "$FUNCNAME: missing argument for parameter: $1" >&2 return 1 fi - shift ; cxx_flags+=("$1") ; shift ;; + shift + cxx_flags+=("$1") + shift + ;; -h) echo "usage: $FUNCNAME [-h] [-c|--cxx-flags FLAG]" @@ -69,10 +79,14 @@ runcxx() ( ;; --) - shift ; break ;; + shift + break + ;; *) - src_files+=("$( realpath "$1" )") ; shift ;; + src_files+=("$( realpath "$1" )") + shift + ;; esac done -- cgit v1.2.3