Skip to content

Instantly share code, notes, and snippets.

@erw7
erw7 / cmake.lang
Last active July 13, 2018 01:00
source-highlight definition
# language definition for CMake
# erw7.github@gmail.com
#
environment comment start "#" begin
include "url.lang"
todo = '\<TODO|FIXME|XXX\>'
end
environment string delim "\"" "\"" escape "\\" begin
#include <stdlib.h>
#include <check.h>
#include "queue.h"
#include "check_queue.h"
const char * const test_data1[DATA1_NUM + 1] = {"foo", "bar", "baz", "qux", "quux", NULL};
const char * const test_data2[DATA2_NUM + 1] = {"corge", "grault", "garply", NULL};
QUEUE h, n;
node_T * make_node(const char * data)
;;; psgml-html.el --- HTML mode in conjunction with PSGML
;; arch-tag: 68a4c8e6-2bb1-4f89-95aa-b964a5786dd5
;; Copyright (C) 1994 Nelson Minar.
;; Copyright (C) 1995 Nelson Minar and Ulrik Dickow.
;; Copyright (C) 1996 Ben Wing.
;; This file is part of XEmacs.
--- origsrc/R-3.2.5/m4/R.m4 2016-04-24 16:49:34.626084100 +0900
+++ m4/R.m4 2016-04-26 14:49:53.374930500 +0900
@@ -3506,6 +3506,9 @@
want_mbcs_support=no
fi
fi
+if test "$want_mbcs_support" = yes; then
+ AC_CHECK_SIZEOF(wchar_t, [], [#include <wchar.h>])
+fi
if test "x${want_mbcs_support}" != xyes; then
diff --git a/src/Makefile b/src/Makefile
index f7f81a4e6..1e9952821 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -169,6 +169,10 @@ else
HOST_SYS= Windows
HOST_MSYS= cygwin
endif
+ ifneq (,$(findstring MSYS,$(HOST_SYS)))
+ HOST_SYS= Windows
diff --git a/Makefile.am b/Makefile.am
index 718cfc7..3f1296c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -173,6 +173,7 @@ dist_tmux_SOURCES = \
tty-term.c \
tty.c \
utf8.c \
+ wcwidth.c \
window-choose.c \
--- site.cfg.orig 2017-09-20 21:12:03.198127900 +0900
+++ site.cfg 2017-09-20 21:14:59.899638200 +0900
@@ -14,4 +14,4 @@
# http://stackoverflow.com/questions/1972259/mysql-python-install-problem-using-virtualenv-windows-pip
# Windows connector libs for MySQL. You need a 32-bit connector for your 32-bit Python build.
-connector = C:\Program Files (x86)\MySQL\MySQL Connector C 6.1
+connector = C:\PROGRA~1\MySQL\MYSQLC~1.1
--- setup_windows.py.orig 2017-09-20 21:05:15.952613300 +0900
+++ setup_windows.py 2017-09-20 21:09:35.621868700 +0900
--- setup.py.orig 2017-09-20 20:22:46.341691400 +0900
+++ setup.py 2017-09-20 20:24:51.500711200 +0900
@@ -572,6 +572,8 @@
if not PLATFORM_IS_WINDOWS:
define_macros.append(('PSYCOPG_VERSION', '"' + PSYCOPG_VERSION_EX + '"'))
+elif'GCC' in sys.version:
+ define_macros.append(('PSYCOPG_VERSION', '\"' + PSYCOPG_VERSION_EX + '\"'))
else:
define_macros.append(('PSYCOPG_VERSION', '\\"' + PSYCOPG_VERSION_EX + '\\"'))
diff --git a/lisp/loadup.el b/lisp/loadup.el
index c6107d3444..cf62d7bacf 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -271,6 +271,7 @@
(load "term/w32-win")
(load "disp-table")
(when (eq system-type 'windows-nt)
+ (load "image")
(load "w32-fns")
@erw7
erw7 / build_vim.sh
Last active January 25, 2024 09:17
#!/bin/zsh
setopt extendedglob
script_dir=$0:h
__ScriptVersion="1.1"
CLEAN=0
DISTCELAN=0
DEBUG=0