From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7fca3123c4179206ee5199a80f182378@terzarima.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] C99 and you From: Charles Forsyth Date: Fri, 6 Oct 2006 09:28:01 +0100 In-Reply-To: <775b8d190610051709g5f9a66f5tc9c387315bc94d86@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-zqewyfucikgeghmhqcfnyrigbz" Topicbox-Message-UUID: c6d7703a-ead1-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-zqewyfucikgeghmhqcfnyrigbz Content-Disposition: ainline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit based on the grammar snippet posted earlier, it looks as though the compiler is correct. a case label in C is not so different from a label (thus duff's device is allowed), and as i understood the snippet, declarations can't be labelled. might make you wonder why they bothered, and indeed, i do wonder. i think they should leave the language alone. (and if they were going to do more than tinker, they might have added something significant, such as tuples.) --upas-zqewyfucikgeghmhqcfnyrigbz Content-Type: message/rfc822 Content-Disposition: ainline Received: from mail.cse.psu.edu ([130.203.4.6]) by lavoro; Fri Oct 6 01:10:10 BST 2006 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id C39AB5B913 for ; Thu, 5 Oct 2006 20:10:08 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 8F2A7C7A55 for <9fans@cse.psu.edu>; Thu, 5 Oct 2006 20:09:24 -0400 (EDT) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21902-01-81 for <9fans@cse.psu.edu>; Thu, 5 Oct 2006 20:09:21 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id B062C5ABDF for <9fans@cse.psu.edu>; Thu, 5 Oct 2006 20:09:21 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c31so833957pyd for <9fans@cse.psu.edu>; Thu, 05 Oct 2006 17:09:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TKa3KtQRvgONn0eZV0XGzoQlCgZxwKqIcenINTwbrYoCvS9KXE1NbbssKqJn2iYEfqBZyUAGCtV7dPjznSAGAyY1QmV1oPzsxFzadwuukpBod4ND4E1eTaVfXNb8kDo79YXyy+BpzFcl+3JqQMBIp0kFBtFm/A8OLf3dXWrDIQo= Received: by 10.35.119.8 with SMTP id w8mr4637419pym; Thu, 05 Oct 2006 17:09:20 -0700 (PDT) Received: by 10.35.36.19 with HTTP; Thu, 5 Oct 2006 17:09:20 -0700 (PDT) Message-ID: <775b8d190610051709g5f9a66f5tc9c387315bc94d86@mail.gmail.com> Date: Fri, 6 Oct 2006 10:09:20 +1000 From: "Bruce Ellis" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] C99 and you In-Reply-To: <5206ae35d06cc7d2086d65e1feec5265@9netics.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5206ae35d06cc7d2086d65e1feec5265@9netics.com> X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu Errors-To: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu if that is the case i would suggest the grammar (yacc file) needs a tweak - could be as simple as a missing case (or two). good catch. brucee On 10/6/06, Skip Tavakkolian <9nut@9netics.com> wrote: > somebody had a question a couple of days ago. i wonder if the declaration > was inside a switch or after a label? etc. --upas-zqewyfucikgeghmhqcfnyrigbz--