Commit 3a4203b7 authored by Kenton Varda's avatar Kenton Varda

Merge branch 'master' of github.com:kentonv/capnproto

Conflicts:
	c++/src/capnp/generated-header-support.h
parents 44a56220 74e7a1a0
...@@ -293,8 +293,6 @@ capnpc_capnp_SOURCES = src/capnp/compiler/capnpc-capnp.c++ ...@@ -293,8 +293,6 @@ capnpc_capnp_SOURCES = src/capnp/compiler/capnpc-capnp.c++
capnpc_c___LDADD = libcapnp.la libkj.la $(PTHREAD_LIBS) capnpc_c___LDADD = libcapnp.la libkj.la $(PTHREAD_LIBS)
capnpc_c___SOURCES = src/capnp/compiler/capnpc-c++.c++ capnpc_c___SOURCES = src/capnp/compiler/capnpc-c++.c++
endif !LITE_MODE
# Symlink capnpc -> capnp. The capnp binary will behave like the old capnpc # Symlink capnpc -> capnp. The capnp binary will behave like the old capnpc
# binary (i.e. like "capnp compile") when invoked via this symlink. # binary (i.e. like "capnp compile") when invoked via this symlink.
# #
...@@ -308,6 +306,13 @@ install-exec-hook: ...@@ -308,6 +306,13 @@ install-exec-hook:
uninstall-hook: uninstall-hook:
rm -f $(DESTDIR)$(bindir)/capnpc rm -f $(DESTDIR)$(bindir)/capnpc
else LITE_MODE
install-exec-hook:
ldconfig < /dev/null > /dev/null 2>&1 || true
endif LITE_MODE
# Source files intentionally not included in the dist at this time: # Source files intentionally not included in the dist at this time:
# src/capnp/serialize-snappy* # src/capnp/serialize-snappy*
# src/capnp/benchmark/... # src/capnp/benchmark/...
......
...@@ -468,7 +468,7 @@ inline constexpr uint sizeInWords() { ...@@ -468,7 +468,7 @@ inline constexpr uint sizeInWords() {
template <> struct EnumInfo<type##_##id> { \ template <> struct EnumInfo<type##_##id> { \
struct IsEnum; \ struct IsEnum; \
static constexpr uint64_t typeId = 0x##id; \ static constexpr uint64_t typeId = 0x##id; \
static inline ::capnp::word const* const encodedSchema() { return bp_##id; } \ static inline ::capnp::word const* encodedSchema() { return bp_##id; } \
} }
#define CAPNP_DEFINE_ENUM(type, id) \ #define CAPNP_DEFINE_ENUM(type, id) \
constexpr uint64_t EnumInfo<type>::typeId constexpr uint64_t EnumInfo<type>::typeId
...@@ -480,7 +480,7 @@ inline constexpr uint sizeInWords() { ...@@ -480,7 +480,7 @@ inline constexpr uint sizeInWords() {
static constexpr ::capnp::_::StructSize structSize = ::capnp::_::StructSize( \ static constexpr ::capnp::_::StructSize structSize = ::capnp::_::StructSize( \
dataWordSize * ::capnp::WORDS, pointerCount * ::capnp::POINTERS, \ dataWordSize * ::capnp::WORDS, pointerCount * ::capnp::POINTERS, \
::capnp::_::FieldSize::preferredElementEncoding); \ ::capnp::_::FieldSize::preferredElementEncoding); \
static inline ::capnp::word const* const encodedSchema() { return ::capnp::schemas::bp_##id; } static inline ::capnp::word const* encodedSchema() { return ::capnp::schemas::bp_##id; }
#define CAPNP_DECLARE_STRUCT(id, dataWordSize, pointerCount, preferredElementEncoding) \ #define CAPNP_DECLARE_STRUCT(id, dataWordSize, pointerCount, preferredElementEncoding) \
CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount, preferredElementEncoding) \ CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount, preferredElementEncoding) \
} }
...@@ -513,7 +513,7 @@ inline constexpr uint sizeInWords() { ...@@ -513,7 +513,7 @@ inline constexpr uint sizeInWords() {
template <> struct EnumInfo<type##_##id> { \ template <> struct EnumInfo<type##_##id> { \
struct IsEnum; \ struct IsEnum; \
static constexpr uint64_t typeId = 0x##id; \ static constexpr uint64_t typeId = 0x##id; \
static inline ::capnp::word const* const encodedSchema() { return bp_##id; } \ static inline ::capnp::word const* encodedSchema() { return bp_##id; } \
static constexpr ::capnp::_::RawSchema const* schema = &s_##id; \ static constexpr ::capnp::_::RawSchema const* schema = &s_##id; \
} }
#define CAPNP_DEFINE_ENUM(type, id) \ #define CAPNP_DEFINE_ENUM(type, id) \
...@@ -527,7 +527,7 @@ inline constexpr uint sizeInWords() { ...@@ -527,7 +527,7 @@ inline constexpr uint sizeInWords() {
static constexpr ::capnp::Kind kind = ::capnp::Kind::STRUCT; \ static constexpr ::capnp::Kind kind = ::capnp::Kind::STRUCT; \
static constexpr ::capnp::_::StructSize structSize = ::capnp::_::StructSize( \ static constexpr ::capnp::_::StructSize structSize = ::capnp::_::StructSize( \
dataWordSize * ::capnp::WORDS, pointerCount * ::capnp::POINTERS); \ dataWordSize * ::capnp::WORDS, pointerCount * ::capnp::POINTERS); \
static inline ::capnp::word const* const encodedSchema() { return ::capnp::schemas::bp_##id; } \ static inline ::capnp::word const* encodedSchema() { return ::capnp::schemas::bp_##id; } \
static constexpr ::capnp::_::RawSchema const* schema = &::capnp::schemas::s_##id; static constexpr ::capnp::_::RawSchema const* schema = &::capnp::schemas::s_##id;
#define CAPNP_DECLARE_STRUCT(id, dataWordSize, pointerCount) \ #define CAPNP_DECLARE_STRUCT(id, dataWordSize, pointerCount) \
CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount) \ CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount) \
...@@ -573,7 +573,7 @@ inline constexpr uint sizeInWords() { ...@@ -573,7 +573,7 @@ inline constexpr uint sizeInWords() {
struct IsInterface; \ struct IsInterface; \
static constexpr uint64_t typeId = 0x##id; \ static constexpr uint64_t typeId = 0x##id; \
static constexpr ::capnp::Kind kind = ::capnp::Kind::INTERFACE; \ static constexpr ::capnp::Kind kind = ::capnp::Kind::INTERFACE; \
static inline ::capnp::word const* const encodedSchema() { return ::capnp::schemas::bp_##id; } \ static inline ::capnp::word const* encodedSchema() { return ::capnp::schemas::bp_##id; } \
static constexpr ::capnp::_::RawSchema const* schema = &::capnp::schemas::s_##id; static constexpr ::capnp::_::RawSchema const* schema = &::capnp::schemas::s_##id;
#define CAPNP_DECLARE_INTERFACE(id) \ #define CAPNP_DECLARE_INTERFACE(id) \
CAPNP_DECLARE_INTERFACE_HEADER(id) \ CAPNP_DECLARE_INTERFACE_HEADER(id) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment