Initial commit.

This commit is contained in:
2016-02-18 14:53:30 +01:00
commit 8e93ca7a95
2215 changed files with 341269 additions and 0 deletions

View File

@@ -0,0 +1 @@
cc-mode

View File

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

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: compile
# key: compile
# --
// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*-

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: define
# key: d
# --
#define $0

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: malloc
# key: malloc
# --
malloc(sizeof($1)${2: * ${3:3}});
$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: packed
# key: packed
# --
__attribute__((__packed__))$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: printf
# key: pr
# --
printf("${1:format string}"${2: ,a0,a1});

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: stdio
# key: io
# --
#include <stdio.h>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: stdlib
# key: std
# --
#include <stdlib.h>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: string
# key: str
# --
#include <string.h>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: union
# key: union
# --
typedef union {
$0
} ${1:name};

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: unistd
# key: uni
# --
#include <unistd.h>