Commit graph

62 commits

Author SHA1 Message Date
Liam Staskawicz
560366c7d4 compiler: introduce workaround for annotation ids in nestednode list (see comments), and regenerate schema .{c|h} files based on capnproto v0.5.2 2015-08-04 11:56:00 -07:00
Liam Staskawicz
98c2d02744 compiler: update schemas from v0.5.2 2015-08-04 11:55:23 -07:00
Liam Staskawicz
593b356cda Merge pull request #2 from liamstask/travis-improvement
travis: remove sudo requirement for faster builds
2015-08-04 11:14:21 -07:00
Liam Staskawicz
e3af4b4570 travis: remove sudo requirement in order to be able to build on faster container system 2015-08-04 11:11:54 -07:00
Liam Staskawicz
8585d869cb readme: super brief info 2015-08-04 11:00:26 -07:00
Liam Staskawicz
be7a4963a3 Merge pull request #1 from liamstask/travis-clean
Travis build support
2015-08-04 10:57:47 -07:00
Liam Staskawicz
0b6f95294e all: use unsigned types for more variables that represent length
resolve build warnings on multiple platforms/toolchains
2015-08-04 10:44:22 -07:00
Liam Staskawicz
125c638c11 unreal: gcc complains about missing ‘ character in #if 0 block 2015-08-04 10:25:08 -07:00
Liam Staskawicz
28e13e55d7 build: require c++11 for gtest, and link test exe against pthreads (linux build fails without it) 2015-08-04 10:24:57 -07:00
Liam Staskawicz
94de39fd6b travis: prelim auto build support 2015-08-04 10:21:22 -07:00
Liam Staskawicz
6b3657437d capn-test: remove unreferenced code, now builds cleanly
previously, this was emitting the following warning (treated as error):

`c++ -g -Wall -Werror -I. -Igtest-1.7.0/include -o capn-test.o -c capn-test.cpp
capn-test.cpp:66:29: error: unused variable 'SUBSTRUCT_DEFAULT' [-Werror,-Wunused-const-variable]
static const AlignedData<2> SUBSTRUCT_DEFAULT = {{0,0,0,0,1,0,0,0,  0,0,0,0,0,0,0,0}};
                            ^
capn-test.cpp:67:29: error: unused variable 'STRUCTLIST_ELEMENT_SUBSTRUCT_DEFAULT' [-Werror,-Wunused-const-variable]
static const AlignedData<2> STRUCTLIST_ELEMENT_SUBSTRUCT_DEFAULT =
                            ^`
2015-07-29 22:48:23 -07:00
Liam Staskawicz
97dcc053ef gtest: remove modified gtest-all-test.cpp, and build unmodified, vendored gtest-all.cpp
builds cleanly (minus a couple warnings in the test code itself) on OS X 10.10.4 with “Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)”
2015-07-29 22:45:20 -07:00
Liam Staskawicz
8865b6d917 gtest: vendor v1.7.0, latest release from https://code.google.com/p/googletest/downloads/list
no changes to existing code
2015-07-29 22:40:30 -07:00
James McKaskill
36348a2375 Merge pull request #2 from urbit/capn-write
Add TODO and fail on packed writes
2014-02-21 16:59:31 -05:00
Steve Dee
45b95c38d0 Add TODO and fail on packed writes 2014-02-21 13:23:57 -08:00
James McKaskill
9019ca2326 Merge pull request #1 from urbit/capn-write
Implement serialization to buffers
2014-02-20 20:38:20 -05:00
Steve Dee
ca03b34318 Implement serialization to buffers 2014-02-20 17:13:57 -08:00
James McKaskill
2c48f47b3d clean up of write_ptr 2013-12-10 20:34:04 -05:00
James McKaskill
df3e668f79 Integrate gtest in rather than use gtest-config 2013-12-10 20:33:33 -05:00
James McKaskill
ff44e4df26 remove CAPN_COMPOSITE_LIST and add capn_len 2013-09-16 16:53:33 -04:00
James McKaskill
59f827e93d change ptrsz to ptrs to free up space in capn_ptr 2013-09-13 10:02:03 -04:00
James McKaskill
7397df1216 misc minor cleanup 2013-09-12 23:57:29 -04:00
James McKaskill
7b0bfece26 add version checks 2013-09-12 23:28:36 -04:00
James McKaskill
fc63a080a0 Add special case for capn_setp when handed a far pointer 2013-09-12 23:20:58 -04:00
James McKaskill
081c783bbf don't autoresolve pointers 2013-09-12 17:26:51 -04:00
James McKaskill
e6c57a665e Remove interface code 2013-09-12 16:44:20 -04:00
James McKaskill
f4f0ccabf8 Add MIT license 2013-09-12 15:17:22 -04:00
James McKaskill
bba43e67ea Add test schema 2013-09-12 14:55:42 -04:00
James McKaskill
9682fb2611 list out constants in declaration order 2013-09-12 14:48:11 -04:00
James McKaskill
448021e7e1 use create_local 2013-09-12 14:42:30 -04:00
James McKaskill
ca1d07f657 Round trip the schema through the compiler 2013-09-12 14:37:15 -04:00
James McKaskill
82e55f6515 declare enums first 2013-09-12 14:26:22 -04:00
James McKaskill
cada8df6c2 Decode field slot when we get around to declaring it rather than early as the names aren't resolved yet 2013-09-12 14:23:40 -04:00
James McKaskill
316f470c3b Handle reserved words 2013-09-12 14:14:21 -04:00
James McKaskill
225399e091 Header cleanup 2013-09-12 13:51:32 -04:00
James McKaskill
9f75d0c7a6 Update compiler to support groups/unions 2013-09-12 13:49:19 -04:00
James McKaskill
7731509861 add read/write methods for interfaces 2013-05-12 23:10:54 -04:00
James McKaskill
21e7c29a96 add interface to base lib and improve handling of empty lists 2013-05-12 22:58:48 -04:00
James McKaskill
93f695f77c add constants 2013-05-12 17:21:56 -04:00
James McKaskill
2eb6628ae4 add support for default values 2013-05-12 00:59:47 -04:00
James McKaskill
c85722874d switch back to capn_root
capn_root now returns a ptr that can be used with capn_getp/setp.
This replaces capn_new_root and capn_get_root.
2013-05-12 00:59:47 -04:00
James McKaskill
69b838a092 fix capn_setp to copy nulls correctly 2013-05-12 00:59:47 -04:00
James McKaskill
95b29a249b remove read/write_float, use to/from_f32 instead 2013-05-12 00:59:47 -04:00
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