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
8 years ago
by
Feng Xiao
Committed by
GitHub
8 years ago
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
No related merge requests found
Show 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(
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
);
if
(
proto_file
.
size
()
!=
0
)
{
map
<
string
,
string
>::
iterator
existing_entry
=
...
...
This diff is collapsed.
Click to expand it.
src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
View file @
de5236dc
...
...
@@ -1306,7 +1306,8 @@ bool Parser::Finish() {
return
true
;
}
// Force a newline onto the end to finish parsing.
p_
=
StringPiece
(
leftover_
+
"
\n
"
);
leftover_
+=
"
\n
"
;
p_
=
StringPiece
(
leftover_
);
if
(
!
ParseLoop
())
{
return
false
;
}
...
...
This diff is collapsed.
Click to expand it.
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