Paul Eggert <[EMAIL PROTECTED]> writes: > Come to think of it, since we want the code to stay portable to C89, > then we can't use switch (V) ... when V is of type off_t. This is > because off_t is typically 'long long int', and C89 (which lacks 'long > long int') does not require support for a switch whose expression is > of type 'long long int'.
I don't understand this rationale. C89 requires that the switch expression be of integral type. For C89 compilers with the long long int extension, a long long int is an integral type, so it should be supported. Are there actual implementations that support long long int but not its use as a switch expression? -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org