Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace wchar_t/L"..." with char16/_u("...") #460

Merged
merged 2 commits into from
Mar 8, 2016

Conversation

jianchun
Copy link

@jianchun jianchun commented Mar 4, 2016

Replace wchar_t/L"..." with char16/_u("...") in all sources (except public
JSRT APIs. Will revisit later.)

Review on Reviewable

@ianwjhalliday
Copy link
Collaborator

I took a sampling of the changed files. Looks great

@dilijev
Copy link
Contributor

dilijev commented Mar 7, 2016

Reviewed 48 of 443 files at r1.
Review status: 48 of 443 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.


lib/Runtime/Library/UriHelper.cpp, line 147 [r1] (raw file):
This is silly, but harmless.


Comments from the review on Reviewable.io

@dilijev
Copy link
Contributor

dilijev commented Mar 7, 2016

I looked at a few files and it looks good. I assume this was more or less a find-and-replace operation and since it compiles, I'd say LGTM

Jianchun Xu added 2 commits March 7, 2016 15:53
wchar_t and L"..." use 2-byte chars on Windows but 4-byte chars on Unix.
We need a common representation for cross-platform.

C++11 has native char16_t and u"..." support. But unfortunately that's
not supported by VS 2013.

This change prepares the code to use char16 and _u("...").
Replace wchar_t/L"..." with char16/_u("...") in all sources (except public
JSRT APIs. Will revisit later.)
@jianchun
Copy link
Author

jianchun commented Mar 8, 2016

Thanks guys! Will merge this.

@chakrabot chakrabot merged commit cec0e9a into chakra-core:master Mar 8, 2016
chakrabot pushed a commit that referenced this pull request Mar 8, 2016
Merge pull request #460 from jianchun:wchar
Replace wchar_t/L"..." with char16/_u("...") in all sources (except public
JSRT APIs. Will revisit later.)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/microsoft/chakracore/460)
<!-- Reviewable:end -->
@jianchun jianchun deleted the wchar branch March 8, 2016 01:00
jianchun pushed a commit to jianchun/ChakraCore that referenced this pull request Mar 8, 2016
Missed a pattern of L'...' literal in previous batch replacement chakra-core#460.

Remove unused code in Throw.h/cpp
jianchun pushed a commit to jianchun/ChakraCore that referenced this pull request Mar 8, 2016
Missed a pattern of L'...' literal in previous batch replacement chakra-core#460.

Remove unused code in Throw.h/cpp
chakrabot pushed a commit that referenced this pull request Mar 8, 2016
Merge pull request #482 from jianchun:morechar
Missed a pattern of L'...' literal in previous batch replacement #460.

Remove unused code in Throw.h/cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants