Skip to content

Commit

Permalink
Release 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelfj committed Aug 17, 2019
1 parent 08fc988 commit 8e747e9
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 20 deletions.
32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ executable also handle optional json parsing or printing in less than 2 us for a
* [Poll on Meson Build](#poll-on-meson-build)
* [Reporting Bugs](#reporting-bugs)
* [Status](#status)
* [Main features supported as of 0.5.3](#main-features-supported-as-of-053)
* [Main features supported as of 0.6.0](#main-features-supported-as-of-060)
* [Supported platforms (CI tested)](#supported-platforms-ci-tested)
* [Platforms reported to work by users](#platforms-reported-to-work-by-users)
* [Portability](#portability)
Expand Down Expand Up @@ -288,15 +288,23 @@ fi

## Status

Release 0.6.0 (not released) introduces a "primary" attribute to be used
together with a key attribute to chose default key for finding and
sorting. If primary is absent, the key with the lowest id becomes
primary. Tables and vectors can now be sorted recursively on primary
keys. BREAKING: previously the first listed, not the lowest id, would be
the primary key. Also introduces fixed size scalar arrays in struct fields
(struct and enum elements are not supported). Structs support fixed
size array fields, including char arrays. Empty structs never fully worked
and are no longer supported, they are also no longer supported by flatc.
Release 0.6.0 introduces a "primary" attribute to be used together with
a key attribute to chose default key for finding and sorting. If primary
is absent, the key with the lowest id becomes primary. Tables and
vectors can now be sorted recursively on primary keys. BREAKING:
previously the first listed, not the lowest id, would be the primary
key. Also introduces fixed size scalar arrays in struct fields (struct
and enum elements are not supported). Structs support fixed size array
fields, including char arrays. Empty structs never fully worked and are
no longer supported, they are also no longer supported by flatc.
NOTE: char arrays are not currently part of Googles flatc compiler -
int8 arrays may be used instead. BREAKING: empty structs are no longer
supported - they are also not valid in Googles flatc compiler. See
CHANGELOG for additional changes. DEPRECATED: low-level `cast_to/from`
from functions in `flatcc_accessors.h` will be removed in favor of
`read/write_from/to` because the cast interface breaks float conversion
on some uncommon platforms. This should not affect normal use but
remains valid in this release.

Release 0.5.3 inlcudes various bug fixes (see changelog) and one
breaking but likely low impact change: BREAKING: 0.5.3 changes behavour
Expand Down Expand Up @@ -327,7 +335,7 @@ low-level union interface so the terms { type, value } are used
consistently over { type, member } and { types, members }.


### Main features supported as of 0.5.3
### Main features supported as of 0.6.0

- generated FlatBuffers reader and builder headers for C
- generated FlatBuffers verifier headers for C
Expand All @@ -350,6 +358,8 @@ consistently over { type, member } and { types, members }.
adding support for union vectors and mixed type unions of strings,
structs, and tables, and type aliases for uint8, ..., float64.
- base64(url) encoded binary data in JSON.
- sort fields by primary key (as of 0.6.0)
- char arrays (as of 0.6.0)

There are no plans to make frequent updates once the project becomes
stable, but input from the community will always be welcome and included
Expand Down
4 changes: 2 additions & 2 deletions include/flatcc/flatcc_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
extern "C" {
#endif

#define FLATCC_VERSION_TEXT "0.6.0-pre"
#define FLATCC_VERSION_TEXT "0.6.0"
#define FLATCC_VERSION_MAJOR 0
#define FLATCC_VERSION_MINOR 6
#define FLATCC_VERSION_PATCH 0
/* 1 or 0 */
#define FLATCC_VERSION_RELEASED 0
#define FLATCC_VERSION_RELEASED 1

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion include/flatcc/reflection/flatbuffers_common_builder.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef FLATBUFFERS_COMMON_BUILDER_H
#define FLATBUFFERS_COMMON_BUILDER_H

/* Generated by flatcc 0.6.0-pre FlatBuffers schema compiler for C by dvide.com */
/* Generated by flatcc 0.6.0 FlatBuffers schema compiler for C by dvide.com */

/* Common FlatBuffers build functionality for C. */

Expand Down
6 changes: 3 additions & 3 deletions include/flatcc/reflection/flatbuffers_common_reader.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef FLATBUFFERS_COMMON_READER_H
#define FLATBUFFERS_COMMON_READER_H

/* Generated by flatcc 0.6.0-pre FlatBuffers schema compiler for C by dvide.com */
/* Generated by flatcc 0.6.0 FlatBuffers schema compiler for C by dvide.com */

/* Common FlatBuffers read functionality for C. */

Expand Down Expand Up @@ -500,14 +500,14 @@ static inline T N ## _ ## NK ## _get(N ## _struct_t t__tmp, size_t i__tmp)\
return __flatbuffers_read_scalar(TK, &(t__tmp->NK[i__tmp])); }\
static inline const T *N ## _ ## NK ## _get_ptr(N ## _struct_t t__tmp)\
{ return t__tmp ? t__tmp->NK : 0; }\
static inline size_t N ## _ ## NK ## _get_len() { return L; }\
static inline size_t N ## _ ## NK ## _get_len(void) { return L; }\
static inline T N ## _ ## NK (N ## _struct_t t__tmp, size_t i__tmp)\
{ return N ## _ ## NK ## _get(t__tmp, i__tmp); }
#define __flatbuffers_define_struct_struct_fixed_array_field(N, NK, T, L)\
static inline T N ## _ ## NK ## _get(N ## _struct_t t__tmp, size_t i__tmp)\
{ if (!t__tmp || i__tmp >= L) return 0; return t__tmp->NK + i__tmp; }static inline T N ## _ ## NK ## _get_ptr(N ## _struct_t t__tmp)\
{ return t__tmp ? t__tmp->NK : 0; }\
static inline size_t N ## _ ## NK ## _get_len() { return L; }\
static inline size_t N ## _ ## NK ## _get_len(void) { return L; }\
static inline T N ## _ ## NK(N ## _struct_t t__tmp, size_t i__tmp)\
{ if (!t__tmp || i__tmp >= L) return 0; return t__tmp->NK + i__tmp; }
#define __flatbuffers_define_struct_scalar_field(N, NK, TK, T)\
Expand Down
2 changes: 1 addition & 1 deletion include/flatcc/reflection/reflection_builder.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef REFLECTION_BUILDER_H
#define REFLECTION_BUILDER_H

/* Generated by flatcc 0.6.0-pre FlatBuffers schema compiler for C by dvide.com */
/* Generated by flatcc 0.6.0 FlatBuffers schema compiler for C by dvide.com */

#ifndef REFLECTION_READER_H
#include "reflection_reader.h"
Expand Down
2 changes: 1 addition & 1 deletion include/flatcc/reflection/reflection_reader.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef REFLECTION_READER_H
#define REFLECTION_READER_H

/* Generated by flatcc 0.6.0-pre FlatBuffers schema compiler for C by dvide.com */
/* Generated by flatcc 0.6.0 FlatBuffers schema compiler for C by dvide.com */

#ifndef FLATBUFFERS_COMMON_READER_H
#include "flatbuffers_common_reader.h"
Expand Down
2 changes: 1 addition & 1 deletion include/flatcc/reflection/reflection_verifier.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef REFLECTION_VERIFIER_H
#define REFLECTION_VERIFIER_H

/* Generated by flatcc 0.6.0-pre FlatBuffers schema compiler for C by dvide.com */
/* Generated by flatcc 0.6.0 FlatBuffers schema compiler for C by dvide.com */

#ifndef REFLECTION_READER_H
#include "reflection_reader.h"
Expand Down

0 comments on commit 8e747e9

Please sign in to comment.