Maor Itzkovitch
e24afd838a
extended scalar mutator support
2015-08-01 19:08:22 +03:00
Maor Itzkovitch
81c2b185ef
support for scalar mutators
2015-08-01 12:38:47 +03:00
Wouter van Oortmerssen
6e192fa408
Updated documentation to use new css style.
...
Change-Id: I05e2f8fd06026645a8e5da1703d757ad9de10b4f
Tested: on Linux.
2015-07-22 13:10:37 -07:00
Wouter van Oortmerssen
12ca3e054e
Fixed compile error in older gcc's for trailing comma in enum.
...
Change-Id: I60f6da32fb2a30557fcf842624f68ca184f65e1f
Tested: on Linux.
2015-07-22 12:35:40 -07:00
Wouter van Oortmerssen
62af533820
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.
2015-07-22 12:03:39 -07:00
Jon Simantov
b56020ad3b
Updated pointer syntax to be consistent in SetString, etc.
2015-07-22 11:46:14 -07:00
Jon Simantov
6e160f4c59
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.
2015-07-22 10:56:41 -07:00
Wouter van Oortmerssen
07e77ad0ff
Merge pull request #238 from martell/master
...
Add a libflatbuffers for other projects to use
2015-07-22 10:02:11 -07:00
Wouter van Oortmerssen
b6380aceac
Fixed reflection resizing code not checking strings in vectors.
...
Change-Id: I4081160a8281939ab282d7914ae396276c767882
Tested: on Linux.
2015-07-22 09:57:35 -07:00
Martell Malone
79d3cb6a6c
Add a libflatbuffers for other projects to use
2015-07-22 17:53:19 +01:00
Jon Simantov
a4de6de700
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).
2015-07-22 02:01:56 -07:00
Wouter van Oortmerssen
f66e93cd8d
Merge pull request #233 from aeneid/master
...
fix for parameter name clash in generated structs
2015-07-13 13:27:54 -07:00
aeneid
59a09cb1d0
comment update
2015-07-13 22:58:54 +03:00
Maor Itzkovitch
c23c620d26
applied struct parameter fix to Go and Python generated classes
2015-07-13 22:53:59 +03:00
Wouter van Oortmerssen
4798456df6
Fixed type specifiers in the grammar document.
...
Change-Id: Ia6b976f0eb6a99d710bcd09cb56339580ff69f5b
2015-07-13 10:31:10 -07:00
Maor Itzkovitch
147fbb4285
builder.put statements now use correct argument names
2015-07-13 20:00:48 +03:00
aeneid
a9ae9bdcab
comment update
2015-07-12 22:12:58 +03:00
aeneid
f7d8102b35
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.
2015-07-12 22:10:57 +03:00
Wouter van Oortmerssen
d0e9bc6a75
A few schema documentation fixes.
...
Change-Id: I140e1322fc1bfb3ab8012e00d8f3006ee2e7ce95
2015-07-08 17:49:49 -07:00
Wouter van Oortmerssen
d863df8683
Merge pull request #230 from aeneid/master
...
included stdio.h in include/flatbuffers/hash.h
2015-07-08 09:01:17 -07:00
aeneid
4834634766
Update flathash.cpp
2015-07-07 08:14:00 +03:00
aeneid
a4c893dbe2
Update hash.h
2015-07-07 08:13:08 +03:00
Wouter van Oortmerssen
8833255ed3
Merge pull request #227 from evanw/master
...
Round up allocation size to avoid misalignment (issue #226 )
2015-07-06 13:32:44 -07:00
aeneid
fb5f9456e9
Merge pull request #1 from aeneid/aeneid-patch-1
...
added #include <stdio.h>
2015-07-05 20:27:20 +03:00
aeneid
0dacfbbfca
added #include <stdio.h>
2015-07-05 19:50:50 +03:00
Evan Wallace
47aab78233
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).
2015-07-02 14:05:45 -07:00
Jon Simantov
185b9f9792
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
2015-07-01 11:46:19 -07:00
Wouter van Oortmerssen
21765bea2e
Made warning settings in Xcode more aggressive.
...
Tested: on OS X.
2015-06-29 15:49:13 -07:00
Wouter van Oortmerssen
36c7e9a962
Fixed null root_table access in binary schema generation.
...
Change-Id: Ia2b7abc10bee52814e815befcad6a89697295d8f
Tested: on Linux.
2015-06-29 15:21:48 -07:00
Wouter van Oortmerssen
cb2b2be54e
Reflection: generically copy (parts of) FlatBuffers.
...
Change-Id: Ief3f1507c003079eac90c2bb6c2abd64a80a0a34
Tested: on Linux.
2015-06-29 15:18:51 -07:00
Robert
1c152cc72a
Merge pull request #222 from rw/go-update-panics
...
Panic when nesting strings. Test panic scenarios.
2015-06-29 18:10:44 -04:00
gwvo
d67661eb39
Merge pull request #224 from rubber-duck/master
...
Fixed argument value to correct type
2015-06-29 10:44:11 -07:00
gwvo
ea97e1b5e2
Merge pull request #223 from belm0/csharp_docs
...
Java/C-sharp docs: fix typo, clarify parser availability.
2015-06-29 09:55:38 -07:00
Rafael Munitić
dca3ccf5fd
Fixed argument value to correct type
2015-06-26 21:28:39 +02:00
John Belmonte
ef7b3ed8f5
Java/C-sharp docs: fix typo, clarify parser availability.
2015-06-25 14:42:41 -07:00
rw
4d305f5922
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.
2015-06-24 11:53:44 -04:00
Wouter van Oortmerssen
1e6f8f5b8c
Fixed possible crash from reference to non-static variable.
...
Change-Id: I1842098a7ef461e2e92dd35d79d8ca303e814867
Tested: on Linux.
2015-06-22 10:23:42 -07:00
Wouter van Oortmerssen
c967515da5
Small improvements to the C++ API.
...
Change-Id: Ib30ffbbd140a8b82fe664129fa4e8c55836267f8
Tested: on Linux.
2015-06-17 17:17:01 -07:00
Wouter van Oortmerssen
576022c64b
Changed VS flatc test settings to match Linux.
2015-06-17 10:27:05 -07:00
gwvo
eab9cfbec9
Merge pull request #217 from amoldeshpande/master
...
option to generate one file for C#
2015-06-17 10:10:50 -07:00
Amol Deshpande
ab4801a82e
Merge branch 'master' of https://github.com/amoldeshpande/flatbuffers
2015-06-16 07:23:29 -07:00
Amol Deshpande
8df4b318bc
Merge branch 'master' of https://github.com/google/flatbuffers
...
Conflicts:
src/flatc.cpp
src/idl_gen_general.cpp
2015-06-16 07:16:59 -07:00
amoldeshpande
8a98e9ad98
Merge pull request #3 from amoldeshpande/google-master
...
Merge pull request #2 from amoldeshpande/master
2015-06-15 21:00:40 -07:00
amoldeshpande
eee5628569
Merge pull request #2 from amoldeshpande/master
...
merge
2015-06-15 20:58:48 -07:00
Amol Deshpande
ad3fd6ecbf
merge
2015-06-15 20:26:10 -07:00
Wouter van Oortmerssen
622b8d05cf
Fixed warnings on Windows
2015-06-15 17:35:07 -07:00
Wouter van Oortmerssen
5faa0ab1be
Removed unused variable.
...
Tested: on OS X.
2015-06-15 15:57:48 -07:00
Wouter van Oortmerssen
81312c2128
Initial reflection and resizing functionality.
...
Tested: on Linux.
Change-Id: I8f7bccf9b1ad87fea788f85e23fa69435758feca
2015-06-15 15:53:10 -07:00
Wouter van Oortmerssen
1808337adc
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.
2015-06-15 13:09:22 -07:00
Wouter van Oortmerssen
5f091c46ce
Allowing _ as first character of identifiers in .fbs/.json.
...
Change-Id: Ie2cb42632f6a907a38e10b2c9be1536cf330b2fa
Tested: on Linux.
2015-06-15 13:09:22 -07:00