Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2490)

Issue 2579041: Refactored ReadFileData() function in the translator sample to fix many issue... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by Alok Priyadarshi
Modified:
14 years, 1 month ago
Reviewers:
kbr1, dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Refactored ReadFileData() function in the translator sample to fix many issues: - Memory leaks - Made compiling using multiple strings default. This was not getting exercised. - Removed redundant copies of file data - Handled empty files properly which were getting ignored BUG=66

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -98 lines) Patch
M samples/translator/translator.cpp View 1 2 3 6 chunks +70 lines, -98 lines 0 comments Download

Messages

Total messages: 9
Alok Priyadarshi
This is in preparation to fix BUG 66. http://code.google.com/p/angleproject/issues/detail?id=66
14 years, 1 month ago (2010-10-19 19:34:36 UTC) #1
kbr1
This basically LGTM but I have one question and one suggestion. http://codereview.appspot.com/2579041/diff/1/samples/translator/translator.cpp File samples/translator/translator.cpp (right): ...
14 years, 1 month ago (2010-10-19 19:59:56 UTC) #2
Alok Priyadarshi
http://codereview.appspot.com/2579041/diff/1/samples/translator/translator.cpp File samples/translator/translator.cpp (right): http://codereview.appspot.com/2579041/diff/1/samples/translator/translator.cpp#newcode225 samples/translator/translator.cpp:225: int len = (int)(ceil)((float)count / (float)MAX_SOURCE_STRINGS); On 2010/10/19 19:59:56, ...
14 years, 1 month ago (2010-10-19 20:20:06 UTC) #3
kbr1
On 2010/10/19 20:20:06, Alok Priyadarshi wrote: > http://codereview.appspot.com/2579041/diff/1/samples/translator/translator.cpp > File samples/translator/translator.cpp (right): > > http://codereview.appspot.com/2579041/diff/1/samples/translator/translator.cpp#newcode225 ...
14 years, 1 month ago (2010-10-19 20:45:22 UTC) #4
Alok Priyadarshi
> > If enough of the freads read fewer bytes than expected, > This only ...
14 years, 1 month ago (2010-10-19 21:02:25 UTC) #5
kbr1
On 2010/10/19 21:02:25, Alok Priyadarshi wrote: > > > > If enough of the freads ...
14 years, 1 month ago (2010-10-19 22:55:33 UTC) #6
Alok Priyadarshi
changed to use std::vector<>.
14 years, 1 month ago (2010-10-20 18:11:10 UTC) #7
dgkoch
no issues here. BTW is this the actual translator, or just sample code showing how ...
14 years, 1 month ago (2010-10-20 19:43:14 UTC) #8
Alok Priyadarshi
14 years, 1 month ago (2010-10-20 19:44:33 UTC) #9
On 2010/10/20 19:43:14, dgkoch wrote:
> no issues here.
> 
> BTW is this the actual translator, or just sample code showing how to use the
> translator?
> 
> Daniel

Just sample code. It resides under samples/ directory.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b