Skip to content

Commit c45e5bc

Browse files
committed
Release version 0.4.1
1 parent c3cb743 commit c45e5bc

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Change Log
22

3-
## [0.4.1-pre]
3+
## [0.4.1]
44
- Test for `posix_memalign` on GCC platforms and fix fallback
55
`aligned_alloc`.
66
- Fix JSON parser handling of empty objects and tables.
7-
- Fix JSON parser #17 - some fields would not be accepted as valid.
8-
- Fix #21, rare uncompilable doc comment in schema.
9-
- Fix #30, avoid crash on certain table parser error cases.
7+
- Fix JSON parser - some fields would not be accepted as valid (#17).
8+
- Fix rare uncompilable doc comment in schema (#21).
9+
- Avoid crash on certain table parser error cases (#30).
1010
- Add support for scan similar to find in reader API, but for O(N)
1111
unsorted search, or search by a secondary key, and in sub-ranges.
1212
- Optionally, and by default, allow scan by any field (#29), not just keys.

include/flatcc/flatcc_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#define FLATCC_VERSION_TEXT "0.4.1-pre"
1+
#define FLATCC_VERSION_TEXT "0.4.1"
22
#define FLATCC_VERSION_MAJOR 0
33
#define FLATCC_VERSION_MINOR 4
44
#define FLATCC_VERSION_PATCH 1
55
/* 1 or 0 */
6-
#define FLATCC_VERSION_RELEASED 0
6+
#define FLATCC_VERSION_RELEASED 1

include/flatcc/reflection/flatbuffers_common_builder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef FLATBUFFERS_COMMON_BUILDER_H
22
#define FLATBUFFERS_COMMON_BUILDER_H
33

4-
/* Generated by flatcc 0.4.1-pre FlatBuffers schema compiler for C by dvide.com */
4+
/* Generated by flatcc 0.4.1 FlatBuffers schema compiler for C by dvide.com */
55

66
/* Common FlatBuffers build functionality for C. */
77

include/flatcc/reflection/flatbuffers_common_reader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef FLATBUFFERS_COMMON_READER_H
22
#define FLATBUFFERS_COMMON_READER_H
33

4-
/* Generated by flatcc 0.4.1-pre FlatBuffers schema compiler for C by dvide.com */
4+
/* Generated by flatcc 0.4.1 FlatBuffers schema compiler for C by dvide.com */
55

66
/* Common FlatBuffers read functionality for C. */
77

include/flatcc/reflection/reflection_builder.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef REFLECTION_BUILDER_H
22
#define REFLECTION_BUILDER_H
33

4-
/* Generated by flatcc 0.4.1-pre FlatBuffers schema compiler for C by dvide.com */
4+
/* Generated by flatcc 0.4.1 FlatBuffers schema compiler for C by dvide.com */
55

66
#ifndef REFLECTION_READER_H
77
#include "reflection_reader.h"
@@ -20,7 +20,7 @@
2020
#define __reflection_BaseType_call_args , v0
2121
__flatbuffers_build_scalar(flatbuffers_, reflection_BaseType, reflection_BaseType_enum_t)
2222

23-
static const flatbuffers_voffset_t __reflection_Type_required[] = {0 };
23+
static const flatbuffers_voffset_t __reflection_Type_required[] = { 0 };
2424
__flatbuffers_build_table(flatbuffers_, reflection_Type, 3)
2525
static const flatbuffers_voffset_t __reflection_EnumVal_required[] = { 0, 0 };
2626
__flatbuffers_build_table(flatbuffers_, reflection_EnumVal, 3)
@@ -59,9 +59,9 @@ static inline reflection_Object_ref_t reflection_Object_create(flatbuffers_build
5959
v0, v1, v2, v3, v4
6060
static inline reflection_Schema_ref_t reflection_Schema_create(flatbuffers_builder_t *B __reflection_Schema_formal_args);
6161

62-
__flatbuffers_build_scalar_field(0, flatbuffers_, reflection_Type_base_type, reflection_BaseType, reflection_BaseType_enum_t, 1, 1, 0)
63-
__flatbuffers_build_scalar_field(1, flatbuffers_, reflection_Type_element, reflection_BaseType, reflection_BaseType_enum_t, 1, 1, 0)
64-
__flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Type_index, flatbuffers_int32, int32_t, 4, 4, -1)
62+
__flatbuffers_build_scalar_field(0, flatbuffers_, reflection_Type_base_type, reflection_BaseType, reflection_BaseType_enum_t, 1, 1, INT8_C(0))
63+
__flatbuffers_build_scalar_field(1, flatbuffers_, reflection_Type_element, reflection_BaseType, reflection_BaseType_enum_t, 1, 1, INT8_C(0))
64+
__flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Type_index, flatbuffers_int32, int32_t, 4, 4, INT32_C(-1))
6565

6666
static inline reflection_Type_ref_t reflection_Type_create(flatbuffers_builder_t *B __reflection_Type_formal_args)
6767
{
@@ -76,7 +76,7 @@ static inline reflection_Type_ref_t reflection_Type_create(flatbuffers_builder_t
7676
__flatbuffers_build_table_prolog(flatbuffers_, reflection_Type, reflection_Type_identifier, reflection_Type_type_identifier)
7777

7878
__flatbuffers_build_string_field(0, flatbuffers_, reflection_EnumVal_name)
79-
__flatbuffers_build_scalar_field(1, flatbuffers_, reflection_EnumVal_value, flatbuffers_int64, int64_t, 8, 8, 0)
79+
__flatbuffers_build_scalar_field(1, flatbuffers_, reflection_EnumVal_value, flatbuffers_int64, int64_t, 8, 8, INT64_C(0))
8080
__flatbuffers_build_table_field(2, flatbuffers_, reflection_EnumVal_object, reflection_Object)
8181

8282
static inline reflection_EnumVal_ref_t reflection_EnumVal_create(flatbuffers_builder_t *B __reflection_EnumVal_formal_args)
@@ -94,7 +94,7 @@ __flatbuffers_build_table_prolog(flatbuffers_, reflection_EnumVal, reflection_En
9494
__flatbuffers_build_string_field(0, flatbuffers_, reflection_Enum_name)
9595
/* vector has keyed elements */
9696
__flatbuffers_build_table_vector_field(1, flatbuffers_, reflection_Enum_values, reflection_EnumVal)
97-
__flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Enum_is_union, flatbuffers_bool, flatbuffers_bool_t, 1, 1, 0)
97+
__flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Enum_is_union, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0))
9898
__flatbuffers_build_table_field(3, flatbuffers_, reflection_Enum_underlying_type, reflection_Type)
9999

100100
static inline reflection_Enum_ref_t reflection_Enum_create(flatbuffers_builder_t *B __reflection_Enum_formal_args)
@@ -112,13 +112,13 @@ __flatbuffers_build_table_prolog(flatbuffers_, reflection_Enum, reflection_Enum_
112112

113113
__flatbuffers_build_string_field(0, flatbuffers_, reflection_Field_name)
114114
__flatbuffers_build_table_field(1, flatbuffers_, reflection_Field_type, reflection_Type)
115-
__flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Field_id, flatbuffers_uint16, uint16_t, 2, 2, 0)
116-
__flatbuffers_build_scalar_field(3, flatbuffers_, reflection_Field_offset, flatbuffers_uint16, uint16_t, 2, 2, 0)
117-
__flatbuffers_build_scalar_field(4, flatbuffers_, reflection_Field_default_integer, flatbuffers_int64, int64_t, 8, 8, 0)
118-
__flatbuffers_build_scalar_field(5, flatbuffers_, reflection_Field_default_real, flatbuffers_double, double, 8, 8, 0)
119-
__flatbuffers_build_scalar_field(6, flatbuffers_, reflection_Field_deprecated, flatbuffers_bool, flatbuffers_bool_t, 1, 1, 0)
120-
__flatbuffers_build_scalar_field(7, flatbuffers_, reflection_Field_required, flatbuffers_bool, flatbuffers_bool_t, 1, 1, 0)
121-
__flatbuffers_build_scalar_field(8, flatbuffers_, reflection_Field_key, flatbuffers_bool, flatbuffers_bool_t, 1, 1, 0)
115+
__flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Field_id, flatbuffers_uint16, uint16_t, 2, 2, UINT16_C(0))
116+
__flatbuffers_build_scalar_field(3, flatbuffers_, reflection_Field_offset, flatbuffers_uint16, uint16_t, 2, 2, UINT16_C(0))
117+
__flatbuffers_build_scalar_field(4, flatbuffers_, reflection_Field_default_integer, flatbuffers_int64, int64_t, 8, 8, INT64_C(0))
118+
__flatbuffers_build_scalar_field(5, flatbuffers_, reflection_Field_default_real, flatbuffers_double, double, 8, 8, 0.000000)
119+
__flatbuffers_build_scalar_field(6, flatbuffers_, reflection_Field_deprecated, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0))
120+
__flatbuffers_build_scalar_field(7, flatbuffers_, reflection_Field_required, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0))
121+
__flatbuffers_build_scalar_field(8, flatbuffers_, reflection_Field_key, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0))
122122

