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
959ad296
Commit
959ad296
authored
Apr 15, 2015
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up style and fix compile error occurring with just the right GCC flags.
parent
895ffa48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
layout.c++
c++/src/capnp/layout.c++
+20
-18
No files found.
c++/src/capnp/layout.c++
View file @
959ad296
...
@@ -2274,16 +2274,17 @@ PointerType PointerBuilder::getPointerType() {
...
@@ -2274,16 +2274,17 @@ PointerType PointerBuilder::getPointerType() {
WirePointer
*
ptr
=
pointer
;
WirePointer
*
ptr
=
pointer
;
WireHelpers
::
followFars
(
ptr
,
ptr
->
target
(),
segment
);
WireHelpers
::
followFars
(
ptr
,
ptr
->
target
(),
segment
);
switch
(
ptr
->
kind
())
{
switch
(
ptr
->
kind
())
{
case
WirePointer
:
:
Kind
::
FAR
:
case
WirePointer
:
:
FAR
:
KJ_FAIL_REQUIRE
(
);
KJ_FAIL_ASSERT
(
"far pointer not followed?"
);
case
WirePointer
:
:
Kind
::
STRUCT
:
case
WirePointer
:
:
STRUCT
:
return
PointerType
::
STRUCT
;
return
PointerType
::
STRUCT
;
case
WirePointer
:
:
Kind
::
LIST
:
case
WirePointer
:
:
LIST
:
return
PointerType
::
LIST
;
return
PointerType
::
LIST
;
case
WirePointer
:
:
Kind
::
OTHER
:
case
WirePointer
:
:
OTHER
:
// TODO: make sure we're only looking at capability pointers
KJ_REQUIRE
(
ptr
->
isCapability
(),
"unknown pointer type"
);
return
PointerType
::
CAPABILITY
;
return
PointerType
::
CAPABILITY
;
}
}
KJ_UNREACHABLE
;
}
}
}
}
...
@@ -2381,16 +2382,17 @@ PointerType PointerReader::getPointerType() const {
...
@@ -2381,16 +2382,17 @@ PointerType PointerReader::getPointerType() const {
SegmentReader
*
sgmt
=
segment
;
SegmentReader
*
sgmt
=
segment
;
WireHelpers
::
followFars
(
ptr
,
refTarget
,
sgmt
);
WireHelpers
::
followFars
(
ptr
,
refTarget
,
sgmt
);
switch
(
ptr
->
kind
())
{
switch
(
ptr
->
kind
())
{
case
WirePointer
:
:
Kind
::
FAR
:
case
WirePointer
:
:
FAR
:
KJ_FAIL_REQUIRE
(
);
KJ_FAIL_ASSERT
(
"far pointer not followed?"
);
case
WirePointer
:
:
Kind
::
STRUCT
:
case
WirePointer
:
:
STRUCT
:
return
PointerType
::
STRUCT
;
return
PointerType
::
STRUCT
;
case
WirePointer
:
:
Kind
::
LIST
:
case
WirePointer
:
:
LIST
:
return
PointerType
::
LIST
;
return
PointerType
::
LIST
;
case
WirePointer
:
:
Kind
::
OTHER
:
case
WirePointer
:
:
OTHER
:
// TODO: make sure we're only looking at capability pointers
KJ_REQUIRE
(
ptr
->
isCapability
(),
"unknown pointer type"
);
return
PointerType
::
CAPABILITY
;
return
PointerType
::
CAPABILITY
;
}
}
KJ_UNREACHABLE
;
}
}
}
}
...
...
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