more cleanup

This commit is contained in:
Ash Wolf
2023-01-15 21:50:41 +00:00
parent 35d488e972
commit a231f5dbb9
35 changed files with 1948 additions and 422 deletions

View File

@@ -59,7 +59,7 @@ void CLReportOSError(SInt16 errid, int err, ...) {
va_end(va);
oserr = OS_GetErrText(err);
CLReportError(99, txt, oserr, err);
CLReportError(CLStr99, txt, oserr, err);
if (txt != mybuf)
free(txt);
@@ -77,7 +77,7 @@ void CLReportCError(SInt16 errid, int err_no, ...) {
va_end(va);
serr = strerror(err_no);
CLReportError(100, txt, serr, err_no);
CLReportError(CLStr100, txt, serr, err_no);
if (txt != mybuf)
free(txt);

View File

@@ -240,7 +240,7 @@ void TermWorking(void) {
static void ProgressFunction(const char *functionname) {
if (optsCmdLine.verbose)
CLReport(7, functionname);
CLReport(CLStr7, functionname);
}
Boolean CheckForUserBreak(void) {
@@ -881,10 +881,10 @@ SInt16 CLStyledMessageDispatch(Plugin *plugin, MessageRef *ref, SInt32 errorNumb
if (++clState.countErrors >= optsCmdLine.maxErrors) {
clState.withholdErrors = 1;
if (!optsCompiler.noFail) {
CLReport(70);
CLReport(CLStr70);
clState.userBreak = 1;
} else {
CLReport(71);
CLReport(CLStr71);
}
}
}
@@ -892,7 +892,7 @@ SInt16 CLStyledMessageDispatch(Plugin *plugin, MessageRef *ref, SInt32 errorNumb
if (msgType == Msg_Warning && optsCmdLine.maxWarnings) {
if (++clState.countWarnings >= optsCmdLine.maxWarnings) {
clState.withholdWarnings = 1;
CLReport(72);
CLReport(CLStr72);
}
}