mirror of
https://git.wuffs.org/MWCC
synced 2025-12-14 07:36:23 +00:00
more cleanup
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user