http://www.fontpalace.com/font-details/Consolas/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func foo() { | |
// 変数宣言 | |
// トランスパイラはここに var を差し込むべき? | |
// var s | |
if cond { | |
// 更新 | |
s = 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func check(s string) bool { | |
i, l := 0, len(s) | |
for ; i < l; i++ { | |
if s[i] != '4' { | |
break | |
} | |
} | |
if i == 0 { | |
return false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"".main STEXT size=99 args=0x0 locals=0x20 | |
0x0000 00000 (1.go:3) TEXT "".main(SB), $32-0 | |
0x0000 00000 (1.go:3) MOVQ TLS, CX | |
0x0009 00009 (1.go:3) MOVQ (CX)(TLS*2), CX | |
0x0010 00016 (1.go:3) CMPQ SP, 16(CX) | |
0x0014 00020 (1.go:3) JLS 92 | |
0x0016 00022 (1.go:3) SUBQ $32, SP | |
0x001a 00026 (1.go:3) MOVQ BP, 24(SP) | |
0x001f 00031 (1.go:3) LEAQ 24(SP), BP | |
0x0024 00036 (1.go:3) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB) |