From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 8 09:25:55 2015 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BCA29EA4; Mon, 8 Jun 2015 09:25:55 +0000 (UTC) (envelope-from phk@freebsd.org) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 808631206; Mon, 8 Jun 2015 09:25:55 +0000 (UTC) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (unknown [192.168.60.3]) by phk.freebsd.dk (Postfix) with ESMTP id 279853BB88; Mon, 8 Jun 2015 09:25:48 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.9/8.14.9) with ESMTP id t589PlPt029843; Mon, 8 Jun 2015 09:25:48 GMT (envelope-from phk@freebsd.org) To: Hans Petter Selasky cc: Julian Elischer , Ian Lepore , "freebsd-hackers@freebsd.org" Subject: Re: Make "sys/queue.h" usable with C++ In-reply-to: <55734622.5090808@selasky.org> From: "Poul-Henning Kamp" References: <52D7D302.3090403@bitfrost.no> <1679.1389879981@critter.freebsd.dk> <52D7E674.4010501@bitfrost.no> <16417.1389881910@critter.freebsd.dk> <1389890913.1230.64.camel@revolution.hippie.lan> <52D8C268.1080009@bitfrost.no> <52D95A8E.3000006@freebsd.org> <55734622.5090808@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29841.1433755547.1@critter.freebsd.dk> Date: Mon, 08 Jun 2015 09:25:47 +0000 Message-ID: <29842.1433755547@critter.freebsd.dk> X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2015 09:25:55 -0000 -------- In message <55734622.5090808@selasky.org>, Hans Petter Selasky writes: >I've come up with a smarter way to do it, which I think is more >acceptable. Simply we need to duplicate the ENTRY and HEAD macros for >use with classes. Then use __typeof() where pointers are referred inside >these macros. That's it. > >Can you checkout: > >https://reviews.freebsd.org/D2745 > >And give some comments? It's really a decision if we want to spread dependence on typeof() to /usr/include isn't it ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.