some fixes of old bugs

This commit is contained in:
2025-02-05 17:49:07 +03:00
parent a22776d487
commit 6eb0662f69
28 changed files with 1467 additions and 566 deletions

View File

@@ -249,6 +249,12 @@ static void build(strhash *H, int hno, int hlen){
}
fprintf(source, "%s", ffooter);
fclose(source);
fprintf(header, "\n\n");
for(int i = 0; i < hlen; ++i){
char *m = macroname(H[i].str);
fprintf(header, "#define STR_%-*s \"%s\"\n", lmax, m, H[i].str);
}
fclose(header);
}