123123
static inline reflection_Field_ref_t reflection_Field_create(flatbuffers_builder_t *B __reflection_Field_formal_args)
124124
{
@@ -141,9 +141,9 @@ __flatbuffers_build_table_prolog(flatbuffers_, reflection_Field, reflection_Fiel
141141
__flatbuffers_build_string_field(0, flatbuffers_, reflection_Object_name)
142142
/* vector has keyed elements */
143143
__flatbuffers_build_table_vector_field(1, flatbuffers_, reflection_Object_fields, reflection_Field)
144-
__flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Object_is_struct, flatbuffers_bool, flatbuffers_bool_t, 1, 1, 0)
145-
__flatbuffers_build_scalar_field(3, flatbuffers_, reflection_Object_minalign, flatbuffers_int32, int32_t, 4, 4, 0)
146-
__flatbuffers_build_scalar_field(4, flatbuffers_, reflection_Object_bytesize, flatbuffers_int32, int32_t, 4, 4, 0)
144+
__flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Object_is_struct, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0))
145+
__flatbuffers_build_scalar_field(3, flatbuffers_, reflection_Object_minalign, flatbuffers_int32, int32_t, 4, 4, INT32_C(0))
146+
__flatbuffers_build_scalar_field(4, flatbuffers_, reflection_Object_bytesize, flatbuffers_int32, int32_t, 4, 4, INT32_C(0))
147147

148148
static inline reflection_Object_ref_t reflection_Object_create(flatbuffers_builder_t *B __reflection_Object_formal_args)
149149
{

include/flatcc/reflection/reflection_reader.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef REFLECTION_READER_H
22
#define REFLECTION_READER_H
33

4-
/* Generated by flatcc 0.4.1-pre FlatBuffers schema compiler for C by dvide.com */
4+
/* Generated by flatcc 0.4.1 FlatBuffers schema compiler for C by dvide.com */
55

66
#ifndef FLATBUFFERS_COMMON_READER_H
77
#include "flatbuffers_common_reader.h"
@@ -96,8 +96,8 @@ static inline reflection_Type_table_t reflection_Type_vec_at(reflection_Type_vec
9696
__flatbuffers_offset_vec_at(reflection_Type_table_t, vec, i, 0)
9797
__flatbuffers_table_as_root(reflection_Type)
9898

99-
__flatbuffers_define_scalar_field(0, reflection_Type, base_type, reflection_BaseType, reflection_BaseType_enum_t, (0))
100-
__flatbuffers_define_scalar_field(1, reflection_Type, element, reflection_BaseType, reflection_BaseType_enum_t, (0))
99+
__flatbuffers_define_scalar_field(0, reflection_Type, base_type, reflection_BaseType, reflection_BaseType_enum_t, INT8_C(0))
100+
__flatbuffers_define_scalar_field(1, reflection_Type, element, reflection_BaseType, reflection_BaseType_enum_t, INT8_C(0))
101101
__flatbuffers_define_scalar_field(2, reflection_Type, index, flatbuffers_int32, int32_t, INT32_C(-1))
102102

103103
struct reflection_EnumVal_table { uint8_t unused__; };

include/flatcc/reflection/reflection_verifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef REFLECTION_VERIFIER_H
22
#define REFLECTION_VERIFIER_H
33

4-
/* Generated by flatcc 0.4.1-pre FlatBuffers schema compiler for C by dvide.com */
4+
/* Generated by flatcc 0.4.1 FlatBuffers schema compiler for C by dvide.com */
55

66
#ifndef REFLECTION_READER_H
77
#include "reflection_reader.h"

0 commit comments

Comments
 (0)