Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
e92ae519
Commit
e92ae519
authored
Jun 02, 2016
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compile errors on Windows
parent
ca32eb77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
code_generators.h
include/flatbuffers/code_generators.h
+4
-0
idl_parser.cpp
src/idl_parser.cpp
+5
-5
No files found.
include/flatbuffers/code_generators.h
View file @
e92ae519
...
...
@@ -45,6 +45,10 @@ class BaseGenerator {
namespace_dir_
(
BaseGenerator
::
NamespaceDir
(
parser
,
path
)){};
virtual
~
BaseGenerator
(){};
// No copy/assign.
BaseGenerator
&
operator
=
(
const
BaseGenerator
&
);
BaseGenerator
(
const
BaseGenerator
&
);
const
char
*
FlatBuffersGeneratedWarning
()
{
return
"automatically generated by the FlatBuffers compiler,"
" do not modify
\n\n
"
;
...
...
src/idl_parser.cpp
View file @
e92ae519
...
...
@@ -275,7 +275,7 @@ CheckedError Parser::Next() {
return
Error
(
"illegal Unicode sequence (multiple high surrogates)"
);
}
else
{
unicode_high_surrogate
=
val
;
unicode_high_surrogate
=
static_cast
<
int
>
(
val
)
;
}
}
else
if
(
val
>=
0xDC00
&&
val
<=
0xDFFF
)
{
if
(
unicode_high_surrogate
==
-
1
)
{
...
...
@@ -2001,14 +2001,14 @@ flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<
Definition
::
SerializeAttributes
(
FlatBufferBuilder
*
builder
,
const
Parser
&
parser
)
const
{
std
::
vector
<
flatbuffers
::
Offset
<
reflection
::
KeyValue
>>
attrs
;
for
(
auto
kv
:
attributes
.
dict
)
{
auto
it
=
parser
.
known_attributes_
.
find
(
kv
.
first
);
for
(
auto
kv
=
attributes
.
dict
.
begin
();
kv
!=
attributes
.
dict
.
end
();
++
kv
)
{
auto
it
=
parser
.
known_attributes_
.
find
(
kv
->
first
);
assert
(
it
!=
parser
.
known_attributes_
.
end
());
if
(
!
it
->
second
)
{
// Custom attribute.
attrs
.
push_back
(
reflection
::
CreateKeyValue
(
*
builder
,
builder
->
CreateString
(
kv
.
first
),
reflection
::
CreateKeyValue
(
*
builder
,
builder
->
CreateString
(
kv
->
first
),
builder
->
CreateString
(
kv
.
second
->
constant
)));
kv
->
second
->
constant
)));
}
}
if
(
attrs
.
size
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment