From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3860 invoked by alias); 28 Feb 2011 09:08:12 -0000 Received: (qmail 3850 invoked by uid 22791); 28 Feb 2011 09:08:11 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-qw0-f41.google.com (HELO mail-qw0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Feb 2011 09:08:07 +0000 Received: by qwd7 with SMTP id 7so3352318qwd.0 for ; Mon, 28 Feb 2011 01:08:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.199.133 with SMTP id es5mr1331166qab.238.1298884085077; Mon, 28 Feb 2011 01:08:05 -0800 (PST) Received: by 10.224.205.134 with HTTP; Mon, 28 Feb 2011 01:08:05 -0800 (PST) In-Reply-To: References: <20110222154022.GA29862@davesworkthinkpad> <4D650ADE.6040609@linaro.org> <4D653C3D.2050107@linaro.org> <4D654655.5000503@linaro.org> <4D67AD61.9090106@linaro.org> Date: Mon, 28 Feb 2011 09:08:00 -0000 Message-ID: Subject: Re: [PATCH] Add variadic support From: David Gilbert To: Anthony Green Cc: Chung-Lin Tang , libffi-discuss@sourceware.org, Marcus.Shawcroft@arm.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org X-SW-Source: 2011/txt/msg00099.txt.bz2 On 25 February 2011 19:03, Anthony Green wrote: > Chung-Lin Tang writes: >> Anthony, as maintainer, do you have any ideas? >> > > I always envisioned it working this way: > > =A0- add a new FFI type, say FFI_TYPE_VARIADIC > =A0- users would just append this to the array of types when they > =A0 =A0create a cif for a variadic function > > No new API is required in this case. =A0Wouldn't this work? I think my main reason against that was it would require every backend to be modified to skip it (and skip a hole in the values array). Dave