Skip to content

Instantly share code, notes, and snippets.

View mattn's full-sized avatar
🍛
I love curry 🍛

mattn mattn

🍛
I love curry 🍛
View GitHub Profile
@mattn
mattn / ver.c
Last active August 29, 2015 13:56
#include <mruby.h>
#include <mruby/variable.h>
#include <mruby/string.h>
#include <stdio.h>
int
main(int argc, char* argv[]) {
mrb_state* mrb = mrb_open();
mrb_value ver = mrb_const_get(mrb, mrb_obj_value(mrb->kernel_module), mrb_intern_lit(mrb, "MRUBY_VERSION"));
puts(RSTRING_PTR(ver));
@mattn
mattn / goto.c
Created February 24, 2014 01:23
#include <stdio.h>
#define goto if (0) goto
int
main(int argc, char* argv[]) {
if (1)
goto fail;
goto fail;
#include <stdio.h>
int
main(int argc, char* argv[]) {
int i = 2;
static void *foos[] = { &&foo1, &&foo2, &&foo3 };
goto *foos[i];
foo1:
puts("foo1");
diff -r 10d35c8b50e3 src/if_perl.xs
--- a/src/if_perl.xs Mon Feb 24 03:32:00 2014 +0100
+++ b/src/if_perl.xs Mon Feb 24 16:11:26 2014 +0900
@@ -138,6 +138,8 @@
#endif
typedef int XSINIT_t;
typedef int XSUBADDR_t;
+#endif
+#ifndef USE_ITHREADS
typedef int perl_key;
diff -r 10d35c8b50e3 src/if_perl.xs
--- a/src/if_perl.xs Mon Feb 24 03:32:00 2014 +0100
+++ b/src/if_perl.xs Tue Feb 25 10:50:58 2014 +0900
@@ -138,6 +138,8 @@
#endif
typedef int XSINIT_t;
typedef int XSUBADDR_t;
+#endif
+#ifndef USE_ITHREADS
typedef int perl_key;
diff -r 10d35c8b50e3 src/if_perl.xs
--- a/src/if_perl.xs Mon Feb 24 03:32:00 2014 +0100
+++ b/src/if_perl.xs Tue Feb 25 12:20:09 2014 +0900
@@ -138,6 +138,8 @@
#endif
typedef int XSINIT_t;
typedef int XSUBADDR_t;
+#endif
+#ifndef USE_ITHREADS
typedef int perl_key;
diff -r 10d35c8b50e3 src/if_perl.xs
--- a/src/if_perl.xs Mon Feb 24 03:32:00 2014 +0100
+++ b/src/if_perl.xs Tue Feb 25 13:47:41 2014 +0900
@@ -138,6 +138,8 @@
#endif
typedef int XSINIT_t;
typedef int XSUBADDR_t;
+#endif
+#ifndef USE_ITHREADS
typedef int perl_key;
diff --git a/plugin/wildfire.vim b/plugin/wildfire.vim
index 5bfcd5a..3ed25b6 100644
--- a/plugin/wildfire.vim
+++ b/plugin/wildfire.vim
@@ -269,10 +269,15 @@ fu! s:safenet(count)
return a:count
endfu
-exe "nnoremap <silent> " . g:wildfire_fuel_map . " :<C-U>call <SID>Start(<SID>safenet(v:count1))<CR>"
-exe "vnoremap <silent> " . g:wildfire_fuel_map . " :<C-U>call <SID>Fuel(<SID>safenet(v:count1))<CR>"
#!/bin/sh
set -e
git push --all
git push --tags
diff --git a/src/itdb_sqlite.c b/src/itdb_sqlite.c
index 56c2506..4b92370 100644
--- a/src/itdb_sqlite.c
+++ b/src/itdb_sqlite.c
@@ -2256,6 +2256,7 @@ int itdb_sqlite_generate_itdbs(FExport *fexp)
gchar *itlpdir;
gchar *dirname;
gchar *tmpdir = NULL;
+ gchar dirtmp[16];