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
50d356a0
Commit
50d356a0
authored
Jan 06, 2015
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #165 from dwrensha/typo
fix some typos
parents
bf015f61
169b1e51
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
node-translator.c++
c++/src/capnp/compiler/node-translator.c++
+2
-2
layout.c++
c++/src/capnp/layout.c++
+1
-1
rpc.capnp
c++/src/capnp/rpc.capnp
+1
-1
schema.h
c++/src/capnp/schema.h
+2
-2
refcount.h
c++/src/kj/refcount.h
+2
-2
No files found.
c++/src/capnp/compiler/node-translator.c++
View file @
50d356a0
...
...
@@ -604,12 +604,12 @@ private:
class
NodeTranslator
::
BrandScope
:
public
kj
::
Refcounted
{
// Tracks the brand parameter bindings affecting the current scope. For example, if we are
// interpreting the type expression "Foo(Text).Bar", we would start with the cur
er
nt scopes
// interpreting the type expression "Foo(Text).Bar", we would start with the cur
re
nt scopes
// BrandScope, create a new child BrandScope representing "Foo", add the "(Text)" parameter
// bindings to it, then create a further child scope for "Bar". Thus the BrandScope for Bar
// knows that Foo's parameter list has been bound to "(Text)".
//
// TODO(cleaup): This is too complicated to live here. We should refactor this class and
// TODO(clea
n
up): This is too complicated to live here. We should refactor this class and
// BrandedDecl out into their own file, independent of NodeTranslator.
public
:
...
...
c++/src/capnp/layout.c++
View file @
50d356a0
...
...
@@ -311,7 +311,7 @@ struct WireHelpers {
static
KJ_ALWAYS_INLINE
(
word
*
allocate
(
WirePointer
*&
ref
,
SegmentBuilder
*&
segment
,
WordCount
amount
,
WirePointer
::
Kind
kind
,
BuilderArena
*
orphanArena
))
{
// Allocate space in the mes
as
ge for a new object, creating far pointers if necessary.
// Allocate space in the mes
sa
ge for a new object, creating far pointers if necessary.
//
// * `ref` starts out being a reference to the pointer which shall be assigned to point at the
// new object. On return, `ref` points to a pointer which needs to be initialized with
...
...
c++/src/capnp/rpc.capnp
View file @
50d356a0
...
...
@@ -1254,7 +1254,7 @@ using ThirdPartyCapId = AnyPointer;
#
# In a network where each vat has a public/private key pair, this could be a combination of the
# third party's public key fingerprint, hints on how to connect to the third party (e.g. an IP
# address), and the question ID used in the corresponding `Provide` mes
as
ge sent to that third party
# address), and the question ID used in the corresponding `Provide` mes
sa
ge sent to that third party
# (used to identify which capability to pick up).
using JoinKeyPart = AnyPointer;
...
...
c++/src/capnp/schema.h
View file @
50d356a0
...
...
@@ -287,8 +287,8 @@ public:
// value pointer itself can be treated as the root of an unchecked message -- if you know where
// to find it, which is what this method helps you with.
//
// For blobs, returns the offset of the beg
ging of the blob's content within the first segment of
// the struct's schema.
// For blobs, returns the offset of the beg
inning of the blob's content within the first segment
//
of
the struct's schema.
//
// This is primarily useful for code generators. The C++ code generator, for example, embeds
// the entire schema as a raw word array within the generated code. Of course, to implement
...
...
c++/src/kj/refcount.h
View file @
50d356a0
...
...
@@ -31,7 +31,7 @@
namespace
kj
{
class
Refcounted
:
private
Disposer
{
// Subclass this to create a class that contains a
n atomic reference count.
Then, use
// Subclass this to create a class that contains a
reference count.
Then, use
// `kj::refcounted<T>()` to allocate a new refcounted pointer.
//
// Do NOT use this lightly. Refcounting is a crutch. Good designs should strive to make object
...
...
@@ -43,7 +43,7 @@ class Refcounted: private Disposer {
// manipulated only in one thread, because atomic (thread-safe) refcounting is surprisingly slow.
//
// In general, abstract classes should _not_ subclass this. The concrete class at the bottom
// of the h
ei
rarchy should be the one to decide how it implements refcounting. Interfaces should
// of the h
ie
rarchy should be the one to decide how it implements refcounting. Interfaces should
// expose only an `addRef()` method that returns `Own<InterfaceType>`. There are two reasons for
// this rule:
// 1. Interfaces would need to virtually inherit Refcounted, otherwise two refcounted interfaces
...
...
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