New themes, new snippets, change c-x to c-w

This commit is contained in:
2023-10-28 21:59:56 +02:00
parent 34ccdabaeb
commit 5f91641217
11 changed files with 199 additions and 5 deletions

View File

@@ -100,7 +100,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 */
perror("malloc error on memory allocation of: `!p snip.rv = match.group(1)`");
(void)printf("malloc error on memory allocation of: `!p snip.rv = match.group(1)`!\n");
exit(EXIT_FAILURE);
}
$0