On Mon Oct 30 17:11:52 2023 +0000, Rémi Bernon wrote:
I don't think 'X' can happen, we format the strings ourselves below and hex always use lower case. Anyway, what about just getting rid of custom formats and always use decimal numbers? This is only going to end up in generated files after all, I'm not sure it's critical to have hex/NULL/TRUE/FALSE?
Oh, right, 'X' is not a problem here. Still, I feel that interpreting the string is not really elegant. Preserving hex format makes generated headers nicer to read and that's what midl does. I can see the argument that it's of minor importance in generated files, but to be honest current solution of separated types is easy enough that I don't really see why we need to change it.