size -> len and add capn_list* back in
This commit is contained in:
parent
f99af86cb3
commit
923393d543
7 changed files with 225 additions and 163 deletions
|
|
@ -189,7 +189,7 @@ TEST(Schema, ReadSimple) {
|
|||
|
||||
struct CodeGeneratorRequest req;
|
||||
read_CodeGeneratorRequest(&req, root);
|
||||
for (size_t i = 0; i < req.nodes.p.size; i++) {
|
||||
for (size_t i = 0; i < req.nodes.p.len; i++) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -314,6 +314,6 @@ void read_AnnotationNode(struct AnnotationNode *s, AnnotationNode_ptr p) {
|
|||
|
||||
void read_CodeGeneratorRequest(struct CodeGeneratorRequest *s, CodeGeneratorRequest_ptr p) {
|
||||
s->nodes.p = capn_getp(p.p, 0);
|
||||
s->requestedFiles = capn_getp(p.p, 1);
|
||||
s->requestedFiles.p = capn_getp(p.p, 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ struct AnnotationNode {
|
|||
|
||||
struct CodeGeneratorRequest {
|
||||
Node_list nodes;
|
||||
capn_ptr requestedFiles; /* List(uint64_t) */
|
||||
capn_list64 requestedFiles;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue