View gist:d47e7d3bfe5ade4be86062b565a4bfca
diff --git a/src/channel.c b/src/channel.c
index 2d68287..859a7d0 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -4649,6 +4649,83 @@ job_check_ended(void)
}
}
+#ifndef USE_ARGV
+ char_u *
View regexp_benchmark.go
$ go test -bench .
testing: warning: no tests to run
BenchmarkStdRegexp-4 5000 398039 ns/op
BenchmarkSre2Regexp-4 50 24262426 ns/op
PASS
View gist:214b61186e2fe091fa65e2b6fbaa8069
diff --git a/src/channel.c b/src/channel.c
index bbe98be..4777b35 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2892,17 +2892,21 @@ channel_wait(channel_T *channel, sock_T fd, int timeout)
DWORD nread;
int sleep_time;
DWORD deadline = GetTickCount() + timeout;
- int delay = 1;
+ int r, delay = 1;
View gist:80bbdb9d27b62e0f37c86f8f2e112b34
diff --git a/src/channel.c b/src/channel.c
index 10ed42e..c465be7 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2888,17 +2888,18 @@ channel_wait(channel_T *channel, sock_T fd, int timeout)
DWORD nread;
int sleep_time;
DWORD deadline = GetTickCount() + timeout;
- int delay = 1;
+ int r, delay = 1;
View gist:130f41a825ec72ccddb55b189d11558f
diff --git a/src/channel.c b/src/channel.c
index bbe98be..9bc0594 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2899,10 +2899,10 @@ channel_wait(channel_T *channel, sock_T fd, int timeout)
{
int r = PeekNamedPipe((HANDLE)fd, NULL, 0, NULL, &nread, NULL);
- if (r && nread > 0)
- return CW_READY;
View gist:84cae0c8cb90d01c0f5276fd177257c5
--- extconf.rb.orig 2016-09-02 12:20:07.096771900 +0900
+++ extconf.rb 2016-09-02 12:20:09.449007100 +0900
@@ -46,7 +46,7 @@
check_heads(%w[windows.h winsock.h], true)
check_libs(%w[kernel32 rpcrt4 gdi32], true)
- if GNU_CHAIN
+ if Object.const_defined?(:GNU_CHAIN)
CONFIG['LDSHARED'] = "$(CXX) -shared -lstdc++"
else
View a
diff --git a/slim_test.go b/slim_test.go
index b5e27d1..68effbc 100644
--- a/slim_test.go
+++ b/slim_test.go
@@ -198,3 +198,33 @@ func TestInline(t *testing.T) {
t.Fatalf("expected %v but %v", expect, got)
}
}
+
+func TestMember(t *testing.T) {
View gist:20fc7992fbe9055c90232d26a5cf59b4
--- xmpfilter.rb.orig 2016-07-27 19:22:01.020181600 +0900
+++ xmpfilter.rb 2016-07-27 19:22:06.871851700 +0900
@@ -29,7 +29,8 @@
:use_parentheses => true}
def windows?
- /win|mingw/ =~ RUBY_PLATFORM && /darwin/ !~ RUBY_PLATFORM
+ #/win|mingw/ =~ RUBY_PLATFORM && /darwin/ !~ RUBY_PLATFORM
+ false
end
View fastinvsqrt.vim
function! s:fastinvsqrt(x)
let x = str2float(string(a:x))
let s = x < 0
if s
let x = x * -1
endif
let exp = float2nr(log(x) / 0.6931471805599453 + 127.0)
let frac = float2nr(x * pow(2, 150.0 - exp))
let b = ''
while frac > 0