Commit graph

135 commits

Author SHA1 Message Date
Nathanael Jones
8f37e0f618 Define default value for char *e
Visual studio's execution flow analysis insists that (e) could be
undefined. I don't see it, but this permits compilation.
2016-05-11 09:58:42 -07:00
Nathanael Jones
8d0ccbeeae Define ssize_t for MSVC
ssize_t is not available in visual studio, nor is sys/param.h We typedef
intmax_t to ssize_t
2016-05-11 09:57:41 -07:00
David Lamparter
a15accf4eb Merge pull request #3 from nathanaeljones/patch-1
Add build instructions
2016-04-27 19:54:21 +02:00
Nathanael Jones
cee25a3be7 Add build instructions 2016-04-27 10:25:43 -06:00
David Lamparter
e9df12b387 don't write out empty structs
"struct { } foo" is not valid ISO C99; while gcc/clang/icc support it,
other compilers and tools don't (e.g. pycparser)
2016-04-06 14:18:29 -03:00
Michael Gartsbein
90c3473406 support set of non terminated string (with len) 2016-04-06 11:40:18 +03:00
Michael Gartsbein
bf2c598f63 uint8_t cast 2016-03-29 10:26:01 +03:00
Michael Gartsbein
61a43a4998 static const instead of function in size getters 2016-03-29 10:25:33 +03:00
Michael Gartsbein
e870b5d605 generate setter and getter 2016-03-27 16:35:11 +03:00
David Lamparter
b58fa3b6a5 c-capnproto 0.1 release 2016-03-19 00:53:06 +01:00
David Lamparter
e626b3f26e README: fix travis link 2016-03-19 00:49:42 +01:00
David Lamparter
4de69a555d test.schema: drop interface & generic, regenerate 2016-03-19 00:46:05 +01:00
David Lamparter
7ecadefbfd compiler: fix remaining warnings 2016-03-19 00:39:30 +01:00
David Lamparter
3f9141616b add & install pkgconfig file 2016-03-19 00:39:30 +01:00
David Lamparter
00eaeeb936 lib: fix API
capn_new_string is exported as symbol but not in the header
capn_write_mem_packed is internal but the symbol is visible
2016-03-19 00:39:30 +01:00
David Lamparter
b18dc3de8c include README.md in dist tarball 2016-03-19 00:39:30 +01:00
David Lamparter
c2faf4e5da tests: move into tests/ subdir 2016-03-19 00:39:30 +01:00
David Lamparter
93351266ee gtest: integrate as git submodule 2016-03-19 00:39:29 +01:00
David Lamparter
811d3046e1 rename to "[lib]capnp_c", use lib/ subdir 2016-03-19 00:39:29 +01:00
David Lamparter
d3b1cad50f compiler: regenerate schema.c with enum/int cast 2016-03-19 00:39:25 +01:00
David Lamparter
41462901df lib: fix warning on uint16->enum cast 2016-03-19 00:36:24 +01:00
David Lamparter
332076e522 Fix empty-object pointers
Pointers are written as offsets to the segment start;  leaving p->data
as NULL results in invalid pointers for zero-size objects (particularly,
lists.)
2016-03-08 14:49:10 +01:00
David Lamparter
48ab119048 Travis CI: whatever.
gtest packages intentionally don't provide binaries anymore.
Will probably re-add as submodule later.
2016-02-28 18:38:41 +01:00
David Lamparter
c92a985849 Fix Travis CI even more...
automake 1.11 is sufficient (and what's installed by default on CI
boxes).  Also disable cap'n proto reference (it's not actually used)
2016-02-28 18:31:43 +01:00
David Lamparter
c02d6d59d0 Fix up Travis CI
... it doesn't autodetect that it needs to run autoreconf
Also add gtest package.
2016-02-28 18:26:35 +01:00
David Lamparter
663cfe2d23 Update Travis icon URL 2016-02-28 18:23:23 +01:00
David Lamparter
b18d178884 Remove "script" spec from travis.yml
Travis should autodetect & do the right thing for autoconf projects...
2016-02-28 18:20:23 +01:00
David Lamparter
89818b0286 tack on autoconf/automake build 2016-02-28 13:55:23 +01:00
David Lamparter
34f150dc1c Update merged forks 2016-02-28 12:52:38 +01:00
David Lamparter
56753b053f fold 2 readme files 2016-02-28 12:51:01 +01:00
David Lamparter
ae746a3e08 add approprate per-file license headers 2016-02-28 12:47:42 +01:00
David Lamparter
06f6e98d12 Tag 640Labs as merged
(No changes in 640Labs that are useful to merge -- just mark as merged.)
2016-02-28 12:44:55 +01:00
David Lamparter
b55d847db6 Re-fix signed/unsigned warnings 2016-02-28 12:42:52 +01:00
David Lamparter
02268ff818 Merge branch 'kylemanna' into merge
Conflicts: (manually resolved)
	capn-malloc.c
	capn-stream.c
	capn-test.cpp
	capn.c
	capn.h
	compiler/capnpc-c.c
2016-02-28 12:32:59 +01:00
David Lamparter
aeeae64900 Revert "gtest: Use system gtest and pthread libs"
This reverts commit 9fe7167920.

(this makes the following merge easier)
2016-02-28 12:19:44 +01:00
David Lamparter
0ddba4f2f1 Merge branch 'baruch' into merge
Conflicts:
	Makefile		-- manually resolved
	compiler/schema.capnp	-- used from liamstask
	compiler/test.capnp	-- used from liamstask
2016-02-28 12:17:57 +01:00
David Lamparter
da77dcc452 Partial revert "all: use unsigned types for more variables that represent length"
This reverts commit 0b6f95294e.

(for merge)
2016-02-28 12:15:12 +01:00
David Lamparter
d87beb1a09 gtest: use installed package, drop files
(also makes the next merge much easier)
2016-02-28 12:08:28 +01:00
David Lamparter
6ebc0682eb gtest: use installed package, drop files
(also makes the next merge much easier)
2016-02-28 12:08:10 +01:00
Kyle Manna
6ebba52da2 capn: Avoid uninitialized values
* Return null when appropriate and assign a value earlier.
2015-08-17 18:53:16 -07:00
Kyle Manna
376b63fb81 signedness: Fix less obvious issues
* My compilers mark these as errors
* Attempt to be more correct
* Tested on gcc-5.2.0 and clang-3.6.2
2015-08-17 18:52:36 -07:00
Kyle Manna
e933510236 compiler: Fix missing comments
* Later versions of compilers/pre-processors are upset about the syntax
* Bracket unterminated string with proper comment tags
2015-08-17 18:50:53 -07:00
Kyle Manna
5b3e8f1132 test: Remove unused variables
* Never referenced and generate warnings on modern compilers
* Tested on gcc-5.2.0 and clang-3.6.2
2015-08-17 18:49:48 -07:00
Kyle Manna
7d2e122f2f signedness: Fix obvious sign problems
* These should be easily verified as correct.
* Tested on gcc-5.2.0 and clang-3.6.2
2015-08-17 18:48:17 -07:00
Kyle Manna
9fe7167920 gtest: Use system gtest and pthread libs
* Rip out the gtest built in here.  Use the system library.
* Test against gtest-1.7.0-1 on Arch Linux
* Add the missing -lpthread library
2015-08-17 18:44:31 -07:00
Liam Staskawicz
e67affe8cf Merge pull request #3 from liamstask/update-v0.5.2
compiler: updates to upstream v0.5.2
2015-08-04 12:23:52 -07:00
Liam Staskawicz
cdf7e1f007 compiler: notes on updating from upstream 2015-08-04 12:04:49 -07:00
Liam Staskawicz
fadac15a4c init_fp(): add comment that clarifies that it expects input to be in standard framing format 2015-08-04 11:56:18 -07:00
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