platform/upstream/flatbuffers.git
9 years agocomment update
aeneid [Mon, 13 Jul 2015 19:58:54 +0000 (22:58 +0300)]
comment update

9 years agoapplied struct parameter fix to Go and Python generated classes
Maor Itzkovitch [Mon, 13 Jul 2015 19:53:59 +0000 (22:53 +0300)]
applied struct parameter fix to Go and Python generated classes

9 years agobuilder.put statements now use correct argument names
Maor Itzkovitch [Mon, 13 Jul 2015 17:00:48 +0000 (20:00 +0300)]
builder.put statements now use correct argument names

9 years agocomment update
aeneid [Sun, 12 Jul 2015 19:12:58 +0000 (22:12 +0300)]
comment update

9 years agoPassed field name as prefix for nested structs
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.

9 years agoUpdate flathash.cpp
aeneid [Tue, 7 Jul 2015 05:14:00 +0000 (08:14 +0300)]
Update flathash.cpp

9 years agoUpdate hash.h
aeneid [Tue, 7 Jul 2015 05:13:08 +0000 (08:13 +0300)]
Update hash.h

9 years agoMerge pull request #1 from aeneid/aeneid-patch-1
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>

9 years agoadded #include <stdio.h>
aeneid [Sun, 5 Jul 2015 16:50:50 +0000 (19:50 +0300)]
added #include <stdio.h>

9 years agoAllow customization of flatc cmdline arguments on Android.
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

9 years agoMade warning settings in Xcode more aggressive.
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.

9 years agoFixed null root_table access in binary schema generation.
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.

9 years agoReflection: generically copy (parts of) FlatBuffers.
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.

9 years agoMerge pull request #222 from rw/go-update-panics
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.

9 years agoMerge pull request #224 from rubber-duck/master
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

9 years agoMerge pull request #223 from belm0/csharp_docs
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.

9 years agoFixed argument value to correct type
Rafael Munitić [Fri, 26 Jun 2015 19:28:39 +0000 (21:28 +0200)]
Fixed argument value to correct type

9 years agoJava/C-sharp docs: fix typo, clarify parser availability.
John Belmonte [Thu, 25 Jun 2015 21:42:41 +0000 (14:42 -0700)]
Java/C-sharp docs: fix typo, clarify parser availability.

9 years agoPanic when nesting strings. Test panic scenarios.
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.

9 years agoFixed possible crash from reference to non-static variable.
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.

9 years agoSmall improvements to the C++ API.
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.

9 years agoChanged VS flatc test settings to match Linux.
Wouter van Oortmerssen [Wed, 17 Jun 2015 17:27:05 +0000 (10:27 -0700)]
Changed VS flatc test settings to match Linux.

9 years agoMerge pull request #217 from amoldeshpande/master
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#

9 years agoMerge branch 'master' of https://github.com/amoldeshpande/flatbuffers
Amol Deshpande [Tue, 16 Jun 2015 14:23:29 +0000 (07:23 -0700)]
Merge branch 'master' of https://github.com/amoldeshpande/flatbuffers

9 years agoMerge branch 'master' of https://github.com/google/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

9 years agoMerge pull request #3 from amoldeshpande/google-master
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

9 years agoMerge 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

9 years agomerge
Amol Deshpande [Tue, 16 Jun 2015 03:26:10 +0000 (20:26 -0700)]
merge

9 years agoFixed warnings on Windows
Wouter van Oortmerssen [Mon, 15 Jun 2015 22:57:48 +0000 (15:57 -0700)]
Fixed warnings on Windows

9 years agoRemoved unused variable.
Wouter van Oortmerssen [Mon, 15 Jun 2015 22:57:48 +0000 (15:57 -0700)]
Removed unused variable.

Tested: on OS X.

9 years agoInitial reflection and resizing functionality.
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

9 years agoMake generating dependent include files for C++ the default.
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.

