Rene Fichter
3de82050ce
Fix build error when flatc binary is missing in PATH.
2016-01-19 13:02:25 +01:00
Wouter van Oortmerssen
63b526db52
Ensured code is not generated directly from .proto files.
...
The parser state generated from the .proto conversion process is
not exactly the same as what you get by parsing the generated
schema, which can cause problems. This check enforces that you
first convert the .proto, then generate code from the new schema.
Change-Id: I04b53af9288d87e256d1cc109388332fefb3a09f
Tested: on Linux.
2016-01-08 11:39:56 -08:00
Wouter van Oortmerssen
514d274a45
Added android static library target for text parsing/generation etc.
...
Change-Id: If24e3eea90cef2a0d6a9d98fb503d2e3ec34ceed
Tested: on Linux.
2016-01-06 17:48:19 -08:00
Wouter van Oortmerssen
6beafd14e0
Updated docs to point to benchmark source code location.
...
Change-Id: If4c8fac6a421ac6436cab0dd7a0ae822a32e90bf
2016-01-06 16:51:00 -08:00
Robert
b4d29970f4
Merge pull request #2098 from faizanrashid/issue-1741
...
[BUG] [MINOR] Use buffer for specific py versions
2016-01-06 16:13:59 -08:00
Wouter van Oortmerssen
586fdee89b
Merge pull request #3494 from parnic/fix-vs2012-static-analysis
...
Fixed MS static analysis warnings
2016-01-06 12:34:08 -08:00
Chris Pickett
178f768f7f
Changed how the SA warning is suppressed to avoid pragma stuff
2016-01-06 14:21:18 -06:00
Wouter van Oortmerssen
316854c26f
Merge pull request #3495 from parnic/fix-reflection-vs2012-warnings
...
Fixed warning building in VS2012
2016-01-06 12:03:40 -08:00
Wouter van Oortmerssen
6532bfce34
Merge pull request #3493 from parnic/support-platforms-without-realpath
...
Fix build for platforms not supporting realpath
2016-01-06 11:52:37 -08:00
Chris Pickett
e1e7dfa625
Fixed warning building in VS2012
...
src\reflection.cpp(297): warning C4267: 'argument' : conversion from 'size_t' to 'flatbuffers::uoffset_t', possible loss of data
sizeof() was promoting the type from uoffset_t to size_t.
2016-01-06 12:45:24 -06:00
Chris Pickett
a3363def52
Updated comment on endif for new name
2016-01-06 12:21:17 -06:00
Chris Pickett
b4fef31d84
Made requested revisions for naming and spacing
2016-01-06 12:20:38 -06:00
Chris Pickett
cfd6e7dea8
Documented what the suppressed warning is about
2016-01-06 12:04:46 -06:00
Wouter van Oortmerssen
56f9b2d142
Merge pull request #3492 from parnic/fix-vs2012-warnings
...
Fix vs2012 warnings
2016-01-06 09:39:23 -08:00
Chris Pickett
30013b4ff8
Fixed MS static analysis warnings
...
Cleaned up a few warnings to allow VS2012 to compile idl_parser and idl_gen_text (for exporting binary protobuf blobs as JSON) cleanly under static analysis.
2016-01-05 13:38:59 -06:00
Chris Pickett
4731c7e502
Fix build for platforms not supporting realpath
...
Added a check for a preprocessor definition that can be set if the platform you're building for doesn't support any notion of absolute path resolution/realpath()/etc.
2016-01-05 11:04:16 -06:00
Chris Pickett
e0b2f81885
Fixed compile warning with VS2012
...
flatbuffers\src\idl_parser.cpp(1516): warning C4244: 'argument' : conversion from 'int' to 'char', possible loss of data
2016-01-05 10:58:40 -06:00
Chris Pickett
0e1601b80d
Fixed compile warning with VS2012
...
flatbuffers\src\idl_parser.cpp(1525): warning C4127: conditional expression is constant
flatbuffers\src\idl_parser.cpp(1546): warning C4127: conditional expression is constant
2016-01-05 10:58:21 -06:00
Wouter van Oortmerssen
a6a38f6035
Merge branch 'master' of https://github.com/google/flatbuffers
...
Fixed conflicts and added missing generated files.
Change-Id: I4321c798543292d814c2c9e8b238c203b7526c7b
2016-01-04 13:06:19 -08:00
Wouter van Oortmerssen
4e4a5142fb
Clarified binary encoding with an example.
...
Change-Id: I60c900a2f7cbd88fe264f7b0dc78ef86b1580655
Tested: in Chrome.
2016-01-04 09:53:21 -08:00
Wouter van Oortmerssen
451272b618
Made error checking macros less prone to clashes.
...
Change-Id: Ieb252ce01446551699d935507bc95ee286fe1ddd
Tested: on Linux.
2015-12-29 16:33:00 -08:00
Wouter van Oortmerssen
8f13c828f5
Merge pull request #2776 from ncpenke/skip-unknown-json-fields
...
Fix #2775 : Add parser option to skip unknown JSON fields
2015-12-29 10:29:11 -08:00
Wouter van Oortmerssen
e6240f4039
Merge pull request #2790 from chobie/php-table-fix
...
(PHP) fixes getting indirect table, also fixes getInt method on 32bit machine
2015-12-29 10:25:21 -08:00
Shuhei Tanuma
4691558ee3
(PHP) remove duplicate test
2015-12-24 15:50:03 +09:00
Shuhei Tanuma
7fbd9b8de4
(PHP) improve indirect buffer test
2015-12-24 15:35:28 +09:00
Nalinichandra Penke
f243109524
Fix #2775 : Add option to flatc to skip unknown fields in JSON
2015-12-22 00:13:22 -08:00
Nalinichandra Penke
13d0594b4c
Fix #2775 : Add parser option to skip unknown JSON fields
2015-12-22 00:02:19 -08:00
ncpenke
6bfcb286b1
Merge pull request #1 from google/master
...
Catchup
2015-12-21 22:56:49 -08:00
Wouter van Oortmerssen
1891537236
Fixed reflection setting string not changing size field.
...
Change-Id: I3c3e88a79667d1733b6c47e43b55d8b2604ca8e2
Tested: on Linux.
2015-12-21 16:20:03 -08:00
Wouter van Oortmerssen
d7d527d154
Merge branch 'master' of https://github.com/google/flatbuffers
2015-12-21 14:43:48 -08:00
Wouter van Oortmerssen
995ee86a6e
Added an IsFieldPresent helper function.
...
This is implemented as a template function, since Table::CheckField
is not reachable by subclasses of Table (private base class).
Change-Id: I1ed4d47ce7cb672460ccab61cf7442eb9136b0f1
Tested: on Linux.
Bug: 26273432
2015-12-21 12:17:59 -08:00
Wouter van Oortmerssen
40a33b1d06
Replaced exception handling in the parser with error checking.
...
This to allow the code to run on a greater range of build
configurations (that don't allow exceptions/RTTI).
If anyone ever doubts the usefulness of exception handling,
please show them this commit.
Change-Id: If7190babdde93c3f9cd97b8e1ab447bf0c81696d
Tested: on Linux.
2015-12-21 12:17:59 -08:00
Shuhei Tanuma
c9198dbbb8
(PHP) fixes getting indirect table, also fixes getInt method on 32bit machine.
2015-12-17 11:35:31 +09:00
Wouter van Oortmerssen
b974e95ce4
Merge pull request #2601 from AaronCritchley/patch-1
...
Improving the README by linking to the SO tag, and changing SO wording.
2015-12-16 09:59:22 -08:00
Aaron Critchley
99249ada01
Linking to SO tag and improving readability
2015-12-15 21:06:01 +00:00
Wouter van Oortmerssen
a9909a0c18
Made sure all namespace test files get generated.
...
Also included them in the C++ test.
Change-Id: Ib0c8470f0aacdf16616c27494abdda57a010195d
Tested: on Linux.
2015-12-14 16:15:43 -08:00
Wouter van Oortmerssen
2ce5d6c2b6
Merge pull request #2090 from evolutional/cs-perf-string
...
C# - Performance optimizations
2015-12-14 15:16:46 -08:00
Faizan Rashid
853e34087a
[BUG] [MINOR] Use buffer for specific py versions
...
Fix for Issue 1741
Minor bug where python versions 2.7.x where x < 5 do not support
unpacking from memoryview objects. Versions 2.7.5 and above will
use memoryview while 2.7 versions below 2.7.5 will use buffer
objects.
Manual testing was performed on versions 2.7.5 and 2.7.2 to
confirm both worked correctly.
2015-12-13 02:55:16 -05:00
Oli Wilkinson
be11d2b6ef
C# performance optimization to Pad/Prep methods
2015-12-12 11:39:57 -05:00
Oli Wilkinson
b8187e5b82
Performance tweak to FlatBufferBuilder.CreateString method to remove the unnecessary byte buffer allocation
...
(See https://github.com/google/flatbuffers/issues/55#issuecomment-164031718 for stats)
2015-12-11 14:57:59 -05:00
Wouter van Oortmerssen
4dcaec7938
Fixed root_type not accepting namespaced types.
...
Change-Id: I272f377742cc0a2c1bfccaa641b54eb9a8c762b6
Tested: on Linux.
2015-12-09 16:41:12 -08:00
Wouter van Oortmerssen
c44bc6a719
Merge branch 'master' of https://github.com/google/flatbuffers
2015-12-09 12:57:12 -08:00
Wouter van Oortmerssen
6fba6b6e71
Fixed compiler warnings for cast to bool in generated code.
...
Change-Id: I7727aeb478feb23d8ef66fd1ba9499b142b3ea7d
Tested: on Linux.
2015-12-09 12:56:24 -08:00
Wouter van Oortmerssen
96cd275603
Merge pull request #288 from mfcollins3/csharp-byte-buffer
...
Add Get Bytes Method Generator for C#
2015-12-07 17:35:57 -08:00
Wouter van Oortmerssen
42b48bd55f
Merge pull request #776 from belldon/bytebuffer_pos_fix
...
Extend C# ByteBuffer Put method fix to unsafe methods
2015-12-07 16:19:05 -08:00
Wouter van Oortmerssen
8bb45dc0a6
Merge pull request #1029 from belldon/vtable_reuse
...
Update C# FlatBufferBuilder to reuse vtable array
2015-12-07 14:42:04 -08:00
belldon
8db90f5073
Extend C# ByteBuffer Put method fix to unsafe methods
...
Fixes issue #243 . Extends the initial C# ByteBuffer fix
(e4c3bf3d2c ) to Put methods
used when UNSAFE_BYTEBUFFER is defined.
2015-12-07 16:43:55 -05:00
belldon
d5a113e5bf
Update C# FlatBufferBuilder to reuse vtable array
...
This commit updates the FlatBufferBuilder class to reuse the vtable
array instead of creating a new array with every StartObject() call.
2015-12-07 16:42:21 -05:00
Wouter van Oortmerssen
8e6758d205
Merge pull request #608 from evolutional/master
...
Fix to #360 - Fully qualified names outside of current NS
2015-12-07 10:33:38 -08:00
Wouter van Oortmerssen
163d04a5d2
Merge pull request #778 from armen/master
...
Correct the max/min signed/unsigned 32-bit int
2015-12-07 10:27:27 -08:00