I'm just wondering, is it possible to instruct GCC (or another compiler) that I dont want case-sensitivity in my C code?
If thats impossible, then another option would be to have a compiler-flag that throws an error when it finds two global variabeles/functions, with the same name, and different casing.
Strange question.... C is a case sensitive language, it seems to me that is impossible to find a case insensitive compiler.
A possible solution is to parse source code before and lower each caracters, and after that compile it.
EDIT : According comments, I discourage to parse code to change case of caracters, causing some trouble with libraries
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With