aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2018-08-28 15:03:33 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-28 15:03:33 +0800
commitf236ac710e075f2d3ef9352a0dc19b3bdf6f5bd8 (patch)
tree666288175f48e158713ad4520dddaad11203c021 /vendor/github.com
parent1acefafe2201ba061a58b51afd7a7edf4aa0f120 (diff)
downloadgo-tangerine-f236ac710e075f2d3ef9352a0dc19b3bdf6f5bd8.tar
go-tangerine-f236ac710e075f2d3ef9352a0dc19b3bdf6f5bd8.tar.gz
go-tangerine-f236ac710e075f2d3ef9352a0dc19b3bdf6f5bd8.tar.bz2
go-tangerine-f236ac710e075f2d3ef9352a0dc19b3bdf6f5bd8.tar.lz
go-tangerine-f236ac710e075f2d3ef9352a0dc19b3bdf6f5bd8.tar.xz
go-tangerine-f236ac710e075f2d3ef9352a0dc19b3bdf6f5bd8.tar.zst
go-tangerine-f236ac710e075f2d3ef9352a0dc19b3bdf6f5bd8.zip
vendor: github.com/rjeczalik/notify update to master (#17527)
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go6
-rw-r--r--vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.10.go14
-rw-r--r--vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.11.go9
3 files changed, 3 insertions, 26 deletions
diff --git a/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go b/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go
index 95ee70444..cf0416c37 100644
--- a/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go
+++ b/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go
@@ -48,7 +48,7 @@ var wg sync.WaitGroup // used to wait until the runloop starts
// started and is ready via the wg. It also serves purpose of a dummy source,
// thanks to it the runloop does not return as it also has at least one source
// registered.
-var source = C.CFRunLoopSourceCreate(refZero, 0, &C.CFRunLoopSourceContext{
+var source = C.CFRunLoopSourceCreate(C.kCFAllocatorDefault, 0, &C.CFRunLoopSourceContext{
perform: (C.CFRunLoopPerformCallBack)(C.gosource),
})
@@ -166,8 +166,8 @@ func (s *stream) Start() error {
return nil
}
wg.Wait()
- p := C.CFStringCreateWithCStringNoCopy(refZero, C.CString(s.path), C.kCFStringEncodingUTF8, refZero)
- path := C.CFArrayCreate(refZero, (*unsafe.Pointer)(unsafe.Pointer(&p)), 1, nil)
+ p := C.CFStringCreateWithCStringNoCopy(C.kCFAllocatorDefault, C.CString(s.path), C.kCFStringEncodingUTF8, C.kCFAllocatorDefault)
+ path := C.CFArrayCreate(C.kCFAllocatorDefault, (*unsafe.Pointer)(unsafe.Pointer(&p)), 1, nil)
ctx := C.FSEventStreamContext{}
ref := C.EventStreamCreate(&ctx, C.uintptr_t(s.info), path, C.FSEventStreamEventId(atomic.LoadUint64(&since)), latency, flags)
if ref == nilstream {
diff --git a/vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.10.go b/vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.10.go
deleted file mode 100644
index dd2433d20..000000000
--- a/vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.10.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright (c) 2018 The Notify Authors. All rights reserved.
-// Use of this source code is governed by the MIT license that can be
-// found in the LICENSE file.
-
-// +build darwin,!kqueue,cgo,!go1.11
-
-package notify
-
-/*
- #include <CoreServices/CoreServices.h>
-*/
-import "C"
-
-var refZero = (*C.struct___CFAllocator)(nil)
diff --git a/vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.11.go b/vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.11.go
deleted file mode 100644
index 92b406ce7..000000000
--- a/vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.11.go
+++ /dev/null
@@ -1,9 +0,0 @@
-// Copyright (c) 2018 The Notify Authors. All rights reserved.
-// Use of this source code is governed by the MIT license that can be
-// found in the LICENSE file.
-
-// +build darwin,!kqueue,go1.11
-
-package notify
-
-const refZero = 0