View getcwd.c
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <psapi.h>
#include <tlhelp32.h>
#include <stdio.h>
typedef struct _STRING {
WORD Length;
WORD MaximumLength;
CHAR *Buffer;
View bwipe.vim
function! s:bwipe(...)
bwipe!
endfunction
new
call timer_start(5000, function('s:bwipe'))
View build.sh
mingw32-make -f Make_ming.mak GUI=no IME=yes MBYTE=yes ICONV=yes ^
PERL=c:/mingw64/mingw64 DYNAMIC_PERL=yes PERL_VER=522 ^
PERLEXE=c:/msys64/mingw64/bin/perl.exe ^
PERLLIB=c:/msys64/mingw64/lib/perl5/core_perl ^
PYTHON=c:/msys64/mingw64 DYNAMIC_PYTHON=yes PYTHON_VER=27 ^
PYTHON_HOME=c:/msys64/mingw64 ^
PYTHONINC=-Ic:/msys64/mingw64/include/python2.7 ^
DYNAMIC_PYTHON_DLL=libpython2.7.dll ^
PYTHON3=c:/msys64/mingw64 DYNAMIC_PYTHON3=yes PYTHON3_VER=36 ^
PYTHON3_HOME=c:/msys64/mingw64/ ^
View pgrp.c
#include <stdio.h>
#include <windows.h>
#include <tlhelp32.h>
#include <psapi.h>
int
main(int argc, char* argv[]) {
int pid = -1, ppid = 1;
HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
PROCESSENTRY32 pe = { 0 };
View gist:c5503e6f3263405b572f33ea1c60ee51
diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
index 5b0719f7d..76269f351 100644
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -766,6 +766,7 @@ OBJ += $(OUTDIR)/terminal.o \
$(OUTDIR)/term_state.o \
$(OUTDIR)/term_unicode.o \
$(OUTDIR)/term_vterm.o
+LIB += -lpsapi
endif
View gist:9e087f303a94e35e26d5c666ac101084
diff --git a/src/evalfunc.c b/src/evalfunc.c
index fc0e05dad..9ef54bba8 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -835,6 +835,7 @@ static struct fst
{"term_getcursor", 1, 1, f_term_getcursor},
{"term_getjob", 1, 1, f_term_getjob},
{"term_getline", 1, 2, f_term_getline},
+ {"term_getruncmd", 1, 1, f_term_getruncmd},
{"term_getsize", 1, 1, f_term_getsize},
View boron.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <unistd.h>
#include <time.h>
int
main(int argc, char* argv[]) {
const char* home = getenv("HOME");
View log
2017/07/26 15:23:43 insert000
2017/07/26 15:23:43 insert001
2017/07/26 15:23:43 insert002
2017/07/26 15:23:43 insert003
2017/07/26 15:23:43 insert004
2017/07/26 15:23:43 insert005
2017/07/26 15:23:43 insert006
2017/07/26 15:23:43 insert007
2017/07/26 15:23:43 insert008
2017/07/26 15:23:43 insert009
View sample.txt
func foo() {
// 変数宣言
// トランスパイラはここに var を差し込むべき?
// var s
if cond {
// 更新
s = 1
}