-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c-capnproto sync-up merge #4
base: master
Are you sure you want to change the base?
Commits on Feb 5, 2014
-
Steve Dee committed
Feb 5, 2014 Configuration menu - View commit details
-
Copy full SHA for 859ab61 - Browse repository at this point
Copy the full SHA 859ab61View commit details -
Steve Dee committed
Feb 5, 2014 Configuration menu - View commit details
-
Copy full SHA for f0dc17c - Browse repository at this point
Copy the full SHA f0dc17cView commit details -
Steve Dee committed
Feb 5, 2014 Configuration menu - View commit details
-
Copy full SHA for 322aa16 - Browse repository at this point
Copy the full SHA 322aa16View commit details
Commits on Feb 21, 2014
-
Implement serialization to buffers
Steve Dee committedFeb 21, 2014 Configuration menu - View commit details
-
Copy full SHA for 68340f8 - Browse repository at this point
Copy the full SHA 68340f8View commit details
Commits on Feb 24, 2014
-
Merge remote-tracking branch 'urbit/master'
Conflicts: capn-malloc.c
Steve Dee committedFeb 24, 2014 Configuration menu - View commit details
-
Copy full SHA for 89f1ac3 - Browse repository at this point
Copy the full SHA 89f1ac3View commit details
Commits on Feb 26, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 823a820 - Browse repository at this point
Copy the full SHA 823a820View commit details -
Add padding to preserve alignment on 32-bit systems
Steven Dee committedFeb 26, 2014 Configuration menu - View commit details
-
Copy full SHA for cb26aea - Browse repository at this point
Copy the full SHA cb26aeaView commit details
Commits on Mar 25, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 1d79a28 - Browse repository at this point
Copy the full SHA 1d79a28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1eb82b0 - Browse repository at this point
Copy the full SHA 1eb82b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf5eb7f - Browse repository at this point
Copy the full SHA bf5eb7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d84a635 - Browse repository at this point
Copy the full SHA d84a635View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cc7785 - Browse repository at this point
Copy the full SHA 4cc7785View commit details
Commits on Aug 3, 2014
-
Renamed gtest/include to gtest/gtest since that's what the include files expected. Adjusted the Makefile to work through it all.
Configuration menu - View commit details
-
Copy full SHA for 20bd625 - Browse repository at this point
Copy the full SHA 20bd625View commit details -
No real need to build a gtest archive, gtest-all.cc includes all the files so a single .o is fine.
Configuration menu - View commit details
-
Copy full SHA for 54ca88f - Browse repository at this point
Copy the full SHA 54ca88fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a33a18 - Browse repository at this point
Copy the full SHA 8a33a18View commit details -
Configuration menu - View commit details
-
Copy full SHA for d785521 - Browse repository at this point
Copy the full SHA d785521View commit details
Commits on Aug 6, 2014
-
Forego updating sz in capn_write_mem
It is not used and we already validated the total buffer size beforehand.
Configuration menu - View commit details
-
Copy full SHA for 49483a6 - Browse repository at this point
Copy the full SHA 49483a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0071546 - Browse repository at this point
Copy the full SHA 0071546View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a46581a - Browse repository at this point
Copy the full SHA a46581aView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 24ec009 - Browse repository at this point
Copy the full SHA 24ec009View commit details -
Fix use of wrong offset in buffer
The header of packing is a single byte and nothing was written to the first byte anyway.
Configuration menu - View commit details
-
Copy full SHA for a83769f - Browse repository at this point
Copy the full SHA a83769fView commit details -
This uses the capn_deflate function. The current use may get smaller packing than the maximum possible due to the inability to peak around segments as it packs each segment on its own. This saves time compared to copying everything into one place and saves effort by not requiring to change the interface of capn_deflate to support multiple different buffers. It should be possible to make the capn_deflate state machine better to handle the multiple buffers case too.
Configuration menu - View commit details
-
Copy full SHA for 440c662 - Browse repository at this point
Copy the full SHA 440c662View commit details
Commits on Aug 7, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 2bdc5c4 - Browse repository at this point
Copy the full SHA 2bdc5c4View commit details
Commits on Jan 4, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 232cef8 - Browse repository at this point
Copy the full SHA 232cef8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c653dda - Browse repository at this point
Copy the full SHA c653ddaView commit details
Commits on Aug 18, 2015
-
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
Configuration menu - View commit details
-
Copy full SHA for 9fe7167 - Browse repository at this point
Copy the full SHA 9fe7167View commit details -
signedness: Fix obvious sign problems
* These should be easily verified as correct. * Tested on gcc-5.2.0 and clang-3.6.2
Configuration menu - View commit details
-
Copy full SHA for 7d2e122 - Browse repository at this point
Copy the full SHA 7d2e122View commit details -
* Never referenced and generate warnings on modern compilers * Tested on gcc-5.2.0 and clang-3.6.2
Configuration menu - View commit details
-
Copy full SHA for 5b3e8f1 - Browse repository at this point
Copy the full SHA 5b3e8f1View commit details -
compiler: Fix missing comments
* Later versions of compilers/pre-processors are upset about the syntax * Bracket unterminated string with proper comment tags
Configuration menu - View commit details
-
Copy full SHA for e933510 - Browse repository at this point
Copy the full SHA e933510View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 376b63f - Browse repository at this point
Copy the full SHA 376b63fView commit details -
capn: Avoid uninitialized values
* Return null when appropriate and assign a value earlier.
Configuration menu - View commit details
-
Copy full SHA for 6ebba52 - Browse repository at this point
Copy the full SHA 6ebba52View commit details
Commits on Feb 28, 2016
-
gtest: use installed package, drop files
(also makes the next merge much easier)
Configuration menu - View commit details
-
Copy full SHA for 6ebc068 - Browse repository at this point
Copy the full SHA 6ebc068View commit details -
gtest: use installed package, drop files
(also makes the next merge much easier)
Configuration menu - View commit details
-
Copy full SHA for d87beb1 - Browse repository at this point
Copy the full SHA d87beb1View commit details -
Partial revert "all: use unsigned types for more variables that repre…
…sent length" This reverts commit 0b6f952. (for merge)
Configuration menu - View commit details
-
Copy full SHA for da77dcc - Browse repository at this point
Copy the full SHA da77dccView commit details -
Merge branch 'baruch' into merge
Conflicts: Makefile -- manually resolved compiler/schema.capnp -- used from liamstask compiler/test.capnp -- used from liamstask
Configuration menu - View commit details
-
Copy full SHA for 0ddba4f - Browse repository at this point
Copy the full SHA 0ddba4fView commit details -
Revert "gtest: Use system gtest and pthread libs"
This reverts commit 9fe7167. (this makes the following merge easier)
Configuration menu - View commit details
-
Copy full SHA for aeeae64 - Browse repository at this point
Copy the full SHA aeeae64View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 02268ff - Browse repository at this point
Copy the full SHA 02268ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for b55d847 - Browse repository at this point
Copy the full SHA b55d847View commit details -
(No changes in 640Labs that are useful to merge -- just mark as merged.)
Configuration menu - View commit details
-
Copy full SHA for 06f6e98 - Browse repository at this point
Copy the full SHA 06f6e98View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae746a3 - Browse repository at this point
Copy the full SHA ae746a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56753b0 - Browse repository at this point
Copy the full SHA 56753b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34f150d - Browse repository at this point
Copy the full SHA 34f150dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89818b0 - Browse repository at this point
Copy the full SHA 89818b0View commit details -
Remove "script" spec from travis.yml
Travis should autodetect & do the right thing for autoconf projects...
Configuration menu - View commit details
-
Copy full SHA for b18d178 - Browse repository at this point
Copy the full SHA b18d178View commit details -
Configuration menu - View commit details
-
Copy full SHA for 663cfe2 - Browse repository at this point
Copy the full SHA 663cfe2View commit details -
... it doesn't autodetect that it needs to run autoreconf Also add gtest package.
Configuration menu - View commit details
-
Copy full SHA for c02d6d5 - Browse repository at this point
Copy the full SHA c02d6d5View commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for c92a985 - Browse repository at this point
Copy the full SHA c92a985View commit details -
gtest packages intentionally don't provide binaries anymore. Will probably re-add as submodule later.
Configuration menu - View commit details
-
Copy full SHA for 48ab119 - Browse repository at this point
Copy the full SHA 48ab119View commit details
Commits on Mar 8, 2016
-
Pointers are written as offsets to the segment start; leaving p->data as NULL results in invalid pointers for zero-size objects (particularly, lists.)
Configuration menu - View commit details
-
Copy full SHA for 332076e - Browse repository at this point
Copy the full SHA 332076eView commit details
Commits on Mar 18, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 4146290 - Browse repository at this point
Copy the full SHA 4146290View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3b1cad - Browse repository at this point
Copy the full SHA d3b1cadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 811d304 - Browse repository at this point
Copy the full SHA 811d304View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9335126 - Browse repository at this point
Copy the full SHA 9335126View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2faf4e - Browse repository at this point
Copy the full SHA c2faf4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b18dc3d - Browse repository at this point
Copy the full SHA b18dc3dView commit details -
capn_new_string is exported as symbol but not in the header capn_write_mem_packed is internal but the symbol is visible
Configuration menu - View commit details
-
Copy full SHA for 00eaeeb - Browse repository at this point
Copy the full SHA 00eaeebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f91416 - Browse repository at this point
Copy the full SHA 3f91416View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ecadef - Browse repository at this point
Copy the full SHA 7ecadefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4de69a5 - Browse repository at this point
Copy the full SHA 4de69a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e626b3f - Browse repository at this point
Copy the full SHA e626b3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b58fa3b - Browse repository at this point
Copy the full SHA b58fa3bView commit details
Commits on Mar 27, 2016
-
Configuration menu - View commit details
-
Copy full SHA for e870b5d - Browse repository at this point
Copy the full SHA e870b5dView commit details
Commits on Mar 29, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 61a43a4 - Browse repository at this point
Copy the full SHA 61a43a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf2c598 - Browse repository at this point
Copy the full SHA bf2c598View commit details
Commits on Apr 6, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 90c3473 - Browse repository at this point
Copy the full SHA 90c3473View commit details -
"struct { } foo" is not valid ISO C99; while gcc/clang/icc support it, other compilers and tools don't (e.g. pycparser)
Configuration menu - View commit details
-
Copy full SHA for e9df12b - Browse repository at this point
Copy the full SHA e9df12bView commit details
Commits on Apr 27, 2016
-
Configuration menu - View commit details
-
Copy full SHA for cee25a3 - Browse repository at this point
Copy the full SHA cee25a3View commit details -
Merge pull request #3 from nathanaeljones/patch-1
Add build instructions
Configuration menu - View commit details
-
Copy full SHA for a15accf - Browse repository at this point
Copy the full SHA a15accfView commit details
Commits on Apr 28, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 12ad949 - Browse repository at this point
Copy the full SHA 12ad949View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec9bb14 - Browse repository at this point
Copy the full SHA ec9bb14View commit details
Commits on May 5, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 1d5a2c8 - Browse repository at this point
Copy the full SHA 1d5a2c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05f5884 - Browse repository at this point
Copy the full SHA 05f5884View commit details
Commits on May 11, 2016
-
ssize_t is not available in visual studio, nor is sys/param.h We typedef intmax_t to ssize_t
Configuration menu - View commit details
-
Copy full SHA for 8d0ccbe - Browse repository at this point
Copy the full SHA 8d0ccbeView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 8f37e0f - Browse repository at this point
Copy the full SHA 8f37e0fView commit details -
Align capn_segment to 64-bit boundaries on MSVC
Unless capn_segment is defined with __declspec(align(64)), check_segment_alignment fails to compile in x86 mode, as (sizeof(struct capn_segment)&7) -> (44 & 7) evaluates to 4 Always compiles in x64 mode, as (sizeof(struct capn_segment)&7) -> (80 & 7) evaluates to 0
Configuration menu - View commit details
-
Copy full SHA for 27df3d6 - Browse repository at this point
Copy the full SHA 27df3d6View commit details
Commits on Jun 22, 2016
-
Merge pull request #4 from mikegarts/short.circuit.endian
start making endianness switch less weird
Configuration menu - View commit details
-
Copy full SHA for 0e850b1 - Browse repository at this point
Copy the full SHA 0e850b1View commit details -
Merge pull request #5 from mikegarts/working.with.stricter.compilers
working with stricter compiler flags
Configuration menu - View commit details
-
Copy full SHA for 2b15c6c - Browse repository at this point
Copy the full SHA 2b15c6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c0652d - Browse repository at this point
Copy the full SHA 1c0652dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48535d0 - Browse repository at this point
Copy the full SHA 48535d0View commit details -
lib: make endian check more platform-friendly
neither Windows nor OSX have endian.h autoconf checking this makes things worse on Windows too, so let's just try endian.h on "unix" systems.
Configuration menu - View commit details
-
Copy full SHA for b3b83e0 - Browse repository at this point
Copy the full SHA b3b83e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0abd16d - Browse repository at this point
Copy the full SHA 0abd16dView commit details -
lib: endianness: don't break strict-aliasing
Strict aliasing prohibits writing to union members of one type, then reading another type. The read is undefined. Use memcpy instead (which compilers will hopefully optimize away...)
Configuration menu - View commit details
-
Copy full SHA for 1afce95 - Browse repository at this point
Copy the full SHA 1afce95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87591da - Browse repository at this point
Copy the full SHA 87591daView commit details -
compiler: add "C::nameinfix" annotation
allows changing output filenames from "foo.capnp.c" to "foo.capnpSOMETHING.c" where SOMETHING is the argument to the annotation.
Configuration menu - View commit details
-
Copy full SHA for 5d787b6 - Browse repository at this point
Copy the full SHA 5d787b6View commit details
Commits on Jun 27, 2016
-
lib: make capn_inflate() work with unaligned data
init_fp itself tries to read 4 bytes for the segment count.
Configuration menu - View commit details
-
Copy full SHA for 3059f4d - Browse repository at this point
Copy the full SHA 3059f4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b12856 - Browse repository at this point
Copy the full SHA 0b12856View commit details -
lib: don't overrun buffer in capn_write_mem_packed
Missing braces end up scaling the offset by * 4 ... which is actually a stack/heap overflow.
Configuration menu - View commit details
-
Copy full SHA for 33ae16b - Browse repository at this point
Copy the full SHA 33ae16bView commit details -
lib: make capn_{de,in}flate + capn_stream private
There is no point in having these functions be part of the public API.
Configuration menu - View commit details
-
Copy full SHA for f2058f6 - Browse repository at this point
Copy the full SHA f2058f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97f30c5 - Browse repository at this point
Copy the full SHA 97f30c5View commit details
Commits on Jun 30, 2016
-
Revert "lib: endianness: don't break strict-aliasing"
This reverts commit 1afce95. Turns out this is a misunderstanding of the C standard... meh.
Configuration menu - View commit details
-
Copy full SHA for 81352b0 - Browse repository at this point
Copy the full SHA 81352b0View commit details
Commits on Jul 19, 2016
-
compiler: add find_node_mayfail(), remove hack
Fixes github issue #11, also makes it easier to use annotations.
Configuration menu - View commit details
-
Copy full SHA for 52ca907 - Browse repository at this point
Copy the full SHA 52ca907View commit details -
compiler: add annotation to enable field get/set
Generating per-field getters/setters adds a lot of functions; this makes them switchable with an annotation in the source schema.
Configuration menu - View commit details
-
Copy full SHA for da663f8 - Browse repository at this point
Copy the full SHA da663f8View commit details -
compiler: apply name infix on include filenames
This fixes #include output when $C.nameinfix is used.
Configuration menu - View commit details
-
Copy full SHA for c322bc9 - Browse repository at this point
Copy the full SHA c322bc9View commit details
Commits on Jul 20, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 54a7bb7 - Browse repository at this point
Copy the full SHA 54a7bb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75f7901 - Browse repository at this point
Copy the full SHA 75f7901View commit details
Commits on Aug 2, 2016
-
Configuration menu - View commit details
-
Copy full SHA for de5a960 - Browse repository at this point
Copy the full SHA de5a960View commit details -
Configuration menu - View commit details
-
Copy full SHA for c628547 - Browse repository at this point
Copy the full SHA c628547View commit details
Commits on Aug 7, 2016
-
lib: make buf arg const in write_fd pointer
For capn_write_fd() the write() function would be ideal to pass as write_fd, but write() has type ssize_t (*)(int, const void *, size_t), whereas write_fd expects ssize_t (*)(int, void *, size_t). Passing write() directly with GCC 5.4 causes a warning -Wincompatible-pointer-types (on by default).
Configuration menu - View commit details
-
Copy full SHA for 7b7346a - Browse repository at this point
Copy the full SHA 7b7346aView commit details
Commits on Sep 28, 2016
-
Ensure capn segment is aligned properly when build with gcc too. Fixe…
…s build on 32 bits arm.
Configuration menu - View commit details
-
Copy full SHA for de11757 - Browse repository at this point
Copy the full SHA de11757View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95d81bc - Browse repository at this point
Copy the full SHA 95d81bcView commit details
Commits on Mar 22, 2017
-
Fix GCC warnings in initializers for capn_val0 and capn_seg.
Alex Helfet committedMar 22, 2017 Configuration menu - View commit details
-
Copy full SHA for f16fae5 - Browse repository at this point
Copy the full SHA f16fae5View commit details -
Merge pull request #14 from fluffysquirrels/master
Fix GCC warnings in initializers for capn_val0 and capn_seg.
Configuration menu - View commit details
-
Copy full SHA for 55b958c - Browse repository at this point
Copy the full SHA 55b958cView commit details -
Merge pull request #12 from ThirteenFish/master
lib: make buf arg const in write_fd pointer
Configuration menu - View commit details
-
Copy full SHA for 462f6eb - Browse repository at this point
Copy the full SHA 462f6ebView commit details -
Fix compiler warnings and errors in GCC.
Alex Helfet committedMar 22, 2017 Configuration menu - View commit details
-
Copy full SHA for 0be6206 - Browse repository at this point
Copy the full SHA 0be6206View commit details -
Fix runtime library compiler warnings and errors in GCC.
Alex Helfet committedMar 22, 2017 Configuration menu - View commit details
-
Copy full SHA for 1b25eae - Browse repository at this point
Copy the full SHA 1b25eaeView commit details
Commits on Mar 23, 2017
-
Fixed some issues raised by eqvinox in pull request.
Alex Helfet committedMar 23, 2017 Configuration menu - View commit details
-
Copy full SHA for ef88fd8 - Browse repository at this point
Copy the full SHA ef88fd8View commit details -
.gitignore .dirstamp files created during the build.
Alex Helfet committedMar 23, 2017 Configuration menu - View commit details
-
Copy full SHA for a93ae12 - Browse repository at this point
Copy the full SHA a93ae12View commit details -
Remove UNUSED(x) macro. No longer needed.
Alex Helfet committedMar 23, 2017 Configuration menu - View commit details
-
Copy full SHA for 57d0ffe - Browse repository at this point
Copy the full SHA 57d0ffeView commit details -
8 byte alignment on capn_segment, updated comments about this.
As discussed in PR: #15 (comment)
Alex Helfet committedMar 23, 2017 Configuration menu - View commit details
-
Copy full SHA for 408505a - Browse repository at this point
Copy the full SHA 408505aView commit details -
Merge pull request #15 from fluffysquirrels/master
Fix runtime library compiler warnings and errors in GCC.
Configuration menu - View commit details
-
Copy full SHA for 49031ea - Browse repository at this point
Copy the full SHA 49031eaView commit details -
compiler: If an explicit symbol wasn't provided, make generated capn_…
…val%d variables static.
Alex Helfet committedMar 23, 2017 Configuration menu - View commit details
-
Copy full SHA for 3621730 - Browse repository at this point
Copy the full SHA 3621730View commit details -
Alex Helfet committed
Mar 23, 2017 Configuration menu - View commit details
-
Copy full SHA for 29a1342 - Browse repository at this point
Copy the full SHA 29a1342View commit details
Commits on Mar 24, 2017
-
Fix build errors in tests/example-test.cpp.
Alex Helfet committedMar 24, 2017 Configuration menu - View commit details
-
Copy full SHA for e32a85b - Browse repository at this point
Copy the full SHA e32a85bView commit details -
Add extra files to Makefile.am.
Alex Helfet committedMar 24, 2017 Configuration menu - View commit details
-
Copy full SHA for 5a282f6 - Browse repository at this point
Copy the full SHA 5a282f6View commit details
Commits on Mar 26, 2017
-
Add all .capnp files to
make dist
archive.Alex Helfet committedMar 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 6b52d61 - Browse repository at this point
Copy the full SHA 6b52d61View commit details -
Compiler generates absolute #include paths from .capnp imports with l…
…eading /'s. As specified in https://capnproto.org/language.html#imports and implemented in the C++ compiler output plugin.
Alex Helfet committedMar 26, 2017 Configuration menu - View commit details
-
Copy full SHA for a379aa8 - Browse repository at this point
Copy the full SHA a379aa8View commit details -
Make task
capnp-compile
to compile from .capnp files in the project.Alex Helfet committedMar 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 73b5d56 - Browse repository at this point
Copy the full SHA 73b5d56View commit details -
Most .capnp files use "/c.capnp".fieldgetset. Recompile from schema f…
…iles.
Alex Helfet committedMar 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 989acc3 - Browse repository at this point
Copy the full SHA 989acc3View commit details
Commits on Mar 27, 2017
-
Rewrite tests/example-test.cpp to use addressbook example from capnpr…
…oto C++ project.
Alex Helfet committedMar 27, 2017 Configuration menu - View commit details
-
Copy full SHA for 531eefc - Browse repository at this point
Copy the full SHA 531eefcView commit details -
Add comiler/c.capnp.h to Makefile.am noinst_HEADERS.
Alex Helfet committedMar 27, 2017 Configuration menu - View commit details
-
Copy full SHA for f7cd568 - Browse repository at this point
Copy the full SHA f7cd568View commit details -
Add example that uses accessor functions.
Alex Helfet committedMar 27, 2017 Configuration menu - View commit details
-
Copy full SHA for 9530312 - Browse repository at this point
Copy the full SHA 9530312View commit details
Commits on Mar 30, 2017
-
Add some missing capn_free() calls to the example test.
Alex Helfet committedMar 30, 2017 Configuration menu - View commit details
-
Copy full SHA for a80f245 - Browse repository at this point
Copy the full SHA a80f245View commit details
Commits on Apr 2, 2017
-
Add URL for original addressbook example; example to assert list leng…
…th with capn_len().
Alex Helfet committedApr 2, 2017 Configuration menu - View commit details
-
Copy full SHA for 4380d28 - Browse repository at this point
Copy the full SHA 4380d28View commit details
Commits on Apr 5, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 7c81906 - Browse repository at this point
Copy the full SHA 7c81906View commit details
Commits on May 17, 2017
-
Support creation of struct lists with size 0
The case of creating capnp lists of size 0 didn't consider lists of composite elements (structs), which requires the addition of list element information. This commit removes the case of size 0 when creating the list in order to enable the creation of 0 sized lists of any element type (struct).
Configuration menu - View commit details
-
Copy full SHA for c802ad3 - Browse repository at this point
Copy the full SHA c802ad3View commit details
Commits on May 19, 2017
-
Configuration menu - View commit details
-
Copy full SHA for e0d1c36 - Browse repository at this point
Copy the full SHA e0d1c36View commit details -
Merge pull request #19 from jlferrer/fix_empty_lists
Support creation of struct lists with size 0
Configuration menu - View commit details
-
Copy full SHA for 2330c17 - Browse repository at this point
Copy the full SHA 2330c17View commit details -
Add stddef.h for POSIX ssize_t
Recent GCC versions / OS headers don't automatically provide ssize_t anymore, leading to compiler errors.
Configuration menu - View commit details
-
Copy full SHA for 0ffd3fd - Browse repository at this point
Copy the full SHA 0ffd3fdView commit details -
Silence GCC unnamed union warning
We need the unnamed struct/union support, this is user-facing API. So, silence the -Wpedantic warning.
Configuration menu - View commit details
-
Copy full SHA for 99e9412 - Browse repository at this point
Copy the full SHA 99e9412View commit details -
Silence warning on unused struct parameter
When generating code for an empty struct, the read_/write_ functions would print warnings about the unused "s" pointer. Silence these.
Configuration menu - View commit details
-
Copy full SHA for b0810da - Browse repository at this point
Copy the full SHA b0810daView commit details -
Last but not least, -Wpedantic warns about empty structs. With this, -Wpedantic build is now clean of warnings on gcc 5.4.0 and clang 4.0.
Configuration menu - View commit details
-
Copy full SHA for aa1f31d - Browse repository at this point
Copy the full SHA aa1f31dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89dd18a - Browse repository at this point
Copy the full SHA 89dd18aView commit details -
Configuration menu - View commit details
-
Copy full SHA for aab56f1 - Browse repository at this point
Copy the full SHA aab56f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 704a34f - Browse repository at this point
Copy the full SHA 704a34fView commit details -
Merge branch 'jamvideosolutions/master'
(Marker merge -- cherry-picked the size format; the align one is superseded and the gtest ones collide with gtest's upstream recommendations [only Gentoo has gtest as a package].)
Configuration menu - View commit details
-
Copy full SHA for 5cbd52e - Browse repository at this point
Copy the full SHA 5cbd52eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb30563 - Browse repository at this point
Copy the full SHA cb30563View commit details
Commits on Feb 1, 2018
-
compiler: Allocate all possible space for constants
When the c-capnp compiler runs, currently only takes the len of 1st segment in the list as a capacity used in the generator for constants definitions. This works when the schema processing only generates 1 segment, or the 1st segment has 8192 bytes. There are cases where the fd returns multiple segments an the first one has very low capacity (e.g. 96 or 80). Hence, if more constants require to be allocated for the current schema it will have misleading positions. This commit takes a conservative approach by summing up all the lenghts of capnproto segments obtained at the fd_init call of the compiler. Those values are taken to set the memory allocation and the max capacity for the segment utilized in the code generation.
jose luis ferrer committedFeb 1, 2018 Configuration menu - View commit details
-
Copy full SHA for d924032 - Browse repository at this point
Copy the full SHA d924032View commit details
Commits on Apr 22, 2019
-
Configuration menu - View commit details
-
Copy full SHA for bd9911a - Browse repository at this point
Copy the full SHA bd9911aView commit details -
compiler/str.h: include stdarg.h for va_list
With some toolchains, compilation of str.c produced the following error: compiler/str.h:56:50: error: unknown type name ‘va_list’ int str_vaddf(struct str *v, const char *format, va_list ap) ATTR(2,0); ^~~~~~~ One toolchain had the following in its stdarg.h: "We deliberately do not define va_list when called from stdio.h, because ANSI C says that stdio.h is not supposed to define va_list." str.c includes stdio.h, but none of the prior includes result in the inclusion of stdarg.h. Therefore, explicitly include it in str.h to fix the issue on toolchains following this ANSI C rule. Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9053ebe - Browse repository at this point
Copy the full SHA 9053ebeView commit details
Commits on Dec 28, 2020
-
Fix bug where enums were treated interchangeably with uint16_t.
ANSI C makes no guarantee about the size of an enum, only that it will be the minimum required integer type that can hold all the given values. Treating enums as interchangeable with uint16_t data caused undefined behavoiur on platforms where enums were always at least 32 bits.
Configuration menu - View commit details
-
Copy full SHA for e13c143 - Browse repository at this point
Copy the full SHA e13c143View commit details
Commits on Jan 2, 2021
-
Add an annotation to skip including header files generated from specific
schema files. Some schema files (eg. those that only decalare annotations) do not actually result in any generated C code. They do not need to have a corresponding include directive for C files generated from schemas that include them. This introduces a "donotinclude" annotation that takes the Cap'n Proto ID (a UInt64) of any such files and skips generating the include directive for them.
Configuration menu - View commit details
-
Copy full SHA for b995a09 - Browse repository at this point
Copy the full SHA b995a09View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe3a57d - Browse repository at this point
Copy the full SHA fe3a57dView commit details -
Add an annotation to typedef structs and enums.
A new annotation 'typedefto' allows you to make a typedef in the generated code for structs and enums (but not union 'which' enums).
Configuration menu - View commit details
-
Copy full SHA for 9153fc3 - Browse repository at this point
Copy the full SHA 9153fc3View commit details
Commits on Jan 14, 2021
-
Fix code generation for nested unions.
When a union is nested inside another union, it must be enclosed in a struct so that its "which" member is not overlapping with its other members.
Configuration menu - View commit details
-
Copy full SHA for 6661fc9 - Browse repository at this point
Copy the full SHA 6661fc9View commit details
Commits on Feb 1, 2021
-
Alexandre Snarskii committed
Feb 1, 2021 Configuration menu - View commit details
-
Copy full SHA for 72efa0b - Browse repository at this point
Copy the full SHA 72efa0bView commit details -
Alexandre Snarskii committed
Feb 1, 2021 Configuration menu - View commit details
-
Copy full SHA for 86bee96 - Browse repository at this point
Copy the full SHA 86bee96View commit details
Commits on Feb 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3c0b223 - Browse repository at this point
Copy the full SHA 3c0b223View commit details
Commits on May 10, 2021
-
Merge pull request #41 from detly/enum_cast
Fix bug where enums were treated interchangeably with uint16_t.
Configuration menu - View commit details
-
Copy full SHA for 515c06c - Browse repository at this point
Copy the full SHA 515c06cView commit details -
Merge pull request #44 from detly/nested_unions
Fix code generation for nested unions.
Configuration menu - View commit details
-
Copy full SHA for b619a87 - Browse repository at this point
Copy the full SHA b619a87View commit details -
Merge pull request #42 from detly/annotations
Two extra annotations: donotinclude and typedefto
Configuration menu - View commit details
-
Copy full SHA for 024dca6 - Browse repository at this point
Copy the full SHA 024dca6View commit details -
Implemented capn_size() for dynamically calculating the required buff…
…er size for capn_write_mem().
Configuration menu - View commit details
-
Copy full SHA for d29facc - Browse repository at this point
Copy the full SHA d29faccView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbc208c - Browse repository at this point
Copy the full SHA bbc208cView commit details -
Make the comment for capn_size() clearer that it only applies to unpa…
…cked serialisation.
Configuration menu - View commit details
-
Copy full SHA for a2179f4 - Browse repository at this point
Copy the full SHA a2179f4View commit details -
Merge pull request #37 from detly/write_size
Implemented capn_size() for calculating buffer size
Configuration menu - View commit details
-
Copy full SHA for 939aa30 - Browse repository at this point
Copy the full SHA 939aa30View commit details -
Merge pull request #47 from QQNN-blue/change_capn_write_mem_return_va…
…l_type Change capn_write_mem return value from int to int64_t
Configuration menu - View commit details
-
Copy full SHA for 0650ccb - Browse repository at this point
Copy the full SHA 0650ccbView commit details -
Use int64_t for the return value of capn_size(). This makes it consis…
…tent with a recent change to capn_write_mem().
Configuration menu - View commit details
-
Copy full SHA for 05482f3 - Browse repository at this point
Copy the full SHA 05482f3View commit details
Commits on Oct 14, 2022
-
only generate '#include' for imports that are used
This patch modifies the code generator to only generate C-language `#include <imported_schema.h>` lines for imports that are actually used. Imagine this transitive import scenario: schema A imports a definition from schema B. However, the definition imported from schema B was itself imported from schema C. In this case, the code generated for schema A need not include the header file for schema B, as it only needs definitions from schema C. Signed-off-by: Curt Brune <curt@enfabrica.net>
Configuration menu - View commit details
-
Copy full SHA for 1772643 - Browse repository at this point
Copy the full SHA 1772643View commit details -
add a capnp annotation for creating name spaces
This patch adds an annotation for creating name spaces within capnproto files with the C-language code generator. Use the annotation like this: using C = import "/c.capnp"; $C.namespace("sample_namespace_"); The string passed into the namespace annotation is prepended to the name of all the struct's in the schema file. Signed-off-by: Curt Brune <curt@enfabrica.net>
Configuration menu - View commit details
-
Copy full SHA for c70796b - Browse repository at this point
Copy the full SHA c70796bView commit details -
add 'const' keyword to generated constants
This patch adds the 'const' keyword to constant definitions generated by the compiler. Previously the compiler generated constants like this: foo.h ====== extern int foo; foo.c ====== int foo = 5; With this patch, the generated code looks like: foo.h ====== extern const int foo; foo.c ====== const int foo = 5; Signed-off-by: Curt Brune <curt@enfabrica.net>
Configuration menu - View commit details
-
Copy full SHA for 40d6895 - Browse repository at this point
Copy the full SHA 40d6895View commit details
Commits on Oct 27, 2022
-
add #define definitions for integer constants
When working with integer constants, it is convenient to use #define macros for the constants, as opposed to a variable of constant type. This patch adds a '#define CONSTANT (value)' definition to the generated header files. The name of the constant is in SCREAMING_SNAKE_CASE, converted from the regular camelCase. Signed-off-by: Curt Brune <curt@enfabrica.net>
Configuration menu - View commit details
-
Copy full SHA for 3385b1e - Browse repository at this point
Copy the full SHA 3385b1eView commit details
Commits on Apr 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6eb98cb - Browse repository at this point
Copy the full SHA 6eb98cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b8e3ca - Browse repository at this point
Copy the full SHA 6b8e3caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53f6def - Browse repository at this point
Copy the full SHA 53f6defView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6377038 - Browse repository at this point
Copy the full SHA 6377038View commit details -
README: make project state clear
Signed-off-by: David Lamparter <equinox@diac24.net>
Configuration menu - View commit details
-
Copy full SHA for b87f0ee - Browse repository at this point
Copy the full SHA b87f0eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a39ec4 - Browse repository at this point
Copy the full SHA 4a39ec4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 560f2c7 - Browse repository at this point
Copy the full SHA 560f2c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2116160 - Browse repository at this point
Copy the full SHA 2116160View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0653675 - Browse repository at this point
Copy the full SHA 0653675View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c4e497 - Browse repository at this point
Copy the full SHA 5c4e497View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4109705 - Browse repository at this point
Copy the full SHA 4109705View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32def19 - Browse repository at this point
Copy the full SHA 32def19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32520c5 - Browse repository at this point
Copy the full SHA 32520c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c79b3af - Browse repository at this point
Copy the full SHA c79b3afView commit details -
Signed-off-by: David Lamparter <equinox@diac24.net>
Configuration menu - View commit details
-
Copy full SHA for b2b7ade - Browse repository at this point
Copy the full SHA b2b7adeView commit details -
Fix bool defaults for non-first bit
Fixes: #58 Signed-off-by: David Lamparter <equinox@diac24.net>
Configuration menu - View commit details
-
Copy full SHA for eb1839e - Browse repository at this point
Copy the full SHA eb1839eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79d6035 - Browse repository at this point
Copy the full SHA 79d6035View commit details -
Signed-off-by: David Lamparter <equinox@diac24.net>
Configuration menu - View commit details
-
Copy full SHA for 632f0d7 - Browse repository at this point
Copy the full SHA 632f0d7View commit details