David Lamparter
811d3046e1
rename to "[lib]capnp_c", use lib/ subdir
2016-03-19 00:39:29 +01:00
David Lamparter
ae746a3e08
add approprate per-file license headers
2016-02-28 12:47:42 +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
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
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
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
Baruch Even
a83769f44d
Fix use of wrong offset in buffer
...
The header of packing is a single byte and nothing was written to the
first byte anyway.
2014-08-06 22:28:24 +03:00
Baruch Even
24ec009d67
Use constants where possible
...
The hdr variable gets the same constants as value but it is easier to
understand that the constants are used than the hdr which needs to be
traced to the value it received.
2014-08-06 22:28:24 +03:00
Baruch Even
a46581a35e
Move initialization closer to use
...
Should make it a bit more readable, the variable is used before that
case as well but doesn't require the zero initialization in that case.
2014-08-06 22:28:24 +03: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
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
12d72511b1
Add capn_(inflate|deflate) for converting to/from the packed form
2013-05-06 01:15:24 -04:00