summaryrefslogtreecommitdiff
path: root/command_line/CmdLine/Src/CLMain.c
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-15 21:50:41 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-15 21:50:41 +0000
commita231f5dbb93c60da240a027f2afd8a4797069541 (patch)
treea6bc68fdc2f1a1fa0000e5cd63a5189f170c226b /command_line/CmdLine/Src/CLMain.c
parent35d488e972a9dd75ce3867c000405f128b79c615 (diff)
downloadMWCC-a231f5dbb93c60da240a027f2afd8a4797069541.tar.gz
MWCC-a231f5dbb93c60da240a027f2afd8a4797069541.zip
more cleanup
Diffstat (limited to '')
-rw-r--r--command_line/CmdLine/Src/CLMain.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/command_line/CmdLine/Src/CLMain.c b/command_line/CmdLine/Src/CLMain.c
index ae678fa..ef55b55 100644
--- a/command_line/CmdLine/Src/CLMain.c
+++ b/command_line/CmdLine/Src/CLMain.c
@@ -253,7 +253,7 @@ int Main_Initialize(int argc, char **argv) {
}
if (OS_FindProgram(exename, &clState.programSpec))
- CLReportError(2, exename);
+ CLReportError(CLStr2, exename);
Plugins_Init();
if (!RegisterStaticCmdLinePlugin())
@@ -387,7 +387,7 @@ static int Main_ResolveProject(void) {
endTime = LMGetTicks();
if (optsCmdLine.timeWorking) {
- CLReport(24, (endTime - startTime) / 60.0, "resolve", "", "project", "");
+ CLReport(CLStr24, (endTime - startTime) / 60.0, "resolve", "", "project", "");
}
return 0;
@@ -399,7 +399,7 @@ static int UpdatePCmdLineFromVersion(PCmdLine *given, PCmdLine *target) {
*target = *given;
if (clState.pluginDebug && version < 0x1002 && !warned) {
- CLReportWarning(104, "CmdLine Panel");
+ CLReportWarning(CLStr104, "CmdLine Panel");
warned = 1;
}
@@ -414,7 +414,7 @@ static int UpdatePCmdLineFromVersion(PCmdLine *given, PCmdLine *target) {
}
if (version < 0x1000 || version > 0x1002) {
- CLReportError(104, "CmdLine Panel");
+ CLReportError(CLStr104, "CmdLine Panel");
return 0;
} else {
target->version = 0x1002;
@@ -427,7 +427,7 @@ static int UpdatePCmdLineEnvirFromVersion(PCmdLineEnvir *given, PCmdLineEnvir *t
*target = *given;
if ((clState.pluginDebug && version < 0x1000) || version > 0x1000) {
- CLReportError(104, "CmdLine Environment");
+ CLReportError(CLStr104, "CmdLine Environment");
return 0;
} else {
target->version = 0x1000;
@@ -441,7 +441,7 @@ static int UpdatePCmdLineCompilerFromVersion(PCmdLineCompiler *given, PCmdLineCo
*target = *given;
if (clState.pluginDebug && version < 0x1005 && !warned) {
- CLReportWarning(104, "CmdLine Compiler Panel");
+ CLReportWarning(CLStr104, "CmdLine Compiler Panel");
warned = 1;
}
@@ -468,7 +468,7 @@ static int UpdatePCmdLineCompilerFromVersion(PCmdLineCompiler *given, PCmdLineCo
}
if (version <= 0x1000 || version > 0x1005) {
- CLReportError(104, "CmdLine Compiler Panel");
+ CLReportError(CLStr104, "CmdLine Compiler Panel");
return 0;
} else {
target->version = 0x1005;
@@ -482,7 +482,7 @@ static int UpdatePCmdLineLinkerFromVersion(PCmdLineLinker *given, PCmdLineLinker
*target = *given;
if (clState.pluginDebug && version < 0x1002 && !warned) {
- CLReportWarning(104, "CmdLine Linker Panel");
+ CLReportWarning(CLStr104, "CmdLine Linker Panel");
warned = 1;
}
@@ -499,7 +499,7 @@ static int UpdatePCmdLineLinkerFromVersion(PCmdLineLinker *given, PCmdLineLinker
}
if (version < 0x1000 || version > 0x1002) {
- CLReportError(104, "CmdLine Linker Panel");
+ CLReportError(CLStr104, "CmdLine Linker Panel");
return 0;
} else {
target->version = 0x1002;
@@ -518,7 +518,7 @@ static int UpdatePrefPanels(const char *name) {
return 0;
}
} else {
- CLReportError(91, "CmdLine Panel");
+ CLReportError(CLStr91, "CmdLine Panel");
return 0;
}
}
@@ -530,7 +530,7 @@ static int UpdatePrefPanels(const char *name) {
return 0;
}
} else {
- CLReportError(91, "CmdLine Environment");
+ CLReportError(CLStr91, "CmdLine Environment");
return 0;
}
}
@@ -542,7 +542,7 @@ static int UpdatePrefPanels(const char *name) {
return 0;
}
} else {
- CLReportError(91, "CmdLine Compiler Panel");
+ CLReportError(CLStr91, "CmdLine Compiler Panel");
return 0;
}
}
@@ -554,7 +554,7 @@ static int UpdatePrefPanels(const char *name) {
return 0;
}
} else {
- CLReportError(91, "CmdLine Linker Panel");
+ CLReportError(CLStr91, "CmdLine Linker Panel");
return 0;
}
}