Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhBd0-00072t-BI for qemu-devel@nongnu.org; Fri, 28 Aug 2009 20:17:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhBct-00070z-SO for qemu-devel@nongnu.org; Fri, 28 Aug 2009 20:17:09 -0400 Received: from [199.232.76.173] (port=36325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhBct-00070g-M9 for qemu-devel@nongnu.org; Fri, 28 Aug 2009 20:17:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17394) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MhBct-000173-A5 for qemu-devel@nongnu.org; Fri, 28 Aug 2009 20:17:03 -0400 From: Juan Quintela In-Reply-To: (malc's message of "Sat, 29 Aug 2009 00:21:34 +0400 (MSD)") References: <1251481751-27326-1-git-send-email-quintela@redhat.com> Date: Sat, 29 Aug 2009 02:14:26 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH] Remove HAS_YMF262 conditional code List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: qemu-devel@nongnu.org malc wrote: > On Fri, 28 Aug 2009, Juan Quintela wrote: > >> malc wrote: >> > On Fri, 28 Aug 2009, Juan Quintela wrote: >> > >> >> HAS_YMF262 is not defined anywhere, and use functinos that are not >> >> in the tree. >> > >> > It doesn't hurt anyone, and should stay for those who want OPL3. >> > >> > [..snip..] >> >> We don't have the functions that they protect from. > diff --git a/hw/adlib.c b/hw/adlib.c > index e1e4077..8b77ebd 100644 > --- a/hw/adlib.c > +++ b/hw/adlib.c > @@ -42,14 +42,8 @@ > #define ldebug(...) > #endif > > -#ifdef HAS_YMF262 > -#include "ymf262.h" $ find . -type f -name "ymf262.h" $ > -void YMF262UpdateOneQEMU (int which, INT16 *dst, int length); $ find . -type f -name "*.[ch]" | xargs grep YMF262UpdateOneQEMU ./hw/adlib.c:void YMF262UpdateOneQEMU (int which, INT16 *dst, int length); ./hw/adlib.c: YMF262UpdateOneQEMU (0, s->mixbuf + s->pos * 2, samples); $ > - YMF262TimerOver (0, n); $ find . -type f -name "*.[ch]" | xargs grep YMF262TimerOver ./hw/adlib.c: YMF262TimerOver (0, n); $ > - status = YMF262Write (0, a, val); $ find . -type f -name "*.[ch]" | xargs grep YMF262Write ./hw/adlib.c: status = YMF262Write (0, a, val); $ I.e. We don't have defined that functions anywhere in the source code. Are I missing something obvious? Later, Juan.