This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: FILE *fp = fopen(..., ...);
# key: fopen
# --
FILE *${fp} = fopen(${"file"}, "${r}");

View 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}
*/

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: ifdef
# key: ifdef
# --
#ifdef ${1:MACRO}
$0
#endif // $1

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: #include <...>
# key : incs
# --
#include <$1>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: #include "..."
# key : incl
# --
#include "$1"

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: main
# key: main
# --
int main(${1:int argc, char *argv[]})
{
$0
return 0;
}

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: math
# key: math
# --
#include <math.h>
$0

View 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 */

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: typedef
# key: typedef
# --
typedef ${1:type} ${2:alias};