Commit graph

169 commits

Author SHA1 Message Date
James McKaskill
85b7a99429 include the capn_segment as a header when allocating 2013-05-12 00:59:47 -04:00
James McKaskill
65c23b9218 get recursive copy to work 2013-05-12 00:59:47 -04:00
James McKaskill
2ded64d310 Add new and new list funcs 2013-05-08 23:17:21 -04:00
James McKaskill
3798d34428 rename vars in subcompiler 2013-05-08 23:15:07 -04:00
James McKaskill
e1860e2b4b bootstrap complete - use generated schema.capnp.(c|h) 2013-05-08 23:04:58 -04:00
James McKaskill
8db142a9a0 subcompiler now outputs struct defns, get, set, read, write funcs 2013-05-08 23:04:06 -04:00
James McKaskill
8bb9759e8c Move schema.* to schema.capnp.* 2013-05-08 22:57:35 -04:00
James McKaskill
923393d543 size -> len and add capn_list* back in 2013-05-08 22:38:07 -04:00
James McKaskill
f99af86cb3 Move capn_init_* all into capn-malloc.c with a common create and free function 2013-05-08 22:35:52 -04:00
James McKaskill
c5e771dcd0 Add beginnings of subcompiler 2013-05-07 22:54:30 -04:00
James McKaskill
3f29732c69 Add capn_init_(fp|mem) to read a stream from file/memory
Packed form still to be tested
2013-05-07 22:48:46 -04:00
James McKaskill
b8da11676a Pass capn_ptr by value, better handling of tags 2013-05-07 22:44:21 -04:00
James McKaskill
3a235fe8c6 Add unit test for memory layout based off the Kenton's layout-test.c++ and whole slew of fixes to get the test to pass 2013-05-07 11:04:49 -04:00
James McKaskill
12d72511b1 Add capn_(inflate|deflate) for converting to/from the packed form 2013-05-06 01:15:24 -04:00
James McKaskill
e0a5769d06 Add capn_init_malloc to provide a malloc based create function 2013-05-06 00:03:17 -04:00
James McKaskill
edfcaf9d34 Update capn_write_ptr to handle recursive structures when copying 2013-05-05 19:30:33 -04:00
James McKaskill
14ac488681 Update C generator to write out read/write functions 2013-05-02 00:55:33 -04:00
James McKaskill
3176da4556 Cleanup C library and allow it to handle List(U8)->List(U16) 2013-05-01 13:37:43 -04:00
James McKaskill
a0f30f5604 Add C runtime 2013-04-23 01:06:10 -04:00