9 years agoAllowing _ as first character of identifiers in .fbs/.json.
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.

9 years agoMerge pull request #219 from jesta88/master
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

9 years agoFollow Google code standards
Jeremie St-Amand [Sun, 14 Jun 2015 17:04:04 +0000 (13:04 -0400)]
Follow Google code standards

9 years agoNamespace now optional for general generator
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.

9 years agofix code formatting and bug with losing enums when using --gen-onefile
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

9 years agooption to generate one file for C#
Amol Deshpande [Sun, 7 Jun 2015 02:35:12 +0000 (19:35 -0700)]
option to generate one file for C#

9 years agoAdded clang & OS X to .travis
Wouter van Oortmerssen [Wed, 27 May 2015 23:57:21 +0000 (16:57 -0700)]
Added clang & OS X to .travis

9 years agoAdded --defaults-json to output fields at default value.
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.

9 years agoAdded GitHub link to start of documentation page.
Wouter van Oortmerssen [Wed, 27 May 2015 22:09:06 +0000 (15:09 -0700)]
Added GitHub link to start of documentation page.

9 years agoAdded a #define for running tests without file access.
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.

9 years agoSmall readability improvements to recent commits.
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.

9 years agoFixed -Wunused-result warning.
Wouter van Oortmerssen [Wed, 20 May 2015 21:31:02 +0000 (14:31 -0700)]
Fixed -Wunused-result warning.

Change-Id: Iea5fab66047ac0a5057a743dbb1fdb27c063188c
Tested: on Linux.

9 years agoJava: Allow access to the underlying ByteBuffer from a table.
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.

9 years agoMerge pull request #207 from zachreizner/header
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

9 years agoAdd 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

9 years agoMerge pull request #206 from rw/go-faster-string-writing
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.

9 years agoImprove comment for unicode check.
rw [Wed, 20 May 2015 21:19:49 +0000 (14:19 -0700)]
Improve comment for unicode check.

9 years agouse escape codes here for non-unicode editors
rw [Wed, 20 May 2015 20:42:51 +0000 (13:42 -0700)]
use escape codes here for non-unicode editors

9 years agoGo: CreateString now needs zero allocs.
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.

9 years agoMerge pull request #198 from zulli73/master
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()

9 years agoMerge pull request #205 from zachreizner/fb_bsearch
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

9 years agoUse 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

9 years agoMerge pull request #201 from rw/python-docs-and-packaging
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

9 years agoRegenerate Doxygen docs to add Python usage page.
rw [Fri, 15 May 2015 19:23:10 +0000 (12:23 -0700)]
Regenerate Doxygen docs to add Python usage page.

9 years agoUpdate Python package description: license, descriptions.
rw [Fri, 15 May 2015 19:20:20 +0000 (12:20 -0700)]
Update Python package description: license, descriptions.

9 years agofixed xcode build files
Wouter van Oortmerssen [Thu, 14 May 2015 00:45:20 +0000 (17:45 -0700)]
fixed xcode build files

9 years agofixed the windows build files
Wouter van Oortmerssen [Thu, 14 May 2015 00:26:20 +0000 (17:26 -0700)]
fixed the windows build files

9 years agoMerge pull request #112 from rw/python23-read-write-gen-port
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.

9 years agouse EnsureDirExists from util.h instead of mkdir
rw [Wed, 13 May 2015 17:54:02 +0000 (10:54 -0700)]
use EnsureDirExists from util.h instead of mkdir

9 years agofix string catenation
rw [Wed, 13 May 2015 17:50:47 +0000 (10:50 -0700)]
fix string catenation

9 years agoFixed endianness Vector's begin() and end()
Raphael Zulliger [Wed, 13 May 2015 14:25:56 +0000 (16:25 +0200)]
Fixed endianness Vector's begin() and end()

9 years agoPort FlatBuffers to Python.
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)

