Commit graph

7 commits

Author SHA1 Message Date
Joel Carlson
9053ebe6ee 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>
2019-04-22 20:58:49 +01:00
David Lamparter
7ecadefbfd compiler: fix remaining warnings 2016-03-19 00:39:30 +01:00
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
James McKaskill
9f75d0c7a6 Update compiler to support groups/unions 2013-09-12 13:49:19 -04:00
James McKaskill
2eb6628ae4 add support for default values 2013-05-12 00:59:47 -04:00
James McKaskill
8db142a9a0 subcompiler now outputs struct defns, get, set, read, write funcs 2013-05-08 23:04:06 -04:00