Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
0a7cbd91
Commit
0a7cbd91
authored
Feb 17, 2018
by
Anton Evangelatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vendor: update rjeczalik/notify so that it compiles on go1.10
parent
4e61ed02
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
29 deletions
+6
-29
watcher_fsevents_cgo.go
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go
+3
-3
watcher_fsevents_go1.10.go
...or/github.com/rjeczalik/notify/watcher_fsevents_go1.10.go
+0
-9
watcher_fsevents_go1.9.go
vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.9.go
+0
-14
vendor.json
vendor/vendor.json
+3
-3
No files found.
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go
View file @
0a7cbd91
...
...
@@ -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
(
nil
,
0
,
&
C
.
CFRunLoopSourceContext
{
perform
:
(
C
.
CFRunLoopPerformCallBack
)(
C
.
gosource
),
})
...
...
@@ -162,8 +162,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
(
nil
,
C
.
CString
(
s
.
path
),
C
.
kCFStringEncodingUTF8
,
nil
)
path
:=
C
.
CFArrayCreate
(
nil
,
(
*
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
{
...
...
vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.10.go
deleted
100644 → 0
View file @
4e61ed02
// Copyright (c) 2017 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.10
package
notify
const
refZero
=
0
vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.9.go
deleted
100644 → 0
View file @
4e61ed02
// Copyright (c) 2017 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.10
package
notify
/*
#include <CoreServices/CoreServices.h>
*/
import
"C"
var
refZero
=
(
*
C
.
struct___CFAllocator
)(
nil
)
vendor/vendor.json
View file @
0a7cbd91
...
...
@@ -322,10 +322,10 @@
"revisionTime"
:
"2016-11-28T21:05:44Z"
},
{
"checksumSHA1"
:
"
1ESHllhZOIBg7MnlGHUdhz047b
I="
,
"checksumSHA1"
:
"
28UVHMmHx0iqO0XiJsjx+fwILy
I="
,
"path"
:
"github.com/rjeczalik/notify"
,
"revision"
:
"
27b537f07230b3f917421af6dcf044038dbe57e2
"
,
"revisionTime"
:
"2018-0
1-03T13:19:0
5Z"
"revision"
:
"
c31e5f2cb22b3e4ef3f882f413847669bf2652b9
"
,
"revisionTime"
:
"2018-0
2-03T14:01:1
5Z"
},
{
"checksumSHA1"
:
"5uqO4ITTDMklKi3uNaE/D9LQ5nM="
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment