Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Issue 1274423003: Fix FXSYS_itoa() implementation. (Closed)

Created:
5 years, 4 months ago by Tom Sepez
Modified:
5 years, 4 months ago
Reviewers:
Lei Zhang, Nico, brucedawson
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix FXSYS_itoa() implementation. I thought about removing it, but decided to fix it instead until c++11 hits and there may be better alternatives. Remove unused variants. BUG=517854 R=brucedawson@chromium.org, thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/9778206732296e949ef22a79362c6bce34a56052

Patch Set 1 #

Patch Set 2 : Actually include test, fix comment. #

Total comments: 6

Patch Set 3 : Helper routines. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -16 lines) Patch
M BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M core/include/fxcrt/fx_system.h View 1 chunk +0 lines, -1 line 0 comments Download
M core/src/fxcrt/fx_basic_gcc.cpp View 1 3 chunks +23 lines, -15 lines 0 comments Download
A core/src/fxcrt/fx_system_unittest.cpp View 1 2 1 chunk +158 lines, -0 lines 1 comment Download
M pdfium.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Tom Sepez
Lei, for review, see bug for details.
5 years, 4 months ago (2015-08-07 20:12:49 UTC) #2
Tom Sepez
+Bruce because he knows everything.
5 years, 4 months ago (2015-08-07 20:27:33 UTC) #4
Lei Zhang
https://codereview.chromium.org/1274423003/diff/20001/core/src/fxcrt/fx_system_unittest.cpp File core/src/fxcrt/fx_system_unittest.cpp (right): https://codereview.chromium.org/1274423003/diff/20001/core/src/fxcrt/fx_system_unittest.cpp#newcode35 core/src/fxcrt/fx_system_unittest.cpp:35: buf[kBase16SentinelLocation] = kSentinel; Maybe write CheckBase16ItoA(int32_t input, const char* ...
5 years, 4 months ago (2015-08-07 20:50:12 UTC) #5
brucedawson
A couple of comments, but lgtm. https://codereview.chromium.org/1274423003/diff/20001/core/src/fxcrt/fx_basic_gcc.cpp File core/src/fxcrt/fx_basic_gcc.cpp (right): https://codereview.chromium.org/1274423003/diff/20001/core/src/fxcrt/fx_basic_gcc.cpp#newcode85 core/src/fxcrt/fx_basic_gcc.cpp:85: const FX_CHAR* FXSYS_i64toa(int64_t ...
5 years, 4 months ago (2015-08-07 20:55:49 UTC) #6
Tom Sepez
> I think that the preferred abbreviation for the null character is NUL. This name ...
5 years, 4 months ago (2015-08-07 20:57:31 UTC) #7
Tom Sepez
https://codereview.chromium.org/1274423003/diff/20001/core/src/fxcrt/fx_system_unittest.cpp File core/src/fxcrt/fx_system_unittest.cpp (right): https://codereview.chromium.org/1274423003/diff/20001/core/src/fxcrt/fx_system_unittest.cpp#newcode35 core/src/fxcrt/fx_system_unittest.cpp:35: buf[kBase16SentinelLocation] = kSentinel; On 2015/08/07 20:50:12, Lei Zhang wrote: ...
5 years, 4 months ago (2015-08-07 21:58:14 UTC) #8
Lei Zhang
lgtm
5 years, 4 months ago (2015-08-07 22:26:12 UTC) #9
Tom Sepez
Committed patchset #3 (id:40001) manually as 9778206732296e949ef22a79362c6bce34a56052 (presubmit successful).
5 years, 4 months ago (2015-08-07 22:28:26 UTC) #10
Nico
https://codereview.chromium.org/1274423003/diff/40001/core/src/fxcrt/fx_system_unittest.cpp File core/src/fxcrt/fx_system_unittest.cpp (right): https://codereview.chromium.org/1274423003/diff/40001/core/src/fxcrt/fx_system_unittest.cpp#newcode152 core/src/fxcrt/fx_system_unittest.cpp:152: std::numeric_limits<int64_t>::max(), "7fffffffffffffff"); This new code isn't clang-formatted. Did the ...
5 years, 4 months ago (2015-08-12 16:52:21 UTC) #12
Tom Sepez
On 2015/08/12 16:52:21, Nico (hiding) wrote: > https://codereview.chromium.org/1274423003/diff/40001/core/src/fxcrt/fx_system_unittest.cpp > File core/src/fxcrt/fx_system_unittest.cpp (right): > > https://codereview.chromium.org/1274423003/diff/40001/core/src/fxcrt/fx_system_unittest.cpp#newcode152 ...
5 years, 4 months ago (2015-08-13 18:16:57 UTC) #13
Lei Zhang
5 years, 4 months ago (2015-08-13 18:18:10 UTC) #14
Message was sent while issue was closed.
On 2015/08/12 16:52:21, Nico (hiding) wrote:
> This new code isn't clang-formatted. Did the presubmit not fire on this?

The presubmit has been firing for my CLs.

Powered by Google App Engine
This is Rietveld 408576698