Jon Simantov [Wed, 5 Aug 2015 22:45:02 +0000 (15:45 -0700)]
Fix missing break statement in SetAnyValueS case.
Causing SetAnyValueS to treat all scalars as integers.
Change-Id: Ib467b255e7f32a1478180a91e65def31676399eb
Wouter van Oortmerssen [Wed, 5 Aug 2015 20:58:17 +0000 (13:58 -0700)]
Merge pull request #247 from stewartmiles/master
Clarified the use of the deprecated flatc --gen-includes flag.
Wouter van Oortmerssen [Wed, 5 Aug 2015 20:56:31 +0000 (13:56 -0700)]
Changed maximum force_align to match the C++ code generator.
Change-Id: I7df2b0172f5de6f7bdbd8778361794004cd06062
Tested: on Linux.
Stewart Miles [Tue, 4 Aug 2015 18:40:45 +0000 (11:40 -0700)]
Clarified the use of the deprecated flatc --gen-includes flag.
Also, removed the flag from the Android makefile.
Tested:
Verified flatc builds successfully on Linux and regenerated the docs.
Change-Id: I7140daa10b7cb9a29b5ffd63c6b20489e72a5899
Wouter van Oortmerssen [Tue, 4 Aug 2015 00:56:09 +0000 (17:56 -0700)]
Fixed VS project file.
Tested: on Windows.
Wouter van Oortmerssen [Tue, 4 Aug 2015 00:39:47 +0000 (17:39 -0700)]
Fixed AddFlatBuffer using wrong buffer length.
Also made the Xcode project link.
Tested: on OS X.
Wouter van Oortmerssen [Fri, 31 Jul 2015 20:55:53 +0000 (13:55 -0700)]
Reworked reflection.h to be more general.
e.g. support generic reading/writing from structs/vectors etc.
Change-Id: I2eb6e24db088a72da444d5c8df7e506e53d5bc2d
Tested: on Linux.
Bug:
22660837
Wouter van Oortmerssen [Fri, 31 Jul 2015 19:26:23 +0000 (12:26 -0700)]
Fixed small inaccurracies in the schema grammar.
Change-Id: I6e9e66c3d7d67c54617bc892f612b7341bebd7e0
Wouter van Oortmerssen [Thu, 30 Jul 2015 00:49:02 +0000 (17:49 -0700)]
Added support for adding new tables/strings to an existing FlatBuffer.
As part of the reflection support.
Change-Id: Ie0a8e233bca7dffa4cff7e564660035d97ff8902
Tested: on Linux.
Bug:
22637258
Wouter van Oortmerssen [Wed, 29 Jul 2015 18:36:03 +0000 (11:36 -0700)]
Merge pull request #241 from RevenantX/master
[BREAKING CHANGE] Base type safety in C#. Clear FlatBufferBuilder in C#.
RevenantX [Tue, 28 Jul 2015 21:45:26 +0000 (00:45 +0300)]
default in switch.
RevenantX [Tue, 28 Jul 2015 21:40:48 +0000 (00:40 +0300)]
remove unused funciton.
RevenantX [Tue, 28 Jul 2015 21:33:45 +0000 (00:33 +0300)]
Base type safety in C#. Clear FlatBufferBuilder in C#.
Wouter van Oortmerssen [Wed, 22 Jul 2015 20:10:37 +0000 (13:10 -0700)]
Updated documentation to use new css style.
Change-Id: I05e2f8fd06026645a8e5da1703d757ad9de10b4f
Tested: on Linux.
Wouter van Oortmerssen [Wed, 22 Jul 2015 19:35:40 +0000 (12:35 -0700)]
Fixed compile error in older gcc's for trailing comma in enum.
Change-Id: I60f6da32fb2a30557fcf842624f68ca184f65e1f
Tested: on Linux.
Wouter van Oortmerssen [Wed, 22 Jul 2015 19:03:39 +0000 (12:03 -0700)]
Merge pull request #237 from jonsimantov/master
Add optional root table to SetString and ResizeVector, when your Flatbuffer isn't the schema's root type.
Jon Simantov [Wed, 22 Jul 2015 18:46:14 +0000 (11:46 -0700)]
Updated pointer syntax to be consistent in SetString, etc.
Jon Simantov [Wed, 22 Jul 2015 17:56:41 +0000 (10:56 -0700)]
Use Object* for optional root_table in SetString/ResizeVector.
Was previously using table name, but no reason not to just let the
calling code worry about getting the object.
Wouter van Oortmerssen [Wed, 22 Jul 2015 17:02:11 +0000 (10:02 -0700)]
Merge pull request #238 from martell/master
Add a libflatbuffers for other projects to use
Wouter van Oortmerssen [Wed, 22 Jul 2015 16:57:35 +0000 (09:57 -0700)]
Fixed reflection resizing code not checking strings in vectors.
Change-Id: I4081160a8281939ab282d7914ae396276c767882
Tested: on Linux.
Martell Malone [Wed, 22 Jul 2015 12:18:59 +0000 (13:18 +0100)]
Add a libflatbuffers for other projects to use
Jon Simantov [Wed, 22 Jul 2015 09:01:56 +0000 (02:01 -0700)]
Add optional root table name to SetString and ResizeVector.
This allows you to use these functions with a flatbuffer whose root
table type does't correspond with the root table type of the schema.
If you don't specify the table name, it will use the root table from
the schema by default (mimicing the current behavior).
Wouter van Oortmerssen [Mon, 13 Jul 2015 20:27:54 +0000 (13:27 -0700)]
Merge pull request #233 from aeneid/master
fix for parameter name clash in generated structs
aeneid [Mon, 13 Jul 2015 19:58:54 +0000 (22:58 +0300)]
comment update
Maor Itzkovitch [Mon, 13 Jul 2015 19:53:59 +0000 (22:53 +0300)]
applied struct parameter fix to Go and Python generated classes
Wouter van Oortmerssen [Fri, 10 Jul 2015 23:39:47 +0000 (16:39 -0700)]
Fixed type specifiers in the grammar document.
Change-Id: Ia6b976f0eb6a99d710bcd09cb56339580ff69f5b
Maor Itzkovitch [Mon, 13 Jul 2015 17:00:48 +0000 (20:00 +0300)]
builder.put statements now use correct argument names
aeneid [Sun, 12 Jul 2015 19:12:58 +0000 (22:12 +0300)]
comment update
aeneid [Sun, 12 Jul 2015 19:10:57 +0000 (22:10 +0300)]
Passed field name as prefix for nested structs
This pull request should fix #232.
Pass field name instead of struct name as nameprefix for nested structures. Continuously concatenate nameprefix arguments to support deeper nested structures.
Wouter van Oortmerssen [Thu, 9 Jul 2015 00:49:01 +0000 (17:49 -0700)]
A few schema documentation fixes.
Change-Id: I140e1322fc1bfb3ab8012e00d8f3006ee2e7ce95
Wouter van Oortmerssen [Wed, 8 Jul 2015 16:01:17 +0000 (09:01 -0700)]
Merge pull request #230 from aeneid/master
included stdio.h in include/flatbuffers/hash.h
aeneid [Tue, 7 Jul 2015 05:14:00 +0000 (08:14 +0300)]
Update flathash.cpp
aeneid [Tue, 7 Jul 2015 05:13:08 +0000 (08:13 +0300)]
Update hash.h
Wouter van Oortmerssen [Mon, 6 Jul 2015 20:32:44 +0000 (13:32 -0700)]
Merge pull request #227 from evanw/master
Round up allocation size to avoid misalignment (issue #226)
aeneid [Sun, 5 Jul 2015 17:27:20 +0000 (20:27 +0300)]
Merge pull request #1 from aeneid/aeneid-patch-1
added #include <stdio.h>
aeneid [Sun, 5 Jul 2015 16:50:50 +0000 (19:50 +0300)]
added #include <stdio.h>
Evan Wallace [Thu, 2 Jul 2015 21:05:45 +0000 (14:05 -0700)]
Round up allocation size to avoid misalignment (issue #226)
Before this change, requesting a large initial allocation could cause the
backing store to grow to an unaligned size. Since memory inside vector_downward
is relative to the end of the buffer, this then caused all memory in the buffer
to be misaligned and also misaligns any further loads and stores. Misaligned
loads and stores are undefined behavior and don't work in environments such as
emscripten (a JavaScript to C++ compiler).
Jon Simantov [Tue, 30 Jun 2015 17:15:58 +0000 (10:15 -0700)]
Allow customization of flatc cmdline arguments on Android.
On Android builds, set FLATBUFFERS_FLATC_ARGS to change the arguments
passed to the flatc cmdline. Do this in your Android makefile where
you include the flatbuffers include.mk (before or after).
For example FLATBUFFERS_FLATC_ARGS=--gen-mutable
The default value is --gen-includes although since that is deprecated
we could just make the default value blank.
Change-Id: I79fb35f50c3e21bbef18ad40ad3559cb026ffe8e
Wouter van Oortmerssen [Mon, 29 Jun 2015 22:49:13 +0000 (15:49 -0700)]
Made warning settings in Xcode more aggressive.
Tested: on OS X.
Wouter van Oortmerssen [Mon, 29 Jun 2015 22:21:48 +0000 (15:21 -0700)]
Fixed null root_table access in binary schema generation.
Change-Id: Ia2b7abc10bee52814e815befcad6a89697295d8f
Tested: on Linux.
Wouter van Oortmerssen [Tue, 23 Jun 2015 23:06:35 +0000 (16:06 -0700)]
Reflection: generically copy (parts of) FlatBuffers.
Change-Id: Ief3f1507c003079eac90c2bb6c2abd64a80a0a34
Tested: on Linux.
Robert [Mon, 29 Jun 2015 22:10:44 +0000 (18:10 -0400)]
Merge pull request #222 from rw/go-update-panics
Panic when nesting strings. Test panic scenarios.
gwvo [Mon, 29 Jun 2015 17:44:11 +0000 (10:44 -0700)]
Merge pull request #224 from rubber-duck/master
Fixed argument value to correct type
gwvo [Mon, 29 Jun 2015 16:55:38 +0000 (09:55 -0700)]
Merge pull request #223 from belm0/csharp_docs
Java/C-sharp docs: fix typo, clarify parser availability.
Rafael Munitić [Fri, 26 Jun 2015 19:28:39 +0000 (21:28 +0200)]
Fixed argument value to correct type
John Belmonte [Thu, 25 Jun 2015 21:42:41 +0000 (14:42 -0700)]
Java/C-sharp docs: fix typo, clarify parser availability.
rw [Wed, 24 Jun 2015 15:53:44 +0000 (11:53 -0400)]
Panic when nesting strings. Test panic scenarios.
Also add a new `insideObject` boolean to the Builder to track whether an
object is currently being constructed. This fixes a bug with objects
that have zero fields.
Wouter van Oortmerssen [Mon, 22 Jun 2015 17:23:42 +0000 (10:23 -0700)]
Fixed possible crash from reference to non-static variable.
Change-Id: I1842098a7ef461e2e92dd35d79d8ca303e814867
Tested: on Linux.
Wouter van Oortmerssen [Wed, 17 Jun 2015 23:56:50 +0000 (16:56 -0700)]
Small improvements to the C++ API.
Change-Id: Ib30ffbbd140a8b82fe664129fa4e8c55836267f8
Tested: on Linux.
Wouter van Oortmerssen [Wed, 17 Jun 2015 17:27:05 +0000 (10:27 -0700)]
Changed VS flatc test settings to match Linux.
gwvo [Wed, 17 Jun 2015 17:10:50 +0000 (10:10 -0700)]
Merge pull request #217 from amoldeshpande/master
option to generate one file for C#
Amol Deshpande [Tue, 16 Jun 2015 14:23:29 +0000 (07:23 -0700)]
Merge branch 'master' of https://github.com/amoldeshpande/flatbuffers
Amol Deshpande [Tue, 16 Jun 2015 14:16:59 +0000 (07:16 -0700)]
Merge branch 'master' of https://github.com/google/flatbuffers
Conflicts:
src/flatc.cpp
src/idl_gen_general.cpp
amoldeshpande [Tue, 16 Jun 2015 04:00:40 +0000 (21:00 -0700)]
Merge pull request #3 from amoldeshpande/google-master
Merge pull request #2 from amoldeshpande/master
amoldeshpande [Tue, 16 Jun 2015 03:58:48 +0000 (20:58 -0700)]
Merge pull request #2 from amoldeshpande/master
merge
Amol Deshpande [Tue, 16 Jun 2015 03:26:10 +0000 (20:26 -0700)]
merge
Wouter van Oortmerssen [Mon, 15 Jun 2015 22:57:48 +0000 (15:57 -0700)]
Fixed warnings on Windows
Wouter van Oortmerssen [Mon, 15 Jun 2015 22:57:48 +0000 (15:57 -0700)]
Removed unused variable.
Tested: on OS X.
Wouter van Oortmerssen [Thu, 21 May 2015 23:33:29 +0000 (16:33 -0700)]
Initial reflection and resizing functionality.
Tested: on Linux.
Change-Id: I8f7bccf9b1ad87fea788f85e23fa69435758feca
Wouter van Oortmerssen [Mon, 15 Jun 2015 19:29:06 +0000 (12:29 -0700)]
Make generating dependent include files for C++ the default.
--gen-includes is now deprecate but still accepted.
--no-includes can be used instead when needed.
Change-Id: I2cd46d193032b9b7c31c76c6f655e9333d3a393a
Tested: on Linux.
Wouter van Oortmerssen [Mon, 15 Jun 2015 19:17:19 +0000 (12:17 -0700)]
Allowing _ as first character of identifiers in .fbs/.json.
Change-Id: Ie2cb42632f6a907a38e10b2c9be1536cf330b2fa
Tested: on Linux.
gwvo [Mon, 15 Jun 2015 19:04:58 +0000 (12:04 -0700)]
Merge pull request #219 from jesta88/master
Fix for #218 - Check empty namespace in general generator
Jeremie St-Amand [Sun, 14 Jun 2015 17:04:04 +0000 (13:04 -0400)]
Follow Google code standards
Jeremie St-Amand [Sun, 14 Jun 2015 16:56:48 +0000 (12:56 -0400)]
Namespace now optional for general generator
If you have a schema with no namespace, the resulting C#/Java won't have
an erroneous empty namespace keyword.
Amol Deshpande [Sat, 13 Jun 2015 15:55:24 +0000 (08:55 -0700)]
fix code formatting and bug with losing enums when using --gen-onefile
Amol Deshpande [Sun, 7 Jun 2015 02:35:12 +0000 (19:35 -0700)]
option to generate one file for C#
Wouter van Oortmerssen [Wed, 27 May 2015 23:57:21 +0000 (16:57 -0700)]
Added clang & OS X to .travis
Wouter van Oortmerssen [Wed, 27 May 2015 23:42:15 +0000 (16:42 -0700)]
Added --defaults-json to output fields at default value.
Normal behavior is to not output fields that happen to have
the default value, since those will be reproduced anyway
when turned into a FlatBuffer binary. This however can be problematic
when using JSON to interop with other system since they might not
know this default value. This flatc option (and also flag
to GenerateText) will force those fields to be output anyway.
Tested: on Linux.
Wouter van Oortmerssen [Wed, 27 May 2015 22:09:06 +0000 (15:09 -0700)]
Added GitHub link to start of documentation page.
Wouter van Oortmerssen [Thu, 21 May 2015 20:53:41 +0000 (13:53 -0700)]
Added a #define for running tests without file access.
Change-Id: Ib2b7aa8a5641cf73fa0d6f2000db7fdd1aabab66
Tested: on Linux.
Wouter van Oortmerssen [Wed, 20 May 2015 23:19:50 +0000 (16:19 -0700)]
Small readability improvements to recent commits.
Change-Id: I290c33c475f7b019ab0d3c571245d27351d22fa1
Tested: on Linux.
Wouter van Oortmerssen [Wed, 20 May 2015 21:31:02 +0000 (14:31 -0700)]
Fixed -Wunused-result warning.
Change-Id: Iea5fab66047ac0a5057a743dbb1fdb27c063188c
Tested: on Linux.
Wouter van Oortmerssen [Tue, 19 May 2015 00:20:56 +0000 (17:20 -0700)]
Java: Allow access to the underlying ByteBuffer from a table.
Change-Id: Id268e35de207c25c809a09071b81eea873c9123e
Tested: on Linux.
gwvo [Wed, 20 May 2015 22:01:53 +0000 (15:01 -0700)]
Merge pull request #207 from zachreizner/header
Add include for cstdlib for std::bsearch definition
Zach Reizner [Wed, 20 May 2015 21:54:20 +0000 (14:54 -0700)]
Add include for cstdlib for std::bsearch definition
Robert [Wed, 20 May 2015 21:37:53 +0000 (14:37 -0700)]
Merge pull request #206 from rw/go-faster-string-writing
Go: CreateString now needs zero allocs.
rw [Wed, 20 May 2015 21:19:49 +0000 (14:19 -0700)]
Improve comment for unicode check.
rw [Wed, 20 May 2015 20:42:51 +0000 (13:42 -0700)]
use escape codes here for non-unicode editors
rw [Wed, 20 May 2015 19:00:44 +0000 (12:00 -0700)]
Go: CreateString now needs zero allocs.
Big speed boost for the typical use case of building with strings.
gwvo [Wed, 20 May 2015 16:30:10 +0000 (09:30 -0700)]
Merge pull request #198 from zulli73/master
Fixed endianness Vector's begin() and end()
gwvo [Tue, 19 May 2015 00:36:51 +0000 (17:36 -0700)]
Merge pull request #205 from zachreizner/fb_bsearch
Use std::bsearch in LookupByKey for binary search
Zach Reizner [Mon, 18 May 2015 23:17:19 +0000 (16:17 -0700)]
Use std::bsearch in LookupByKey for binary search
gwvo [Mon, 18 May 2015 16:33:30 +0000 (09:33 -0700)]
Merge pull request #201 from rw/python-docs-and-packaging
Update Python docs and package description
rw [Fri, 15 May 2015 19:23:10 +0000 (12:23 -0700)]
Regenerate Doxygen docs to add Python usage page.
rw [Fri, 15 May 2015 19:20:20 +0000 (12:20 -0700)]
Update Python package description: license, descriptions.
Wouter van Oortmerssen [Thu, 14 May 2015 00:45:20 +0000 (17:45 -0700)]
fixed xcode build files
Wouter van Oortmerssen [Thu, 14 May 2015 00:26:20 +0000 (17:26 -0700)]
fixed the windows build files
Robert [Wed, 13 May 2015 18:20:09 +0000 (11:20 -0700)]
Merge pull request #112 from rw/python23-read-write-gen-port
Port FlatBuffers to Python.
rw [Wed, 13 May 2015 17:54:02 +0000 (10:54 -0700)]
use EnsureDirExists from util.h instead of mkdir
rw [Wed, 13 May 2015 17:50:47 +0000 (10:50 -0700)]
fix string catenation
Raphael Zulliger [Wed, 13 May 2015 14:25:56 +0000 (16:25 +0200)]
Fixed endianness Vector's begin() and end()
rw [Tue, 16 Dec 2014 08:32:11 +0000 (00:32 -0800)]
Port FlatBuffers to Python.
Implement code generation and self-contained runtime library for Python.
The test suite verifies:
- Correctness of generated Python code by comparing output to that of
the other language ports.
- The exact bytes in the Builder buffer during many scenarios.
- Vtable deduplication correctness.
- Edge cases for table construction, via a fuzzer derived from the Go
implementation.
- All code is simultaneously valid in Python 2.6, 2.7, and 3.4.
The test suite includes benchmarks for:
- Building 'gold' data.
- Parsing 'gold' data.
- Deduplicating vtables.
All tests pass on this author's system for the following Python
implementations:
- CPython 2.6.7
- CPython 2.7.8
- CPython 3.4.2
- PyPy 2.5.0 (CPython 2.7.8 compatible)
Robert [Tue, 12 May 2015 21:53:31 +0000 (14:53 -0700)]
Merge pull request #165 from rw/go-faster
Go speed improvements
gwvo [Mon, 11 May 2015 21:07:40 +0000 (14:07 -0700)]
Merge pull request #189 from pjulien/188
Issue #188
gwvo [Mon, 11 May 2015 20:59:22 +0000 (13:59 -0700)]
Merge pull request #192 from Jiboo/fix190
Added a default constructor for Java's FlatBufferBuilder.
Wouter van Oortmerssen [Mon, 11 May 2015 17:53:54 +0000 (10:53 -0700)]
Fixed schemas inheriting namespace from included schemas.
Change-Id: Ib561430b235eddf4bfe20f68409e1dfdb359ef2b
Tested: on Linux.
Jean-Baptiste "Jiboo" Lepesme [Mon, 11 May 2015 17:17:01 +0000 (19:17 +0200)]
Added a default costructor for Java's FlatBufferBuilder.
Default's size of 1024b like in cpp. Fixes #190.
rw [Sat, 9 May 2015 23:32:26 +0000 (16:32 -0700)]
invoke many fewer growth events
rw [Sat, 9 May 2015 23:10:03 +0000 (16:10 -0700)]
gofmt
rw [Sat, 9 May 2015 23:07:11 +0000 (16:07 -0700)]
remove remaining allocs during build