Skip to content

Instantly share code, notes, and snippets.

@k-takata
k-takata / py3-hook-linux.diff
Created December 27, 2022 09:24
Similar patch to 8.2.4317 for Linux
View py3-hook-linux.diff
diff --git a/src/errors.h b/src/errors.h
index e33f2e66b..c23aac526 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -3213,7 +3213,7 @@ EXTERN char e_autoload_import_cannot_use_absolute_or_relative_path[]
EXTERN char e_cannot_use_partial_here[]
INIT(= N_("E1265: Cannot use a partial here"));
#endif
-#if defined(FEAT_PYTHON3) && defined(MSWIN)
+#if defined(FEAT_PYTHON3) && (defined(MSWIN) || defined(__linux__))
@k-takata
k-takata / 2002-windows_transparency.diff
Last active February 10, 2023 06:10
Updated for 9.0.1294 and later
View 2002-windows_transparency.diff
# HG changeset patch
# Parent fde93adeda8d91c54211d002010c4476c27e8dcc
# Parent 04bb907f937cefc1a013ccdaa2e54569944b57a8
implement 'transparency' for Windows GUI
diff --git a/src/gui_w32.c b/src/gui_w32.c
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -50,6 +50,13 @@ static int gui_mswin_get_menu_height(int
# define gui_mswin_get_menu_height(fix_window) 0
@k-takata
k-takata / vim-commit-counts.txt
Last active September 16, 2021 01:02
Vim commit counts and Japanese contributors
View vim-commit-counts.txt
2010 年から 2021-09-15 時点までの年ごとのコミット数およびパッチ数ランキング
日本人と思われる人には行頭に * でマーク
2010 7.2.326 - 7.3.094
638 commits
25 (Dominique Pelle)
12 (Lech Lorens)
11 (Sergey Khorev)
View mingw-make-deps.diff
diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -177,6 +177,7 @@ CROSS_COMPILE = i586-pc-mingw32msvc-
endif
DEL = rm
MKDIR = mkdir -p
+TOUCH = touch
DIRSLASH = /
else
View stdiotest.c
#include <windows.h>
int main(int argc, char *argv[])
{
HANDLE hstdin = GetStdHandle(STD_INPUT_HANDLE);
HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE);
char buf[256];
DWORD cb;
ReadFile(hstdin, buf, sizeof(buf), &cb, NULL);
View sakura_lang.diff
diff --git a/sakura_lang_en_US/Makefile b/sakura_lang_en_US/Makefile
index 0949faa3..4de6510b 100644
--- a/sakura_lang_en_US/Makefile
+++ b/sakura_lang_en_US/Makefile
@@ -23,6 +23,9 @@ endif
# If empty, it will be output to the default directory.
OUTDIR =
+# The directory where sakura_core is built.
+COREBUILDDIR =
View test49-mswin.diff
--- a/src/Make_mvc.mak
+++ b/src/Make_mvc.mak
@@ -1326,9 +1326,6 @@ MAIN_TARGET = $(VIM).exe
# Target to run individual tests.
VIMTESTTARGET = $(VIM).exe
-OLD_TEST_OUTFILES = \
- $(SCRIPTS_FIRST)
-
all: $(MAIN_TARGET) \
View if_python_39.diff
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -203,6 +203,9 @@ typedef PySliceObject PySliceObject_T;
# define PySys_GetObject py3_PySys_GetObject
# define PySys_SetArgv py3_PySys_SetArgv
# define PyType_Ready py3_PyType_Ready
+# if PY_VERSION_HEX >= 0x03090000
+# define PyType_GetFlags py3_PyType_GetFlags
+# endif
#undef Py_BuildValue
@k-takata
k-takata / Makefile
Last active March 13, 2020 10:10
hashtable benchmark
View Makefile
all: khash_test.exe khash_test_strkey.exe st_test.exe st_test_strkey.exe
!if "$(Platform)"=="x64"
SIZEOF_VOIDP=8
!else
SIZEOF_VOIDP=4
!endif
khash_test.exe: khash_test.c khash.h
cl /O2 khash_test.c