From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 28 17:00:27 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72DF61065696 for ; Tue, 28 Apr 2009 17:00:27 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id 52BC68FC24 for ; Tue, 28 Apr 2009 17:00:27 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id n3SGoDo06329; Tue, 28 Apr 2009 09:50:13 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id n3SGoD718129; Tue, 28 Apr 2009 09:50:13 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Tue, 28 Apr 2009 09:50:13 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Peter Jeremy In-Reply-To: <20090428114754.GB89235@server.vk2pj.dyndns.org> Message-ID: References: <49F4070C.2000108@gmx.de> <20090428114754.GB89235@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Hackers , Christoph Mallon Subject: Re: C99: Suggestions for style(9) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2009 17:00:27 -0000 On Tue, 28 Apr 2009, Peter Jeremy wrote: > On 2009-Apr-26 09:02:36 +0200, Christoph Mallon wrote: >> as some of you may have noticed, several years ago a new millenium >> started and a decade ago there was a new C standard. > > Your implication that FreeBSD is therefore a decade behind the times > is unfair. Whilst the C99 standard was published a decade ago, > compilers implementing that standard are still not ubiquitous. > >> HEAD recently >> switched to C99 as default (actually gnu99, but that's rather close). > > Note that gcc 4.2 (the FreeBSD base compiler) states that it is not > C99 compliant. However, if you take a look at http://gcc.gnu.org/gcc-4.2/c99status.html , you will see that it is very close. The vast majority of C99 features are implemented and working correctly. Even those which are marked as "broken" generally work in most cases, and fail only in rather obscure corner cases that real programs are unlikely to encounter. In particular, the features Christoph proposes to use work fine. -- Nate Eldredge neldredge@math.ucsd.edu