cleanup
This commit is contained in:
6
aliases
6
aliases
@@ -2,6 +2,7 @@ cc-clean(){
|
||||
rm -rf ./**/*.out 2>/dev/null
|
||||
}
|
||||
|
||||
# compile and run a single C program. Useful for prototyping.
|
||||
cc-run(){
|
||||
local file
|
||||
if [ -z "$1" ]; then
|
||||
@@ -12,11 +13,6 @@ cc-run(){
|
||||
file="$1"
|
||||
shift
|
||||
|
||||
#if command -v norminette &>/dev/null
|
||||
#then
|
||||
# norminette "${file}" -R CheckForbiddenSourceHeader
|
||||
#fi
|
||||
|
||||
gcc "${file}" -o "${file}.out" -Wall -Wextra -Werror -g3 -fsanitize=address $@ && \
|
||||
"./${file}.out"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user