9 years agoMerge pull request #165 from rw/go-faster
Robert [Tue, 12 May 2015 21:53:31 +0000 (14:53 -0700)]
Merge pull request #165 from rw/go-faster

Go speed improvements

9 years agoMerge pull request #189 from pjulien/188
gwvo [Mon, 11 May 2015 21:07:40 +0000 (14:07 -0700)]
Merge pull request #189 from pjulien/188

Issue #188

9 years agoMerge pull request #192 from Jiboo/fix190
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.

9 years agoFixed schemas inheriting namespace from included schemas.
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.

9 years agoAdded a default costructor for Java's FlatBufferBuilder.
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.

9 years agoinvoke many fewer growth events
rw [Sat, 9 May 2015 23:32:26 +0000 (16:32 -0700)]
invoke many fewer growth events

9 years agogofmt
rw [Sat, 9 May 2015 23:10:03 +0000 (16:10 -0700)]
gofmt

9 years agoremove remaining allocs during build
rw [Sat, 9 May 2015 23:07:11 +0000 (16:07 -0700)]
remove remaining allocs during build

9 years agoupdate CheckClash for string accesses
rw [Sat, 9 May 2015 22:37:13 +0000 (15:37 -0700)]
update CheckClash for string accesses

9 years agoIssue #188
pjulien [Sat, 9 May 2015 18:08:28 +0000 (14:08 -0400)]
Issue #188

When accessing the array directly of a byte buffer, need to offset
by ``arrayOffset``

9 years agoUnion accessors in C# should use generic type for the table
Mormegil [Wed, 15 Apr 2015 15:51:20 +0000 (17:51 +0200)]
Union accessors in C# should use generic type for the table

When accessing a union field, we should return the same object type
as was given to the method, i.e. the parameter should have a generic
type for any Table-derived type. This way, we do not need to make
superfluous casts (which also reduce type safety) like

var myUnionType = (MyUnionType)buff.GetUnionField(new MyUnionType());

when we can do just
var myUnionType = buff.GetUnionField(new MyUnionType());

Change-Id: Idac1b638e46cc50b1f2dc19f10741481202b1515

9 years agoset version for next dev cycle
pjulien [Thu, 7 May 2015 00:17:02 +0000 (20:17 -0400)]
set version for next dev cycle

Change-Id: I17a7896e257c0ab7e4cd1b22c928d4cee21fbf11

9 years agoInitially discussed in #178.
pjulien [Wed, 6 May 2015 23:41:44 +0000 (19:41 -0400)]
Initially discussed in #178.

Allows adding an already encoded UTF-8 string directly without
having to convert to a ``String`` first.

Change-Id: I23f9c738eec18fd35f4c14f58dbd0f6cf0970dc7

9 years agoAdded namespaced way to refer to types in schemas.
Wouter van Oortmerssen [Fri, 8 May 2015 22:04:53 +0000 (15:04 -0700)]
Added namespaced way to refer to types in schemas.
Also made proper namespacing work for enums.

You can now say namespace.MyTable as the type when declaring
a field that refers to a type in a different namespace.

Previously, it would work just referring to MyTable, however
with the recent commit fixing namespaced types this now
is ambiguous.

Change-Id: Ieaa3f4ac1662b8c4dc1f16e1898ea3cdb02e10fd
Tested: on Linux.

9 years agoMerge "Initial support for propagating namespaces from schema files to generated...
Brett Cooley [Fri, 8 May 2015 19:52:54 +0000 (19:52 +0000)]
Merge "Initial support for propagating namespaces from schema files to generated code" into ub-games-master

9 years agoAdd missing newline in help text for flatc.
Jason Sanmiya [Thu, 7 May 2015 17:30:03 +0000 (10:30 -0700)]
Add missing newline in help text for flatc.

Tested: Help text displays correctly now.
Change-Id: Ibbdc810ae41e24321860879064bdc64f78a67cb9

9 years ago[BREAKING CHANGE] Field accessors should use property getters in C#
Mormegil [Wed, 6 May 2015 14:33:50 +0000 (16:33 +0200)]
[BREAKING CHANGE] Field accessors should use property getters in C#

In C#, plain field accessors should not be nonparametric methods
but should be standard property getters.

The accessor methods with parameters were renamed to `GetXxx`
because a method cannot be named identically to a property.

Also, `ByteBuffer.Position`, `FlatBufferBuilder.Offset` and
`FlatBufferBuilder.DataBuffer` are now properties instead
of nonparametric accessor methods, for more idiomatic C# style.

This is a breaking change, all client C# code accessing these
fields needs to be changed (i.e. remove those `()` or add the
`Get` prefix).

Issue: #77
Change-Id: Iaabe9ada076e5ea2c69911cf6170fdda2df3487e

9 years agoFix u_int8_t to uint8_t
yinlei [Tue, 5 May 2015 03:14:59 +0000 (11:14 +0800)]
Fix u_int8_t to uint8_t

Change-Id: I475ef9454f51f1b7ec2a7f9086d711359456677a

9 years agoInitial support for propagating namespaces from schema files to generated code
Brett Cooley [Wed, 6 May 2015 00:10:53 +0000 (17:10 -0700)]
Initial support for propagating namespaces from schema files to generated code

Change-Id: Ifc10c54845ea7553586d1896d509314d68e9ab0f

9 years agoMerge "Added extra checks for reading binaries in flatc" into ub-games-master
Wouter van Oortmerssen [Mon, 4 May 2015 21:01:59 +0000 (21:01 +0000)]
Merge "Added extra checks for reading binaries in flatc" into ub-games-master

9 years agoMerge changes I2de7d14d,I56392340 into ub-games-master
Wouter van Oortmerssen [Mon, 4 May 2015 21:00:43 +0000 (21:00 +0000)]
Merge changes I2de7d14d,I56392340 into ub-games-master

* changes:
  Added accessor for file_extension in generated code.
  Added missing --gen-mutable to CMakeLists.txt

9 years agoAdded extra checks for reading binaries in flatc
Wouter van Oortmerssen [Mon, 4 May 2015 20:36:27 +0000 (13:36 -0700)]
Added extra checks for reading binaries in flatc

By default, disallow reading binaries that do not correspond to
the schema file_identifier. Override with --raw-binary

Change-Id: I24822c0e4c80dab4e5a238ae2b6e601a09025c27
Tested: on Linux.

9 years agoAdded accessor for file_extension in generated code.
Wouter van Oortmerssen [Mon, 4 May 2015 17:52:40 +0000 (10:52 -0700)]
Added accessor for file_extension in generated code.

Change-Id: I2de7d14dbb1f7b8f81022dd2c9da65060ae49300
Tested: on Linux.

9 years agoAdded missing --gen-mutable to CMakeLists.txt
Wouter van Oortmerssen [Mon, 4 May 2015 17:35:53 +0000 (10:35 -0700)]
Added missing --gen-mutable to CMakeLists.txt

Change-Id: I56392340de4439d05fa8f06a7336ff72c6f9346d
Tested: on Linux

9 years agoMerge "Fix bug on flathash compilation option." into ub-games-master
Jason Sanmiya [Wed, 29 Apr 2015 21:12:06 +0000 (21:12 +0000)]
Merge "Fix bug on flathash compilation option." into ub-games-master

9 years agoMutable FlatBuffers: in-place updates.
Wouter van Oortmerssen [Mon, 27 Apr 2015 23:25:06 +0000 (16:25 -0700)]
Mutable FlatBuffers: in-place updates.

This commit contains the first step in providing mutable FlatBuffers,
non-const accessors and mutation functions for existing fields generated
from --gen-mutable.

