summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Wouter van Oortmerssen [Wed, 9 Jul 2014 00:14:02 +0000 (17:14 -0700)]
Fixed vectors reserving wrong amount of space in Java.
In the generated code, the type of the vector was used for
the element size, instead of the vector element type.
Change-Id: Ie16d5221a61474365292c948fd3af99e2a7716c7
Tested: on Windows.
Wouter van Oortmerssen [Tue, 8 Jul 2014 23:35:14 +0000 (16:35 -0700)]
Added a "strict JSON" mode to the text generator and compiler
This will add quotes around field names, as required by the official
standard. By default it will leave quotes out, as it is more readable,
more compact, and is accepted by almost all JSON parsers.
The -S switch to flatc turns on strict mode.
As per rfc 7159.
Change-Id: Ibabe9c8162c47339d00ec581d18721a2ba40c6d0
Tested: on Windows.
Wouter van Oortmerssen [Tue, 8 Jul 2014 00:34:23 +0000 (17:34 -0700)]
Added functionality to assign field ids manually in a schema
New attribute:
- `id: n` (on a table field): manually set the field identifier to `n`.
If you use this attribute, you must use it on ALL fields of this table,
and the numbers must be a contiguous range from 0 onwards.
Additionally, since a union type effectively adds two fields, its
id must be that of the second field (the first field is the type
field and not explicitly declared in the schema).
For example, if the last field before the union field had id 6,
the union field should have id 8, and the unions type field will
implicitly be 7.
IDs allow the fields to be placed in any order in the schema.
When a new field is added to the schema is must use the next available ID.
Change-Id: I8690f105f3a2d31fdcb75a4fab4130692b12c62f
Tested: on Windows
Wouter van Oortmerssen [Wed, 2 Jul 2014 19:01:21 +0000 (12:01 -0700)]
Made declaring the underlying type of an enum mandatory.
This is a breaking change, anyone having schema files with enums
that do not specify a type will get a specialized error:
must specify the underlying integer type for this
enum (e.g. ': short', which was the default).
All of the samples and docs already had a type specified,
so hopefully this will affect very few people.
Bug:
15777205
Change-Id: I9b8d7c0827867f7efb6c217346db7e402695eff0
Tested: on Windows
Wouter van Oortmerssen [Wed, 2 Jul 2014 18:19:02 +0000 (11:19 -0700)]
Fixed helper function CreateVectorOfStructs calling wrong variant.
Change-Id: I4fd2a309276590227921ede467503f56b65ac689
Tested: on Windows and Linux
Wouter van Oortmerssen [Wed, 2 Jul 2014 17:32:32 +0000 (10:32 -0700)]
Fixed flatc not stripping the path from the base filename.
This caused two bugs when used with a path: not being able to save
the generated files, and preprocessor defines with / characters in
them.
Bug:
15676771
Tested: on Windows
Change-Id: I62a3c45d22e2545fdaad83728d83a42a6efa37f9
Wouter van Oortmerssen [Wed, 2 Jul 2014 00:56:12 +0000 (17:56 -0700)]
Fixed a bugs in the Java runtime that could cause an index out of bounds exception.
Tested: on Windows.
Change-Id: I0d4cdafc21690eb9a509ba31f21e80dacfb602ff
Wouter van Oortmerssen [Mon, 30 Jun 2014 22:56:31 +0000 (15:56 -0700)]
Switched VS build to -W4, and fixed all resulting warnings.
Change-Id: I654217cbd01a3a449503d95753e19b672ec7ec23
Tested: on Windows, Linux
Wouter van Oortmerssen [Fri, 27 Jun 2014 23:44:53 +0000 (16:44 -0700)]
Add buffer verification functionality to FlatBuffers
Bug:
15732628
Change-Id: I0b7cb65982d6b8957d5a899cca7d2b5d2ef53206
Tested: On Windows, OS X and Linux
Wouter van Oortmerssen [Mon, 23 Jun 2014 23:42:04 +0000 (16:42 -0700)]
Generated C++ headers now have include guards.
Bug:
15700355
Change-Id: Iceccb5b344e394e399092ffaa81f9cad2f0418ab
Tested: on Windows
Wouter van Oortmerssen [Mon, 23 Jun 2014 23:13:20 +0000 (23:13 +0000)]
Merge "license is a comment, not an echo" into ub-games-master
Wouter van Oortmerssen [Mon, 23 Jun 2014 23:13:09 +0000 (23:13 +0000)]
Merge "show absolute path to user when aborting" into ub-games-master
Wouter van Oortmerssen [Mon, 23 Jun 2014 23:12:57 +0000 (23:12 +0000)]
Merge "sh script for JavaTest" into ub-games-master
Wouter van Oortmerssen [Mon, 23 Jun 2014 21:14:31 +0000 (14:14 -0700)]
JSON text output now optionally doesn't output linefeeds either.
Change-Id: Iedac80ee00b27a97c21c7b4ac7c9792e5bafbcc8
Tested: On Windows
Wouter van Oortmerssen [Mon, 23 Jun 2014 20:33:34 +0000 (13:33 -0700)]
Doc clarifications (Java vectors, test working dir, benchmark fix).
Change-Id: If8cc05669d82df892e1d4e11f7fbbd68b2dc05bf
rw [Mon, 23 Jun 2014 20:37:32 +0000 (13:37 -0700)]
license is a comment, not an echo
Wouter van Oortmerssen [Mon, 23 Jun 2014 18:34:19 +0000 (11:34 -0700)]
force_align was applied after struct size was set.
Change-Id: I9a35afac41f27dfdbc5e793c41ec768732cdc2a1
Tested: on Windows.
Wouter van Oortmerssen [Mon, 23 Jun 2014 17:55:04 +0000 (10:55 -0700)]
Fixed bug that caused creating 0-length arrays to crash
Change-Id: Ibb0da5b57a2f63804c071863d8c60b845e0aece7
Tested: on Windows
rw [Fri, 20 Jun 2014 23:51:32 +0000 (16:51 -0700)]
show absolute path to user when aborting
rw [Fri, 20 Jun 2014 23:21:49 +0000 (16:21 -0700)]
sh script for JavaTest
Wouter van Oortmerssen [Thu, 19 Jun 2014 22:01:45 +0000 (22:01 +0000)]
Merge "Fixed various compiler warnings (most related to a 64bit size_t)." into ub-games-master
Wouter van Oortmerssen [Thu, 19 Jun 2014 18:37:54 +0000 (11:37 -0700)]
Fixed various compiler warnings (most related to a 64bit size_t).
Change-Id: Ic2e0565ebc5243fc0be780bfbcb221d5170569fd
Tested: on VS2010
Wouter van Oortmerssen [Thu, 19 Jun 2014 18:27:07 +0000 (11:27 -0700)]
Added 64bit configuration to VS project, and fixed dangling project references.
Change-Id: I7a0713e3357fc421fcaa6771c9440f2b2f5f58f6
Tested: with VS2010
Barak Amar [Tue, 17 Jun 2014 19:31:25 +0000 (22:31 +0300)]
Fix compilation with VS 2013 missing header
Wouter van Oortmerssen [Wed, 18 Jun 2014 00:48:06 +0000 (17:48 -0700)]
Documentation changes to clarify FlatBuffer internals.
Change-Id: I3759a07385f0d8d172ca2f88ac1759b71bee5a6a
Wouter van Oortmerssen [Wed, 18 Jun 2014 00:25:57 +0000 (17:25 -0700)]
Fixed a bug in the Java code generation that would generate the wrong identifier in some cases.
Also added a safety check for buffers growing past 2 gigabytes.
Change-Id: I2bca7159f606cf1c08c4391e88ef9b4c8363be06
Tested: With the Java sdk.
Wouter van Oortmerssen [Tue, 17 Jun 2014 18:10:53 +0000 (11:10 -0700)]
Fixed the web pages not scrolling by regenerating with doxygen.
Change-Id: Id1269f85ec2f522c8d4b0d05f84d050b42d70d60
Tested: on Android
Wouter van Oortmerssen [Fri, 13 Jun 2014 18:11:54 +0000 (11:11 -0700)]
Removed all unnecessary files from the Xcode project
Change-Id: I60c20e184f51906e6e2fb3880d593584aac0e2fb
Tested: on OS X
Wouter van Oortmerssen [Thu, 12 Jun 2014 18:32:55 +0000 (11:32 -0700)]
Removed two user-specific files from the Xcode project
Tested: on OS X.
Change-Id: I19950092140288916651f8c956d05e8c7879c717
Wouter van Oortmerssen [Wed, 11 Jun 2014 20:53:32 +0000 (13:53 -0700)]
Added project files for Visual Studio and Xcode.
Change-Id: Ife9775fdedc9e084c1e826ef13dff06a1b1b2ec2
Tested: on Windows and OS X.
Wouter van Oortmerssen [Tue, 28 Jan 2014 00:52:49 +0000 (16:52 -0800)]
Initial commit of the FlatBuffers code.
Change-Id: I4c9f0f722490b374257adb3fec63e44ae93da920
Tested: using VS2010 / Xcode / gcc on Linux.
Baligh Uddin [Tue, 28 Jan 2014 00:13:27 +0000 (16:13 -0800)]
Initial empty repository