64 lines
734 B
Text
64 lines
734 B
Text
snippet m
|
|
int main(void) {
|
|
$0
|
|
return 0;
|
|
}
|
|
endsnippet
|
|
|
|
snippet v
|
|
(void) $0;
|
|
endsnippet
|
|
|
|
snippet mv
|
|
int main(int argc, char *argv[]) {
|
|
$0
|
|
return 0;
|
|
}
|
|
endsnippet
|
|
|
|
snippet h
|
|
#ifndef $1_H_
|
|
#define $1_H_
|
|
$2
|
|
#endif /* $1_H_ */
|
|
endsnippet
|
|
|
|
snippet c
|
|
#ifndef _$1_C
|
|
#define _$1_C
|
|
$2
|
|
#endif /* _$1_C */
|
|
endsnippet
|
|
|
|
snippet i
|
|
#ifdef $1_IMPL
|
|
$2
|
|
#endif /* $1_IMPL */
|
|
endsnippet
|
|
|
|
snippet a
|
|
$1 $2($3) {
|
|
$4
|
|
}
|
|
endsnippet
|
|
|
|
snippet fn
|
|
ssize_t (*$1)($2) = NULL;
|
|
endsnippet
|
|
|
|
snippet fnw
|
|
if (!og_$1)
|
|
og_$1 = ($2 (*)($3))dlsym(RTLD_NEXT, "$1");
|
|
endsnippet
|
|
|
|
snippet n
|
|
#ifndef NULL
|
|
#define NULL ((void *)0)
|
|
#endif /* NULL */
|
|
endsnippet
|
|
|
|
snippet bool
|
|
typedef uint8_t Bool;
|
|
#define True ((uint8_t)1)
|
|
#define False ((uint8_t)0)
|
|
endsnippet
|