Change-Id: Iebee3975f05c1001f8e22824725edeaa6d85fbee
Tested: on Linux.
Bug: 15777024

9 years agoFix bug on flathash compilation option.
Jason Sanmiya [Tue, 28 Apr 2015 22:44:10 +0000 (15:44 -0700)]
Fix bug on flathash compilation option.

Change-Id: Ib9d31d08daba7ce54b864417ae93bf479702861b

9 years agoTolerate DOS-style EOL in IDL line comments
Mormegil [Tue, 14 Apr 2015 16:09:08 +0000 (18:09 +0200)]
Tolerate DOS-style EOL in IDL line comments

If an IDL file uses DOS-style EOLs (CR+LF), line comments need to
ignore the second linebreak character, otherwise, as is currently
the case, the parsed documentation comment includes a trailing `\r`
character, which is then output verbatim into the output source
code by flatc.

Change-Id: I39591631995a980622d20a4a32315178b33f18f6

9 years agoadded .travis.yml file (build with original and biicode building);
franchuti688 [Wed, 1 Apr 2015 10:35:37 +0000 (12:35 +0200)]
added .travis.yml file (build with original and biicode building);
added bii-travis.sh and readme.md files; added build status section with travis and biicode build
systems

Change-Id: I93acd1ca9497416ade6293d63b5311c4c31b880f

9 years agoEnums use native enums in C#
Mormegil [Mon, 13 Apr 2015 11:25:03 +0000 (13:25 +0200)]
Enums use native enums in C#

Enums should not be (badly) emulated with classes in C# but should
use native C# enums instead. Java implementation made an explicit
choice not to use the (more complex) Java enums, but C# enums are
just light-weight syntactic coating over integral types.

Fixes issue #171.

Change-Id: I9f4d6ba5324400a1e52982e49b58603cb7d7cca7

9 years agoSeal all classes in Java/C#
Advay Mengle [Mon, 6 Apr 2015 23:42:08 +0000 (16:42 -0700)]
Seal all classes in Java/C#

Makes enums/structs/tables unsubclassable (final or sealed) and
prevents instantiation of enum classes (which are solely static
constants).

Tested (Mac OS 10.10.2):
1. run flattests
2. cd tests && ../flatc -c monster_test.fbs && ../flatc -j
monster_test.fbs && ../flatc -g monster_test.fbs && ../flatc -n
monster_test.fbs  # Note deltas for C# and Java.
3. ./JavaTest.sh

**Breaking api change**

Change-Id: Ie008c941c36d212690da58ddc72c9b228eb7a093

9 years agoFixed: Readme version is not up to date
Joël Lamotte [Fri, 3 Apr 2015 11:44:27 +0000 (13:44 +0200)]
Fixed: Readme version is not up to date

Change-Id: Ie44419026eca94bce0a2857abef95a82e78cfc3e

9 years agoAdd byte slice accessor to Go code
Ben Harper [Wed, 1 Apr 2015 14:39:53 +0000 (16:39 +0200)]
Add byte slice accessor to Go code

Change-Id: I15cc8924d6607bd93068c762fd67e6088cfd9789

9 years agoAlways add additional space if no more is available
Kyle Jones [Tue, 31 Mar 2015 19:16:36 +0000 (12:16 -0700)]
Always add additional space if no more is available

Change-Id: If08b2d839489d40e977de794b13584fa66ff32c1

9 years agoFix typo in Benchmarks.md
INADA Naoki [Thu, 2 Apr 2015 17:00:28 +0000 (02:00 +0900)]
Fix typo in Benchmarks.md

Change-Id: I1c5fbd019cc233e1d551887ff5fb740420c18c2b

9 years agoReduce allocations when reusing a Builder.
rw [Fri, 3 Apr 2015 02:33:00 +0000 (19:33 -0700)]
Reduce allocations when reusing a Builder.

Add the function `Reset` to the Builder, which facilitates reuse of the
underlying byte slice.