fix lots more bugs, add better logging

This commit is contained in:
Ash Wolf
2023-01-14 13:20:48 +00:00
parent 00edfdb0d4
commit 5f3c8265f2
29 changed files with 199 additions and 90 deletions

View File

@@ -2418,7 +2418,7 @@ static char *XpandSpecialMacro(Macro *macro) {
} else if (macro == &trgtM) {
return CPrep_CheckTarget() ? "1" : "0";
} else if (macro == &lineM) {
sprintf(buf, "%ld", linenumber);
sprintf(buf, "%" PRId32, linenumber);
do_string:
strptr = aalloc(strlen(buf) + 1);
strcpy(strptr, buf);