Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JN3wl-0001qG-DX for qemu-devel@nongnu.org; Thu, 07 Feb 2008 05:25:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JN3wh-0001n6-9j for qemu-devel@nongnu.org; Thu, 07 Feb 2008 05:25:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JN3wg-0001mk-QU for qemu-devel@nongnu.org; Thu, 07 Feb 2008 05:25:30 -0500 Received: from smtp02.citrix.com ([66.165.176.63]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JN3wg-00046p-Es for qemu-devel@nongnu.org; Thu, 07 Feb 2008 05:25:30 -0500 Received: from mariner.uk.xensource.com (mariner.uk.xensource.com [172.31.17.38]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m17AOlbj022589 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 7 Feb 2008 02:24:48 -0800 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1JN3ur-0006lZ-RK for qemu-devel@nongnu.org; Thu, 07 Feb 2008 10:23:37 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18346.56361.659608.694217@mariner.uk.xensource.com> Date: Thu, 7 Feb 2008 10:23:37 +0000 Subject: Re: [Qemu-devel] [PATCH] avoid name clashes due to LIST_* macros In-Reply-To: <47AA0723.7050701@codemonkey.ws> References: <18328.31569.260208.382120@mariner.uk.xensource.com> <47AA0723.7050701@codemonkey.ws> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori writes ("Re: [Qemu-devel] [PATCH] avoid name clashes due to LIST_* macros"): > Ian Jackson wrote: > > qemu's audio subdirectory contains a copy of BSD's sys-queue.h, which > > defines a bunch of LIST_ macros. This makes it difficult to build a > > program made partly out of qemu and partly out of the Linux kernel[1], > > since Linux has a different set of LIST_ macros. It might also cause > > trouble when mixing with BSD-derived code. > > That doesn't seem like a very good justification. If you're mixing QEMU > code with other code, Well, surely with something like qemu one might expect to mix the code with other things ? Or is it the view of qemu upstream that qemu is not supposed to be portable to such embedded environments derived from Linux ? (Or BSD for that matter - since these LIST_* names came from BSD originally.) > it's easier for you to maintain these merge > conflict fixes as normal QEMU developers would have no idea what it > wasn't okay to just use LIST_xxx This merge conflict is impractical to fix every time. Surely it is better just to fix it once in one place ? Normal qemu developers will know that they can use QEMU_LIST_... because that's what will be defined in the qemu tree. qemu developers who copy-and-paste code from other projects should IMO think more carefully about name clashes. Ian.