c-capnproto/compiler
Curt Brune 40d689516a 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>
2022-10-14 09:17:09 -07:00
..
c++.capnp compiler: update schemas from v0.5.2 2015-08-04 11:55:23 -07:00
c++.capnp.c Silence warning on unused struct parameter 2017-05-19 09:40:37 +02:00
c++.capnp.h Silence GCC unnamed union warning 2017-05-19 09:35:09 +02:00
c.capnp Add an annotation to typedef structs and enums. 2021-01-02 09:28:31 +08:00
c.capnp.c Most .capnp files use "/c.capnp".fieldgetset. Recompile from schema files. 2017-03-26 23:40:55 +01:00
c.capnp.h Most .capnp files use "/c.capnp".fieldgetset. Recompile from schema files. 2017-03-26 23:40:55 +01:00
capnpc-c.c add 'const' keyword to generated constants 2022-10-14 09:17:09 -07:00
schema-test.cpp add approprate per-file license headers 2016-02-28 12:47:42 +01:00
schema.capnp Most .capnp files use "/c.capnp".fieldgetset. Recompile from schema files. 2017-03-26 23:40:55 +01:00
schema.capnp.c Silence warning on unused struct parameter 2017-05-19 09:40:37 +02:00
schema.capnp.h Silence GCC unnamed union warning 2017-05-19 09:35:09 +02:00
str.c add approprate per-file license headers 2016-02-28 12:47:42 +01:00
str.h compiler/str.h: include stdarg.h for va_list 2019-04-22 20:58:49 +01:00
test.capnp Most .capnp files use "/c.capnp".fieldgetset. Recompile from schema files. 2017-03-26 23:40:55 +01:00
test.capnp.c Silence warning on unused struct parameter 2017-05-19 09:40:37 +02:00
test.capnp.h Silence empty struct warning 2017-05-19 09:45:01 +02:00
update-notes.md compiler: notes on updating from upstream 2015-08-04 12:04:49 -07:00