init
This commit is contained in:
5
snippets/c-lang-common/fopen
Normal file
5
snippets/c-lang-common/fopen
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: FILE *fp = fopen(..., ...);
|
||||
# key: fopen
|
||||
# --
|
||||
FILE *${fp} = fopen(${"file"}, "${r}");
|
||||
15
snippets/c-lang-common/function_doxygen_doc
Normal file
15
snippets/c-lang-common/function_doxygen_doc
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Dan Pitic <dpitic@gmail.com>
|
||||
# name: Function Doxygen Doc
|
||||
# key: doxy
|
||||
# group: doxygen
|
||||
# --
|
||||
/**
|
||||
* @brief ${1:function description}
|
||||
*
|
||||
* @details ${2:detailed description}
|
||||
*
|
||||
* @param ${3:param}
|
||||
*
|
||||
* @return ${4:return type}
|
||||
*/
|
||||
9
snippets/c-lang-common/ifdef
Normal file
9
snippets/c-lang-common/ifdef
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: ifdef
|
||||
# key: ifdef
|
||||
# --
|
||||
#ifdef ${1:MACRO}
|
||||
|
||||
$0
|
||||
|
||||
#endif // $1
|
||||
5
snippets/c-lang-common/inc
Normal file
5
snippets/c-lang-common/inc
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: #include <...>
|
||||
# key : incs
|
||||
# --
|
||||
#include <$1>
|
||||
5
snippets/c-lang-common/inc.1
Normal file
5
snippets/c-lang-common/inc.1
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: #include "..."
|
||||
# key : incl
|
||||
# --
|
||||
#include "$1"
|
||||
9
snippets/c-lang-common/main
Normal file
9
snippets/c-lang-common/main
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: main
|
||||
# key: main
|
||||
# --
|
||||
int main(${1:int argc, char *argv[]})
|
||||
{
|
||||
$0
|
||||
return 0;
|
||||
}
|
||||
6
snippets/c-lang-common/math
Normal file
6
snippets/c-lang-common/math
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: math
|
||||
# key: math
|
||||
# --
|
||||
#include <math.h>
|
||||
$0
|
||||
10
snippets/c-lang-common/once
Normal file
10
snippets/c-lang-common/once
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: #ifndef XXX; #define XXX; #endif
|
||||
# key: once
|
||||
# --
|
||||
#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) ""))))`_H}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif /* $1 */
|
||||
5
snippets/c-lang-common/typedef
Normal file
5
snippets/c-lang-common/typedef
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: typedef
|
||||
# key: typedef
|
||||
# --
|
||||
typedef ${1:type} ${2:alias};
|
||||
Reference in New Issue
Block a user