refactor(developer): rename CWARN_Info to CINFO_Info

This commit is contained in:
Marc Durdin 2024-07-28 08:42:57 +07:00
parent 091b4042a2
commit c8b055101f
3 changed files with 5 additions and 6 deletions

View file

@ -206,10 +206,9 @@ namespace CompilerErrorSeverity {
#define CWARN_ANSIInUnicodeGroup 0x00002087
#define CWARN_UnicodeSurrogateUsed 0x00002088
#define CWARN_ReservedCharacter 0x00002089
// Note: CWARN_Info has an "info" severity; this changed in 17.0. Earlier versions
// had a special case for CWARN_Info in message output.
#define CWARN_Info 0x0000008A
#define CINFO_Info CWARN_Info
#define CINFO_Info 0x0000008A
#define CWARN_VirtualKeyWithMnemonicLayout 0x0000208B
#define CWARN_VirtualCharKeyWithPositionalLayout 0x0000208C
#define CWARN_StoreAlreadyUsedAsOptionOrCall 0x0000208D

View file

@ -127,7 +127,7 @@ std::map<KMX_DWORD, const KMX_CHAR*> CompilerErrorMap = {
{ CWARN_ANSIInUnicodeGroup , "An ANSI character was found in a Unicode group"},
{ CWARN_UnicodeSurrogateUsed , "A Unicode surrogate character was found. You should use Unicode scalar values to represent values > U+FFFF"},
{ CWARN_ReservedCharacter , "A Unicode character was found that should not be used"},
{ CWARN_Info , "Information"},
{ CINFO_Info , "Information"},
{ CWARN_VirtualKeyWithMnemonicLayout , "Virtual key used instead of virtual character key with a mnemonic layout"},
{ CWARN_VirtualCharKeyWithPositionalLayout , "Virtual character key used with a positional layout instead of mnemonic layout"},
{ CWARN_StoreAlreadyUsedAsOptionOrCall , "Store already used as an option or in a call statement and should not be used as a normal store"},

View file

@ -16,7 +16,7 @@ namespace kmcmp {
KMX_BOOL kmcmp::AddCompileWarning(PKMX_CHAR buf)
{
KMCMP_COMPILER_RESULT_MESSAGE message;
message.errorCode = CWARN_Info;
message.errorCode = CINFO_Info;
message.lineNumber = kmcmp::currentLine + 1;
message.message = buf;
(*msgproc)(message, msgprocContext);