Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
0a8fcd9d
Commit
0a8fcd9d
authored
Feb 12, 2020
by
Kirill Smelkov
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X wcfs/client: Move EOF -> pygolang
parent
f7b54ca4
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
24 deletions
+5
-24
wcfs/client/_wcfs.pxd
wcfs/client/_wcfs.pxd
+0
-5
wcfs/client/_wcfs.pyx
wcfs/client/_wcfs.pyx
+2
-1
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+1
-0
wcfs/client/wcfs_misc.cpp
wcfs/client/wcfs_misc.cpp
+1
-8
wcfs/client/wcfs_misc.h
wcfs/client/wcfs_misc.h
+0
-10
wcfs/client/wcfs_watchlink.cpp
wcfs/client/wcfs_watchlink.cpp
+1
-0
No files found.
wcfs/client/_wcfs.pxd
View file @
0a8fcd9d
...
...
@@ -35,11 +35,6 @@ from libcpp.utility cimport pair
from
libcpp.vector
cimport
vector
# XXX -> pygolang
cdef
extern
from
"wcfs/client/wcfs_misc.h"
namespace
"io"
nogil
:
error
EOF
"io::EOF_"
error
ErrUnexpectedEOF
cdef
extern
from
"wcfs/client/wcfs_misc.h"
namespace
"zodb"
nogil
:
ctypedef
uint64_t
Tid
ctypedef
uint64_t
Oid
...
...
wcfs/client/_wcfs.pyx
View file @
0a8fcd9d
...
...
@@ -26,6 +26,7 @@
# See _wcfs.pxd for package overview.
from
golang
cimport
pychan
,
pyerror
,
nil
from
golang
cimport
io
cdef
extern
from
*
:
ctypedef
bint
cbool
"bool"
...
...
@@ -202,7 +203,7 @@ cdef class PyWatchLink:
with
nogil
:
err
=
wlink_recvReq_pyexc
(
pywlink
.
wlink
,
pyctx
.
ctx
,
&
pyreq
.
pinreq
)
if
err
.
eq
(
EOF
):
if
err
.
eq
(
io
.
EOF
):
return
None
if
err
!=
nil
:
raise
pyerr
(
err
)
...
...
wcfs/client/wcfs.cpp
View file @
0a8fcd9d
...
...
@@ -54,6 +54,7 @@
#include <golang/errors.h>
#include <golang/fmt.h>
#include <golang/io.h>
#include <algorithm>
#include <string>
...
...
wcfs/client/wcfs_misc.cpp
View file @
0a8fcd9d
...
...
@@ -24,6 +24,7 @@
#include <golang/libgolang.h>
#include <golang/errors.h>
#include <golang/fmt.h>
#include <golang/io.h>
using
namespace
golang
;
#include <inttypes.h>
...
...
@@ -35,14 +36,6 @@ using namespace golang;
#include <memory>
// io::
namespace
io
{
const
global
<
error
>
EOF_
=
errors
::
New
(
"EOF"
);
const
global
<
error
>
ErrUnexpectedEOF
=
errors
::
New
(
"unexpected EOF"
);
}
// io::
// os::
namespace
os
{
...
...
wcfs/client/wcfs_misc.h
View file @
0a8fcd9d
...
...
@@ -51,16 +51,6 @@ using std::tie;
using
std
::
vector
;
// io:: XXX -> pygolang
namespace
io
{
extern
const
global
<
error
>
EOF_
;
extern
const
global
<
error
>
ErrUnexpectedEOF
;
}
// io::
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
...
...
wcfs/client/wcfs_watchlink.cpp
View file @
0a8fcd9d
...
...
@@ -23,6 +23,7 @@
#include <golang/errors.h>
#include <golang/fmt.h>
#include <golang/io.h>
#include <golang/strings.h>
#include <string.h>
...
...
Kirill Smelkov
@kirr
mentioned in commit
6f0cdaff
·
Oct 28, 2021
mentioned in commit
6f0cdaff
mentioned in commit 6f0cdaff23d4f8c3384b74b02d669c7fcfc2d821
Toggle commit list
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