Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 15 Dec 2000 15:45:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 15 Dec 2000 15:45:01 -0500 Received: from penguin.e-mind.com ([195.223.140.120]:47446 "EHLO penguin.e-mind.com") by vger.kernel.org with ESMTP id ; Fri, 15 Dec 2000 15:44:48 -0500 Date: Fri, 15 Dec 2000 21:14:04 +0100 From: Andrea Arcangeli To: Rik van Riel Cc: Franz Sirl , "Richard B. Johnson" , Mike Black , "linux-kernel@vger.kernel.or" Subject: Re: 2.2.18 signal.h Message-ID: <20001215211404.J17781@inspiron.random> In-Reply-To: <20001215195433.G17781@inspiron.random> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from riel@conectiva.com.br on Fri, Dec 15, 2000 at 05:55:08PM -0200 X-GnuPG-Key-URL: http://e-mind.com/~andrea/aa.gnupg.asc X-PGP-Key-URL: http://e-mind.com/~andrea/aa.asc Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 15, 2000 at 05:55:08PM -0200, Rik van Riel wrote: > On Fri, 15 Dec 2000, Andrea Arcangeli wrote: > > > x() > > { > > > > switch (1) { > > case 0: > > case 1: > > case 2: > > case 3: > > ; > > } > > } > > > > Why am I required to put a `;' only in the last case and not in > > all the previous ones? > > That `;' above is NOT in just the last one. In your above > example, all the labels will execute the same `;' statement. > > In fact, the default behaviour of the switch() operation is > to fall through to the next defined label and you have to put > in an explicit `break;' if you want to prevent `case 0:' from > reaching the `;' below the `case 3:'... Are you kidding me? Andrea - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/