Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 2015 19:13:05 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        svn-src-all@freebsd.org
Subject:   Re: svn commit: r268137 - head/sys/sys
Message-ID:  <20150619171305.GA22509@britannica.bec.de>
In-Reply-To: <74BE6DD6-1C0F-4E59-8913-CFCE7DD744CB@FreeBSD.org>
References:  <201407020845.s628jRG5031824@svn.freebsd.org> <5BE3492F-86A0-4CE3-A27C-8DB5EB662C64@FreeBSD.org> <5583F2C9.1030409@selasky.org> <1EB851FC-CA78-4A7B-BE5D-4F050C61A14C@FreeBSD.org> <558403C4.4040500@selasky.org> <FE96503D-D821-4B7F-8AA5-7A80E4051CFA@FreeBSD.org> <55841BF3.8010205@selasky.org> <74BE6DD6-1C0F-4E59-8913-CFCE7DD744CB@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 19, 2015 at 03:22:49PM +0100, David Chisnall wrote:
> > NetBSD:
> > > sys/cdefs_elf.h
> > #define __weak  __attribute__((__weak__))
> > 
> > FreeBSD:
> > > sys/cdefs.h
> > #define	__weak	__attribute__((__weak__))
> 
> NetBSD is the only system that I’m aware of that has actually shipped
> this, and it broke a lot of things.

"A lot of things"? Let's keep a sense of proportion: it broke exactly
one thing and that's gnustep. This isn't the first time that Apple's
language extension broke system headers either, see __block and glibc.
Objective C has no more ownership of "__weak" than the OS has and the
common style of header keywords is actually a much stronger reason
*against* the pseudo-keyword use in Objective C.

Joerg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150619171305.GA22509>