Re: [PATCH] linux/signal.h siginit*() optimization

Tom Leete (tleete@access.mountain.net)
Fri, 2 Jul 1999 10:22:53 -0400


>C and the order of case: and default: in switch() is irrelevant. default:
>being at the bottom is preferred only for readability, nothing more.

Its official: scripting causes brain damage. Now I know.

Thanks to several for pointing this out to me. One correspondent said that a
break statement is required by some compilers before exiting the switch
block by any branch. Is this in the standard?

The patch remains good, despite my aberrent reasoning. It fixes the problem
noted by Ronnie Misra. Is there a reason to prefer the unconventional order
of cases in these functions?

Someday I'll learn to recognise the flavor of my socks,
Tom

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/