-
Notifications
You must be signed in to change notification settings - Fork 178
include tchar.h 削除 #2108
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
Open
gorogoro123
wants to merge
2
commits into
sakura-editor:master
Choose a base branch
from
gorogoro123:feature/remove_include_tchar_h
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
include tchar.h 削除 #2108
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ | |
| #pragma once | ||
|
|
||
| #include <Windows.h> | ||
| #include <tchar.h> | ||
|
|
||
| #include "charset/charset.h" | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,19 +28,19 @@ | |
|
|
||
| //! デバッグ判別、定数サフィックス 2007.09.20 kobake | ||
| #ifdef _DEBUG | ||
| #define _DEBUG_SUFFIX_ "_DEBUG" | ||
| #define _DEBUG_SUFFIX_ L"_DEBUG" | ||
| #else | ||
| #define _DEBUG_SUFFIX_ "" | ||
| #define _DEBUG_SUFFIX_ L"" | ||
| #endif | ||
|
|
||
| //! ビルドコード判別、定数サフィックス 2007.09.20 kobake | ||
| #define _CODE_SUFFIX_ "WP" | ||
| #define _CODE_SUFFIX_ L"WP" | ||
|
|
||
| //! ターゲットマシン判別 2010.08.21 Moca 追加 | ||
| #ifdef _WIN64 | ||
| #define CON_SKR_MACHINE_SUFFIX_ "M64" | ||
| #define CON_SKR_MACHINE_SUFFIX_ L"M64" | ||
| #else | ||
| #define CON_SKR_MACHINE_SUFFIX_ "" | ||
| #define CON_SKR_MACHINE_SUFFIX_ L"" | ||
| #endif | ||
|
|
||
| // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // | ||
|
|
@@ -550,8 +550,8 @@ | |
| */ | ||
| #define N_SHAREDATA_VERSION 181 | ||
| #define STR_SHAREDATA_VERSION NUM_TO_STR(N_SHAREDATA_VERSION) | ||
| #define GSTR_SHAREDATA (L"SakuraShareData" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define STR_SHAREDATA_VERSION TEXT(NUM_TO_STR(N_SHAREDATA_VERSION)) | ||
| #define GSTR_SHAREDATA (L"SakuraShareData" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. _T() よりも TEXT() のがわかりやすい、は個人の主観であるように思います。 他ファイルでは tchar.h が不要になった。←了解。 tchar.h で定義していたマクロが使えなくなったので代替マクロを使う ←なんで? |
||
|
|
||
| // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // | ||
| // ミューテックス // | ||
|
|
@@ -561,42 +561,42 @@ | |
| #define GSTR_MUTEX_SAKURA L"MutexSakuraEditor" | ||
|
|
||
| //! コントロールプロセス | ||
| #define GSTR_MUTEX_SAKURA_CP (L"MutexSakuraEditorCP" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_MUTEX_SAKURA_CP (L"MutexSakuraEditorCP" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
|
||
| //! ノーマルプロセス初期化同期 | ||
| #define GSTR_MUTEX_SAKURA_INIT (L"MutexSakuraEditorInit" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_MUTEX_SAKURA_INIT (L"MutexSakuraEditorInit" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
|
||
| //! ノード操作同期 | ||
| #define GSTR_MUTEX_SAKURA_EDITARR (L"MutexSakuraEditorEditArr" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_MUTEX_SAKURA_EDITARR (L"MutexSakuraEditorEditArr" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
|
||
| //DLLSHARE Work操作同期 | ||
| #define GSTR_MUTEX_SAKURA_SHAREWORK (L"MutexSakuraEditorShareWork" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_MUTEX_SAKURA_SHAREWORK (L"MutexSakuraEditorShareWork" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
|
||
| //! 強調キーワードロック | ||
| #define GSTR_MUTEX_SAKURA_KEYWORD (L"MutexSakuraEditorKeyword" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_MUTEX_SAKURA_KEYWORD (L"MutexSakuraEditorKeyword" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
|
||
| //タイプ別設定転送用 | ||
| #define GSTR_MUTEX_SAKURA_DOCTYPE (L"MutexSakuraEditorDocType" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_MUTEX_SAKURA_DOCTYPE (L"MutexSakuraEditorDocType" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
|
||
| // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // | ||
| // イベント // | ||
| // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // | ||
|
|
||
| //! 初期化完了イベント | ||
| #define GSTR_EVENT_SAKURA_CP_INITIALIZED (L"EventSakuraEditorCPInitialized" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_EVENT_SAKURA_CP_INITIALIZED (L"EventSakuraEditorCPInitialized" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
|
||
| // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // | ||
| // ウィンドウクラス // | ||
| // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // | ||
|
|
||
| //! コントロールトレイ | ||
| #define GSTR_CEDITAPP (L"CControlTray" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_CEDITAPP (L"CControlTray" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
|
||
| //! メインウィンドウ | ||
| #define GSTR_EDITWINDOWNAME (L"TextEditorWindow" _T(CON_SKR_MACHINE_SUFFIX_) _T(_CODE_SUFFIX_) _T(_DEBUG_SUFFIX_) _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_EDITWINDOWNAME (L"TextEditorWindow" CON_SKR_MACHINE_SUFFIX_ _CODE_SUFFIX_ _DEBUG_SUFFIX_ STR_SHAREDATA_VERSION) | ||
|
|
||
| //! ビュー | ||
| #define GSTR_VIEWNAME (L"SakuraView" _T(STR_SHAREDATA_VERSION)) | ||
| #define GSTR_VIEWNAME (L"SakuraView" STR_SHAREDATA_VERSION) | ||
|
|
||
| // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // | ||
| // リソース // | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
主題と無関係と思います。
似たようなのたくさんあるけど、横並びでNG。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この部分について、
「常にワイド文字列として使われる定数をナロー文字列で宣言するのはおかしい」
の理屈は理解できます。
純粋に「変える必要あるの?ないの?」で考えたときに「ない側に振れるんじゃないか」と言ってます。