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
3b0e4f1e
Commit
3b0e4f1e
authored
11 years ago
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update capnpc-capnp to use KJ_MAIN.
parent
10697ea1
master
v0.7.0
v0.6.1
v0.6.0
v0.5.3.1
v0.5.3
v0.5.2
v0.5.1.2
v0.5.1.1
v0.5.1
v0.5.0
v0.4.1.2
v0.4.1.1
v0.4.1
v0.4.0
v0.3.0
v0.2.1
v0.2.0
No related merge requests found
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
capnp.c++
c++/src/capnp/compiler/capnp.c++
+7
-1
capnpc-capnp.c++
c++/src/capnp/compiler/capnpc-capnp.c++
+0
-0
array.h
c++/src/kj/array.h
+5
-0
vector.h
c++/src/kj/vector.h
+4
-0
No files found.
c++/src/capnp/compiler/capnp.c++
View file @
3b0e4f1e
...
...
@@ -41,6 +41,12 @@
#include <capnp/serialize-packed.h>
#include <limits>
#if HAVE_CONFIG_H
#include "config.h"
#else
#define VERSION "(unknown ekam build)"
#endif
namespace
capnp
{
namespace
compiler
{
...
...
@@ -65,7 +71,7 @@ public:
}
};
static
const
char
VERSION_STRING
[]
=
"Cap'n Proto version
0.2"
;
static
const
char
VERSION_STRING
[]
=
"Cap'n Proto version
"
VERSION
;
class
CompilerMain
final
:
public
GlobalErrorReporter
{
public
:
...
...
This diff is collapsed.
Click to expand it.
c++/src/capnp/compiler/capnpc-capnp.c++
View file @
3b0e4f1e
This diff is collapsed.
Click to expand it.
c++/src/kj/array.h
View file @
3b0e4f1e
...
...
@@ -350,6 +350,11 @@ public:
template
<
typename
Iterator
>
void
addAll
(
Iterator
start
,
Iterator
end
);
void
removeLast
()
{
KJ_IREQUIRE
(
pos
>
ptr
,
"No elements present to remove."
);
kj
::
dtor
(
*--
pos
);
}
Array
<
T
>
finish
()
{
// We could safely remove this check if we assume that the disposer implementation doesn't
// need to know the original capacity, as is thes case with HeapArrayDisposer since it uses
...
...
This diff is collapsed.
Click to expand it.
c++/src/kj/vector.h
View file @
3b0e4f1e
...
...
@@ -87,6 +87,10 @@ public:
addAll
(
container
.
begin
(),
container
.
end
());
}
inline
void
removeLast
()
{
builder
.
removeLast
();
}
private
:
ArrayBuilder
<
T
>
builder
;
...
...
This diff is collapsed.
Click to expand it.
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