Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
656877e1
Commit
656877e1
authored
Aug 08, 2016
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:kentonv/capnproto
parents
af899ceb
deb72f5e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
18 deletions
+26
-18
CMakeLists.txt
c++/CMakeLists.txt
+5
-1
any.h
c++/src/capnp/any.h
+4
-4
capability.h
c++/src/capnp/capability.h
+3
-3
list.h
c++/src/capnp/list.h
+8
-8
CMakeLists.txt
c++/src/kj/CMakeLists.txt
+1
-1
async-io.c++
c++/src/kj/async-io.c++
+1
-1
miniposix.h
c++/src/kj/miniposix.h
+4
-0
No files found.
c++/CMakeLists.txt
View file @
656877e1
...
...
@@ -63,7 +63,11 @@ else()
#
# We have to use -std=gnu++0x isntead of -std=c++11 because otherwise we lose
# GNU extensions that we need.
add_compile_options
(
-std=gnu++0x -Wall -Wextra -Wno-strict-aliasing -Wno-sign-compare -Wno-unused-parameter -pthread
)
add_compile_options
(
-std=gnu++0x -Wall -Wextra -Wno-strict-aliasing -Wno-sign-compare -Wno-unused-parameter
)
if
(
NOT ANDROID
)
add_compile_options
(
-pthread
)
endif
()
endif
()
# Source =======================================================================
...
...
c++/src/capnp/any.h
View file @
656877e1
...
...
@@ -427,8 +427,8 @@ struct List<AnyPointer, Kind::OTHER> {
inline
Builder
(
decltype
(
nullptr
))
:
builder
(
ElementSize
::
POINTER
)
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
AnyPointer
::
Builder
operator
[](
uint
index
)
{
...
...
@@ -592,8 +592,8 @@ public:
inline
Builder
(
decltype
(
nullptr
))
:
builder
(
ElementSize
::
INLINE_COMPOSITE
)
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
AnyStruct
::
Builder
operator
[](
uint
index
)
{
...
...
c++/src/capnp/capability.h
View file @
656877e1
...
...
@@ -113,7 +113,7 @@ public:
:
Params
::
Builder
(
builder
),
hook
(
kj
::
mv
(
hook
))
{}
inline
Request
(
decltype
(
nullptr
))
:
Params
::
Builder
(
nullptr
)
{}
RemotePromise
<
Results
>
send
();
RemotePromise
<
Results
>
send
()
KJ_WARN_UNUSED_RESULT
;
// Send the call and return a promise for the results.
private
:
...
...
@@ -678,8 +678,8 @@ struct List<T, Kind::INTERFACE> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
typename
T
::
Client
operator
[](
uint
index
)
{
...
...
c++/src/capnp/list.h
View file @
656877e1
...
...
@@ -143,8 +143,8 @@ struct List<T, Kind::PRIMITIVE> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
T
operator
[](
uint
index
)
{
...
...
@@ -239,8 +239,8 @@ struct List<T, Kind::STRUCT> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
typename
T
::
Builder
operator
[](
uint
index
)
{
...
...
@@ -362,8 +362,8 @@ struct List<List<T>, Kind::LIST> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
typename
List
<
T
>::
Builder
operator
[](
uint
index
)
{
...
...
@@ -470,8 +470,8 @@ struct List<T, Kind::BLOB> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
typename
T
::
Builder
operator
[](
uint
index
)
{
...
...
c++/src/kj/CMakeLists.txt
View file @
656877e1
...
...
@@ -58,7 +58,7 @@ set(kj-std_headers
)
add_library
(
kj
${
kj_sources
}
)
add_library
(
CapnProto::kj ALIAS kj
)
if
(
UNIX
)
if
(
UNIX
AND NOT ANDROID
)
target_link_libraries
(
kj PUBLIC pthread
)
endif
()
#make sure the lite flag propagates to all users (internal + external) of this library
...
...
c++/src/kj/async-io.c++
View file @
656877e1
...
...
@@ -1229,7 +1229,7 @@ public:
// OK, we know the cmsghdr is valid, at least.
// Find the start of the message payload.
const
byte
*
begin
=
CMSG_DATA
(
cmsg
);
const
byte
*
begin
=
(
const
byte
*
)
CMSG_DATA
(
cmsg
);
// Cap the message length to the available space.
const
byte
*
end
=
pos
+
kj
::
min
(
available
,
cmsg
->
cmsg_len
);
...
...
c++/src/kj/miniposix.h
View file @
656877e1
...
...
@@ -44,6 +44,10 @@
#include <sys/types.h>
#endif
#if !_WIN32
#include <sys/uio.h>
#endif
namespace
kj
{
namespace
miniposix
{
...
...
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