News for hackers. Stuff that matters.
Re:On leading underscores and names reserved by the C and C+... by pcwalton on Wednesday January 11, 2023 @02:02PM (#34342885)
I saw someone point out that these identifier restrictions mean that a valid C compiler optimization would be to change all instances of "x = to[a-z]+(y);" to "if (!is[a-z]+(y)) x = to[a-z]+(y);" Not that any compiler would actually be absurd enough to implement this, of course :)

Naturally, this would imply the validity of the optimization:

x = toilet(y); -> if (!isilet(y)) x = toilet(y);

Re:On leading underscores and names reserved by the C and C+... by caf on Wednesday January 11, 2023 @08:40PM (#34347934)
Only if you've included <ctype.h> or <wctype.h> though.