Skip to content

Instantly share code, notes, and snippets.

View imasahiro's full-sized avatar

Masahiro Ide imasahiro

  • LINE Corporation
  • Tokyo Japan
View GitHub Profile
@imasahiro
imasahiro / gist:770093
Created January 7, 2011 21:03
konha-mode.vim
" Vim syntax file
" Language: Konoha
" Maintainer: Masahiro Ide <[email protected]>
" URL: http://sourceforge.jp/projects/konoha/
" Last Change: 2009 July 09
" Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
int main(int argc, char **argv)
{
struct list {
void *next;
} _op = {0}, *op = &_op;
asm volatile("jmp *%0;":: "r"(*(void const*)op->next));
return 0;
}
/*
* $ gcc-mp-4.4 jmp.c
@imasahiro
imasahiro / mksc-macosx.diff
Created December 7, 2009 08:14
patch for mac-gcc
Index: include/mk.h
===================================================================
--- include/mk.h (revision 29)
+++ include/mk.h (working copy)
@@ -755,10 +755,19 @@
#ifdef _DEBUG
int mk_execute_expr( MK_VM_STRUCT *vm, MK_NODE_EXPR *pTarget, int hasParent );
#else
+static inline int mk_execute_expr( MK_VM_STRUCT *vm, MK_NODE_EXPR *pTarget, int hasParent )
+{