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

Issue 5103001: Add shared macros for stringizing and converting ANSI string constants... (Closed)

Created:
10 years, 1 month ago by Jói
Modified:
9 years, 7 months ago
CC:
chromium-reviews, vrk (LEFT CHROMIUM), cbentzel+watch_chromium.org, fbarchard, ddorwin+watch_chromium.org, Alpha Left Google, acolwell GONE FROM CHROMIUM, annacc, pam+watch_chromium.org, awong, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., scherkus (not reviewing)
Visibility:
Public.

Description

Add shared macros for stringizing and converting ANSI string constants (in particular defined by macros) to wide string constants. Convert existing locally-defined stringizing to use the shared macros. Unit tests for the shared macros. This also fixes a minor bug in ceee_module_util.cc where I accidentally quoted a string constant I only meant to convert to wide (this caused no bug, but was unintended, so the change in semantics in that file in the current change is intentional). BUG=none TEST=automated tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66579

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -17 lines) Patch
M base/base.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 chunks +2 lines, -1 line 0 comments Download
A base/stringize_macros.h View 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A base/stringize_macros_unittest.cc View 1 chunk +59 lines, -0 lines 0 comments Download
M ceee/ie/common/ceee_module_util.cc View 1 3 chunks +3 lines, -7 lines 0 comments Download
M media/base/media_posix.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M net/base/net_errors.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Jói
Reviewers: - Evan for base - Andrew for media\base\media_posix.cc - Dean for net\base\net_errors.cc
10 years, 1 month ago (2010-11-17 00:28:12 UTC) #1
Jói
ping On Tue, Nov 16, 2010 at 7:28 PM, <joi@chromium.org> wrote: > Reviewers: Evan Martin, ...
10 years, 1 month ago (2010-11-17 16:40:23 UTC) #2
Evan Martin
Sorry for losing your change. :( Regarding the file names -- we have a few ...
10 years, 1 month ago (2010-11-17 23:37:29 UTC) #3
Evan Martin
If the L-string versions are really only used by one file, maybe they belong in ...
10 years, 1 month ago (2010-11-17 23:38:33 UTC) #4
Jói
Thanks Evan. I expect the L-string versions will be needed in more places and would ...
10 years, 1 month ago (2010-11-17 23:40:40 UTC) #5
Jói
PTAL, I uploaded a new version with the changes we discussed. On 2010/11/17 23:40:40, Jói ...
10 years, 1 month ago (2010-11-18 00:12:30 UTC) #6
Evan Martin
great, LGTM (some things to check below) http://codereview.chromium.org/5103001/diff/20001/base/stringize_macros.h File base/stringize_macros.h (right): http://codereview.chromium.org/5103001/diff/20001/base/stringize_macros.h#newcode16 base/stringize_macros.h:16: #define STRINGIZE_NO_EXPANSION(x) ...
10 years, 1 month ago (2010-11-18 00:15:37 UTC) #7
Jói
http://codereview.chromium.org/5103001/diff/20001/base/stringize_macros.h File base/stringize_macros.h (right): http://codereview.chromium.org/5103001/diff/20001/base/stringize_macros.h#newcode16 base/stringize_macros.h:16: #define STRINGIZE_NO_EXPANSION(x) #x \ On 2010/11/18 00:15:37, Evan Martin ...
10 years, 1 month ago (2010-11-18 00:26:44 UTC) #8
Jói
>> Double check that this code is running on Windows -- you might need to ...
10 years, 1 month ago (2010-11-18 00:44:34 UTC) #9
scherkus (not reviewing)
10 years, 1 month ago (2010-11-18 01:24:54 UTC) #10
LGTM!

I think it's right -- and if it's not we'll know rather quickly ;)

Powered by Google App Engine
This is Rietveld 408576698