Skip to content

Instantly share code, notes, and snippets.

@ichizok
ichizok / patch-x86_64-darwin.diff
Created September 3, 2011 14:31
GNU-Prolog 1.4.0 patch for OSX (x86-64)
diff --git a/src/EnginePl/engine1.c b/src/EnginePl/engine1.c
--- a/src/EnginePl/engine1.c
+++ b/src/EnginePl/engine1.c
@@ -118,6 +118,11 @@
#endif
+#elif defined(M_x86_64_darwin)
+
+ register WamWord *rb asm("%r12") = pl_reg_bank;
@ichizok
ichizok / osdep-darwin.c.diff
Created December 7, 2012 06:16
TMUX 1.7 patch for OSX
diff --git a/osdep-darwin.c b/osdep-darwin.c
index b112fa7..caffe60 100644
--- a/osdep-darwin.c
+++ b/osdep-darwin.c
@@ -16,9 +16,6 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/sysctl.h>
@ichizok
ichizok / tmux-sunos.patch
Created February 24, 2013 11:11
TMUX patch for Solaris
diff --git a/Makefile.am b/Makefile.am
index 726582a..30b8ca5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -50,11 +50,12 @@ endif
# Set flags for Solaris.
if IS_SUNOS
-CPPFLAGS += -D_XPG4_2 -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
+CPPFLAGS += -D_XPG6 -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
@ichizok
ichizok / osdep-datwin.c.patch
Last active December 15, 2015 16:29
TMUX 1.8: fixed compile error on OS X 10.6.8 and earlier (>= 10.5)
diff --git a/osdep-darwin.c b/osdep-darwin.c
index 23de9d5..1e5cf0d 100644
--- a/osdep-darwin.c
+++ b/osdep-darwin.c
@@ -33,17 +33,17 @@ struct event_base *osdep_event_init(void);
char *
osdep_get_name(int fd, unused char *tty)
{
- struct proc_bsdshortinfo bsdinfo;
+ struct proc_bsdinfo bsdinfo;
* shell command
-----------------------------------------------------------------------------------------
$ cat <<EOT | sqlite3 a.db
CREATE TABLE people (id int, friend int);
CREATE INDEX _id ON people (id);
begin;
$(
declare -i i=0
for i in $(seq 0 999); do
echo "INSERT INTO people VALUES ($i, $(($i+1)))"
SCRIPT /Users/Experiment/.dotfiles/vim/bundle/vimproc.vim/autoload/vimproc.vim
Sourced 1 time
Total time: 0.004266
Self time: 0.003283
count total (s) self (s)
"=============================================================================
" FILE: vimproc.vim
" AUTHOR: Shougo Matsushita <[email protected]> (Modified)
" Yukihiro Nakadaira <yukihiro.nakadaira at gmail.com> (Original)
diff --git a/src/configure.in b/src/configure.in
--- a/src/configure.in
+++ b/src/configure.in
@@ -494,26 +494,44 @@
if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
else
- multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
- if test "X$multiarch" != "X"; then
- lib_multiarch="lib/${multiarch}"
####################
# nopatch, 1000rtp #
####################
Total: 431 samples
143 33.2% 33.2% 245 56.8% vim_strchr
126 29.2% 62.4% 126 29.2% utfc_ptr2len
98 22.7% 85.2% 98 22.7% __xstat64
13 3.0% 88.2% 92 21.3% has_special_wildchar
9 2.1% 90.3% 59 13.7% copy_option_part
#!/usr/bin/env bash
gen_vimrc() {
cat <<EOT
function! s:startup()
let dirs = []
for i in range(${1%_*})
call add(dirs, printf('testdir/test-$1/dir%03d', i))
endfor
let &rtp = join(dirs, ',')
function! s:nop(x, y)
endfunction
function! s:dict_foldl_0(d)
for k in keys(a:d)
call s:nop(k, a:d[k])
endfor
endfunction
function! s:dict_foldl_1(d)