From a231f5dbb93c60da240a027f2afd8a4797069541 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sun, 15 Jan 2023 21:50:41 +0000 Subject: more cleanup --- command_line/CmdLine/Src/Plugins/CLPlugins.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'command_line/CmdLine/Src/Plugins') diff --git a/command_line/CmdLine/Src/Plugins/CLPlugins.c b/command_line/CmdLine/Src/Plugins/CLPlugins.c index 3342dae..dd9d902 100644 --- a/command_line/CmdLine/Src/Plugins/CLPlugins.c +++ b/command_line/CmdLine/Src/Plugins/CLPlugins.c @@ -400,7 +400,7 @@ static Boolean VerifyPanels(Plugin *pl) { if (pl->cb->GetPanelList && pl->cb->GetPanelList(&pls) == 0) { for (idx = 0; idx < pls->count; idx++) { if (Prefs_FindPanel(pls->names[idx]) == NULL) { - CLReportError(91, pls->names[idx]); + CLReportError(CLStr91, pls->names[idx]); failed = 1; } } @@ -460,7 +460,7 @@ void Plugin_Free(Plugin *pl) { Boolean Plugin_VerifyPanels(Plugin *pl) { if (!VerifyPanels(pl)) { - CLReportError(92, Plugin_GetDropInName(pl)); + CLReportError(CLStr92, Plugin_GetDropInName(pl)); return 0; } else { return 1; @@ -511,14 +511,14 @@ int Plugins_Add(Plugin *pl) { pl->cached_ascii_version = Plugin_GetVersionInfoASCII(pl); if (!SupportedPlugin(pl, &failreason)) { - CLReportError(88, dropinname, pl->cached_ascii_version, failreason); + CLReportError(CLStr88, dropinname, pl->cached_ascii_version, failreason); return 0; } scan = &pluginlist; while (*scan) { if (Plugin_MatchesName(*scan, dropinname)) { - CLReportError(89, dropinname); + CLReportError(CLStr89, dropinname); return 0; } scan = &(*scan)->next; @@ -528,14 +528,14 @@ int Plugins_Add(Plugin *pl) { df = Plugin_GetDropInFlags(pl); if (!(df->dropinflags & dropInExecutableTool) && !SendInitOrTermRequest(pl, 1)) { - CLReportError(3, dropinname); + CLReportError(CLStr3, dropinname); return 0; } if (df->dropintype == CWDROPINCOMPILERTYPE && df->dropinflags & 0x17C000) - CLReportError(4, "compiler", dropinname); + CLReportError(CLStr4, "compiler", dropinname); if (df->dropintype == CWDROPINLINKERTYPE && df->dropinflags & 0x5FE4000) - CLReportError(4, "linker", dropinname); + CLReportError(CLStr4, "linker", dropinname); if (clState.pluginDebug) { vislang = df->edit_language ? df->edit_language : CWFOURCHAR('-','-','-','-'); @@ -816,11 +816,11 @@ Plugin *Plugins_GetParserForPlugin(Plugin *list, OSType style, int numPlugins, C if (pick && !allpanels) { int idx; - CLReport(5); + CLReport(CLStr5); for (idx = 0; idx < numPanels; idx++) { if (!supports[idx]) - CLReport(6, panelNames[idx]); + CLReport(CLStr6, panelNames[idx]); } } -- cgit v1.2.3