Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
protobuf
Commits
de5236dc
Commit
de5236dc
authored
Jul 22, 2016
by
Feng Xiao
Committed by
GitHub
Jul 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1828 from sergiocampama/framework
Fixes the parsing of the proto-framework map file.
parents
2ba058c6
2ff93494
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
objectivec_file.cc
src/google/protobuf/compiler/objectivec/objectivec_file.cc
+1
-1
objectivec_helpers.cc
...google/protobuf/compiler/objectivec/objectivec_helpers.cc
+2
-1
No files found.
src/google/protobuf/compiler/objectivec/objectivec_file.cc
View file @
de5236dc
...
@@ -223,7 +223,7 @@ bool ImportWriter::ProtoFrameworkCollector::ConsumeLine(
...
@@ -223,7 +223,7 @@ bool ImportWriter::ProtoFrameworkCollector::ConsumeLine(
offset
=
proto_file_list
.
length
();
offset
=
proto_file_list
.
length
();
}
}
StringPiece
proto_file
(
proto_file_list
,
start
,
offset
);
StringPiece
proto_file
(
proto_file_list
,
start
,
offset
-
start
);
StringPieceTrimWhitespace
(
&
proto_file
);
StringPieceTrimWhitespace
(
&
proto_file
);
if
(
proto_file
.
size
()
!=
0
)
{
if
(
proto_file
.
size
()
!=
0
)
{
map
<
string
,
string
>::
iterator
existing_entry
=
map
<
string
,
string
>::
iterator
existing_entry
=
...
...
src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
View file @
de5236dc
...
@@ -1306,7 +1306,8 @@ bool Parser::Finish() {
...
@@ -1306,7 +1306,8 @@ bool Parser::Finish() {
return
true
;
return
true
;
}
}
// Force a newline onto the end to finish parsing.
// Force a newline onto the end to finish parsing.
p_
=
StringPiece
(
leftover_
+
"
\n
"
);
leftover_
+=
"
\n
"
;
p_
=
StringPiece
(
leftover_
);
if
(
!
ParseLoop
())
{
if
(
!
ParseLoop
())
{
return
false
;
return
false
;
}
}
...
...
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