-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
I took a sampling of the changed files. Looks great |
Reviewed 48 of 443 files at r1. lib/Runtime/Library/UriHelper.cpp, line 147 [r1] (raw file): Comments from the review on Reviewable.io |
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 |
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.)
Thanks guys! Will merge this. |
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 -->
Missed a pattern of L'...' literal in previous batch replacement chakra-core#460. Remove unused code in Throw.h/cpp
Missed a pattern of L'...' literal in previous batch replacement chakra-core#460. Remove unused code in Throw.h/cpp
Replace wchar_t/L"..." with char16/_u("...") in all sources (except public
JSRT APIs. Will revisit later.)