From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#11764: Missing C API doc for accessing unknown number of values Date: Wed, 04 Jul 2012 17:52:37 +0200 Message-ID: <87fw97a5h6.fsf@pobox.com> References: <87pq8r74w7.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341417210 10121 80.91.229.3 (4 Jul 2012 15:53:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2012 15:53:30 +0000 (UTC) Cc: 11764-done@debbugs.gnu.org To: David Kastrup Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jul 04 17:53:28 2012 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SmRtO-0007Vt-L0 for guile-bugs@m.gmane.org; Wed, 04 Jul 2012 17:53:26 +0200 Original-Received: from localhost ([::1]:32966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmRtN-00046k-Oc for guile-bugs@m.gmane.org; Wed, 04 Jul 2012 11:53:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmRtJ-00046P-G4 for bug-guile@gnu.org; Wed, 04 Jul 2012 11:53:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmRtD-0006Al-5R for bug-guile@gnu.org; Wed, 04 Jul 2012 11:53:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmRtC-0006AW-W0 for bug-guile@gnu.org; Wed, 04 Jul 2012 11:53:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SmRxq-0007eA-1t for bug-guile@gnu.org; Wed, 04 Jul 2012 11:58:02 -0400 Resent-From: Andy Wingo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-guile@gnu.org Resent-Date: Wed, 04 Jul 2012 15:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 11764 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 11764@debbugs.gnu.org, wingo@pobox.com Original-Received: via spool by 11764-done@debbugs.gnu.org id=D11764.134141745629359 (code D ref 11764); Wed, 04 Jul 2012 15:58:01 +0000 Original-Received: (at 11764-done) by debbugs.gnu.org; 4 Jul 2012 15:57:36 +0000 Original-Received: from localhost ([127.0.0.1]:48156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmRxP-0007dS-63 for submit@debbugs.gnu.org; Wed, 04 Jul 2012 11:57:36 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:40539 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmRxM-0007dL-UA for 11764-done@debbugs.gnu.org; Wed, 04 Jul 2012 11:57:33 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by b-pb-sasl-sd.pobox.com (Postfix) with ESMTP id F0F5BBEC2; Wed, 4 Jul 2012 11:52:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=SPfJ8crCYiZf6vcNI8/5gJOQZzQ=; b=OR9SXi MGrxYIuLWKKhSW02rh4JOhDyYIe35b5MZnSojqdIVB+VrK8DkTO/qAzV03ak2Twx GIE6R96uUak7gr+y1+svzZUPM5zJFvyB8NwASGqzjyRGKbulFxN6HbdGmB4qkVsn E4am7gjqzTUmKKpyQCMRIhi+hDBXqtdSbhNXU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=CbYi/8RtIFkituCgNpzF7x4svqHS0smX qg3P84EBIk2lABRmMdkckJQqWJHAcaHsen4au4Gy4ypmeGWyD7kx3YKtNAfi/DSR oid5iNiylUEW+Epir/HG9lCWIYC5C1KUDl3WGDj/4JPXhrWWJc+m1mItcImGSWP/ nbkvHj1M1bY= Original-Received: from b-pb-sasl-sd. (unknown [127.0.0.1]) by b-pb-sasl-sd.pobox.com (Postfix) with ESMTP id E8413BEC1; Wed, 4 Jul 2012 11:52:44 -0400 (EDT) Original-Received: from badger (unknown [80.102.218.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by b-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 58890BEC0; Wed, 4 Jul 2012 11:52:44 -0400 (EDT) In-Reply-To: <87pq8r74w7.fsf@fencepost.gnu.org> (David Kastrup's message of "Fri, 22 Jun 2012 17:17:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-Pobox-Relay-ID: 4B5C59EC-C5F0-11E1-9610-FA6787E41631-02397024!b-pb-sasl-sd.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6382 Archived-At: Hi David, Thanks for the report. I've added this somewhat strangely named function: -- C Function: size_t scm_c_nvalues (SCM obj) If OBJ is a multiple-values object, returns the number of values it contains. Otherwise returns 1. Incidentally there is also this new one: -- C Function: SCM scm_c_values (SCM *base, size_t n) `scm_c_values' is an alternative to `scm_values'. It creates a new values object, and copies into it the N values starting from BASE. Currently this creates a list and passes it to `scm_values', but we expect that in the future we will be able to use more a efficient representation. Suggestions for different names are welcome. Regards, Andy -- http://wingolog.org/