After Vicent Lefevre message I looked again at it and did the experimental change sown bellow, the original code is a bit problematic because it has "9" hardcoded in "#define __TINYC__ 9%.2s\n" and was using a substring of "0.9.28rc", not the best solution but a bit more clear in my opinion.

====

#define TCC_VERSION_MAJOR "0.9."
#define TCC_VERSION_MINOR "28rc"
#define TCC_VERSION TCC_VERSION_MAJOR TCC_VERSION_MINOR

====

====

cstr_printf(cs, "#define __TINYC__ 9%.2s\n", TCC_VERSION_MINOR);

====


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to