lkml.org 
[lkml]   [1999]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] linux/signal.h siginit*() optimization
On Fri, Jul 02, 1999 at 04:26:33AM +0000, Tom Leete wrote:

> extern inline void sigemptyset(sigset_t *set)
> {
> switch (_NSIG_WORDS) {
> - default:
> - memset(set, 0, sizeof(sigset_t));
> - break;
> case 2: set->sig[1] = 0;
> case 1: set->sig[0] = 0;
> break;
> + default:
> + memset(set, 0, sizeof(sigset_t));
> }
> }

Hellooo? I don't know what language you think you're writing in, but this is
C and the order of case: and default: in switch() is irrelevant. default:
being at the bottom is preferred only for readability, nothing more.

--
No good deed goes unpunished.

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.028 / U:1.752 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site