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
2d209702
Commit
2d209702
authored
Aug 10, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor bug fixes.
parent
46293bbd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
capnpc-c++.c++
c++/src/capnp/compiler/capnpc-c++.c++
+1
-2
capnpc-capnp.c++
c++/src/capnp/compiler/capnpc-capnp.c++
+2
-2
module-loader.c++
c++/src/capnp/compiler/module-loader.c++
+3
-1
No files found.
c++/src/capnp/compiler/capnpc-c++.c++
View file @
2d209702
...
...
@@ -21,8 +21,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// This program is a code generator plugin for capnpc which writes the schema back to stdout in
// roughly capnpc format.
// This program is a code generator plugin for `capnp compile` which generates C++ code.
#include <capnp/schema.capnp.h>
#include "../serialize.h"
...
...
c++/src/capnp/compiler/capnpc-capnp.c++
View file @
2d209702
...
...
@@ -21,8 +21,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// This program is a code generator plugin for
capnpc which writes the schema back to stdout in
// roughly capnpc format.
// This program is a code generator plugin for
`capnp compile` which writes the schema back to
//
stdout in
roughly capnpc format.
#include <capnp/schema.capnp.h>
#include "../serialize.h"
...
...
c++/src/capnp/compiler/module-loader.c++
View file @
2d209702
...
...
@@ -171,7 +171,9 @@ static char* canonicalizePath(char* path) {
kj
::
String
canonicalizePath
(
kj
::
StringPtr
path
)
{
KJ_STACK_ARRAY
(
char
,
result
,
path
.
size
()
+
1
,
128
,
512
);
strcpy
(
result
.
begin
(),
path
.
begin
());
char
*
end
=
canonicalizePath
(
result
.
begin
());
char
*
start
=
path
.
startsWith
(
"/"
)
?
result
.
begin
()
+
1
:
result
.
begin
();
char
*
end
=
canonicalizePath
(
start
);
return
kj
::
heapString
(
result
.
slice
(
0
,
end
-
result
.
begin
()));
}
...
...
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