diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index b9605e7..a400726 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -105,7 +105,7 @@ snippet "(\w+) = malloc" "Automativ malloc error implementation" rA `!p snip.rv = match.group(1)` = ($1*)malloc(sizeof(${1:int}) * $2); if (!`!p snip.rv = match.group(1)`) { /* Error */ - (void)printf("malloc error on memory allocation of: `!p snip.rv = match.group(1)`!\n"); + (void)printf("ERROR: malloc error on memory allocation of: `!p snip.rv = match.group(1)`!\n"); exit(EXIT_FAILURE); } $0 diff --git a/UltiSnips/make.snippets b/UltiSnips/make.snippets index a090906..332e438 100644 --- a/UltiSnips/make.snippets +++ b/UltiSnips/make.snippets @@ -108,3 +108,9 @@ snippet rule "Add new Rule" ${1:all}: $2 $0 endsnippet + +snippet clean "Clean the object files and binary file" b +.PHONY: clean +clean: + ${1:rm *.o $(BIN)} +endsnippet