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
4e178217
Commit
4e178217
authored
May 19, 2016
by
Gordon McShane
Committed by
Harris Hancock
May 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable excluded code now required by lite-mode
parent
fab81527
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
arena.h
c++/src/capnp/arena.h
+2
-4
message.c++
c++/src/capnp/message.c++
+2
-0
No files found.
c++/src/capnp/arena.h
View file @
4e178217
...
...
@@ -252,7 +252,6 @@ public:
// portion of each segment, whereas tryGetSegment() returns something that includes
// not-yet-allocated space.
#if !CAPNP_LITE
inline
CapTableBuilder
*
getLocalCapTable
()
{
// Return a CapTableBuilder that merely implements local loopback. That is, you can set
// capabilities, then read the same capabilities back, but there is no intent ever to transmit
...
...
@@ -269,7 +268,6 @@ public:
return
&
localCapTable
;
}
#endif // !CAPNP_LITE
SegmentBuilder
*
getSegment
(
SegmentId
id
);
// Get the segment with the given id. Crashes or throws an exception if no such segment exists.
...
...
@@ -304,8 +302,8 @@ private:
MessageBuilder
*
message
;
ReadLimiter
dummyLimiter
;
#if !CAPNP_LITE
class
LocalCapTable
:
public
CapTableBuilder
{
#if !CAPNP_LITE
public
:
kj
::
Maybe
<
kj
::
Own
<
ClientHook
>>
extractCap
(
uint
index
)
override
;
uint
injectCap
(
kj
::
Own
<
ClientHook
>&&
cap
)
override
;
...
...
@@ -313,10 +311,10 @@ private:
private
:
kj
::
Vector
<
kj
::
Maybe
<
kj
::
Own
<
ClientHook
>>>
capTable
;
#endif // ! CAPNP_LITE
};
LocalCapTable
localCapTable
;
#endif // !CAPNP_LITE
SegmentBuilder
segment0
;
kj
::
ArrayPtr
<
const
word
>
segment0ForOutput
;
...
...
c++/src/capnp/message.c++
View file @
4e178217
...
...
@@ -36,9 +36,11 @@ namespace {
class
DummyCapTableReader
:
public
_
::
CapTableReader
{
public
:
#if !CAPNP_LITE
kj
::
Maybe
<
kj
::
Own
<
ClientHook
>>
extractCap
(
uint
index
)
override
{
return
nullptr
;
}
#endif
};
static
constexpr
DummyCapTableReader
dummyCapTableReader
=
DummyCapTableReader
();
...
...
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