Skip to content

Instantly share code, notes, and snippets.

@ichizok
ichizok / libvpx-02.make
Last active December 27, 2015 21:49
[homebrew] libvpx build log
[CREATE] vpx_rtcd.h
[DEP] test/test_libvpx.cc.d
[DEP] test/test_vector_test.cc.d
[DEP] test/subtract_test.cc.d
[DEP] test/sixtap_predict_test.cc.d
brew: superenv removed: -m64 -arch x86_64
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -L/usr/local/lib -L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries -Wl,-headerpad_max_install_names
brew: superenv removed: -m64 -arch x86_64
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -L/usr/local/lib -L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries -Wl,-headerpad_max_install_names
brew: superenv removed: -m64 -arch x86_64
@ichizok
ichizok / vimproc.vim.diff
Last active December 29, 2015 18:19
vim-quickrun
diff --git a/autoload/quickrun/runner/vimproc.vim b/autoload/quickrun/runner/vimproc.vim
--- a/autoload/quickrun/runner/vimproc.vim
+++ b/autoload/quickrun/runner/vimproc.vim
@@ -23,7 +23,7 @@ function! s:runner.validate()
endfunction
function! s:runner.run(commands, input, session)
- let vimproc = vimproc#pgroup_open(join(a:commands, ' && '))
+ let vimproc = vimproc#pgroup_open(join(a:commands, ' && '), 1)
call vimproc.stdin.write(a:input)
diff --git a/src/eval.c b/src/eval.c
--- a/src/eval.c
+++ b/src/eval.c
@@ -7972,8 +7972,8 @@
{"iconv", 3, 3, f_iconv},
{"indent", 1, 1, f_indent},
{"index", 2, 4, f_index},
- {"input", 1, 3, f_input},
- {"inputdialog", 1, 3, f_inputdialog},
+ {"input", 1, 4, f_input},
diff --git a/src/eval.c b/src/eval.c
--- a/src/eval.c
+++ b/src/eval.c
@@ -22409,18 +22409,14 @@
* Return value must be allocated memory when succeeded.
*/
static char_u *
-autoload_cache_split_scriptname(fname)
+autoload_cache_split_scriptname(fname, rtplen)
char_u *fname;
diff --git a/src/eval.c b/src/eval.c
--- a/src/eval.c
+++ b/src/eval.c
@@ -22433,19 +22433,19 @@
* Ex: sprintf("%s\0%s\0", key, fname)
*/
static char_u *
-autoload_cache_new_item(key, fname)
+autoload_cache_new_item(key, rtp)
char_u *key;
diff --git a/src/eval.c b/src/eval.c
--- a/src/eval.c
+++ b/src/eval.c
@@ -1944,13 +1944,13 @@
/*
* ":let [v1, v2] = list" or ":for [v1, v2] in listlist"
*/
- if (tv->v_type != VAR_LIST || (l = tv->vval.v_list) == NULL)
+ if (tv->v_type != VAR_LIST)
{
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.wireshark.chmod_bpf</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>-c</string>
diff --git a/autoload/vimproc.vim b/autoload/vimproc.vim
index 1a9359f..cc2a144 100644
--- a/autoload/vimproc.vim
+++ b/autoload/vimproc.vim
@@ -992,12 +992,12 @@ do
local ret = vim.eval('ret')
local hd = vim.eval('a:hd[0]')
local len = string.len(hd)
- local s = ''
+ local s = {}
diff --git a/autoload/proc.c b/autoload/proc.c
index 3eeb0de..b9383c3 100644
--- a/autoload/proc.c
+++ b/autoload/proc.c
@@ -964,62 +964,34 @@ const char *
vp_decode(char *args)
{
vp_stack_t stack;
- unsigned num;
- unsigned i, bi;
diff --git a/src/regexp.c b/src/regexp.c
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -3109,16 +3109,25 @@
if (reg_magic >= MAGIC_OFF)
{
char_u *p = regparse + 1;
-
- /* ignore \c \C \m and \M after '$' */
+ int is_magic_all = (reg_magic == MAGIC_ALL) ? TRUE : FALSE;