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