From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: scm_to_pointer vs scm->pointer Date: Mon, 02 Jul 2012 23:38:28 +0200 Message-ID: <871uktsv1n.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1341265132 20591 80.91.229.3 (2 Jul 2012 21:38:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2012 21:38:52 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jul 02 23:38:51 2012 Return-path: Envelope-to: guile-devel@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 1SloKS-0007HX-6o for guile-devel@m.gmane.org; Mon, 02 Jul 2012 23:38:44 +0200 Original-Received: from localhost ([::1]:41641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SloKR-0004Lp-8V for guile-devel@m.gmane.org; Mon, 02 Jul 2012 17:38:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SloKN-0004Lk-Dm for guile-devel@gnu.org; Mon, 02 Jul 2012 17:38:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SloKL-0005Bv-Jx for guile-devel@gnu.org; Mon, 02 Jul 2012 17:38:38 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:56870 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SloKL-0005B1-BA for guile-devel@gnu.org; Mon, 02 Jul 2012 17:38:37 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by b-pb-sasl-sd.pobox.com (Postfix) with ESMTP id F1AA6C134 for ; Mon, 2 Jul 2012 17:38:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:mime-version:content-type; s=sasl; bh=D f+cvKFbehyhQrvmir+HqrolwnI=; b=eNTdKi2W+R9SFEmt/AmobqaL+SITRueh6 f34+UgFxa28Hcms5x+DDx31rwsXa1C1TrRybKqzwrdbCPC1gNMAdT65zzQX/OAbT munX+OCJ5UmLnuf86kvU2tC5xb9xu1sgToeYV1Zh3Aj+6/ZWfBZyrYdtl+M3/dAK FPcA3Ao9OU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=sasl; b=srf sVCwq1KZQb18WoBmSTx3CvlILdzk+FFn2E/1UTgd/mBwHqZAowbRFKIAPacr4Wcb ihHEIiE/w4tQAfjZCaAR2urxaQxZrPjcH7kYlEbs/OfLcOd01bv36NBiqQ48c+0m EdVyQ4o/mFXPRMedntbJRaPpE4t69nNaoWa4SU6M= Original-Received: from b-pb-sasl-sd. (unknown [127.0.0.1]) by b-pb-sasl-sd.pobox.com (Postfix) with ESMTP id E9DD7C133 for ; Mon, 2 Jul 2012 17:38:31 -0400 (EDT) Original-Received: from badger (unknown [89.131.176.233]) (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 5BD75C132 for ; Mon, 2 Jul 2012 17:38:31 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Pobox-Relay-ID: 44B965DE-C48E-11E1-B812-FA6787E41631-02397024!b-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14690 Archived-At: Hello, scm->pointer takes a Scheme value and returns a Scheme value which is a foreign pointer to the Scheme value. It has been in Guile since 2.0 I think. scm_to_pointer takes a Scheme value which is a foreign pointer, and unpacks that foregin pointer as a void*. scm_to_pointer is a new interface in master that is not in 2.0.5, and that is inconsistent with scm->pointer / scm_scm_to_pointer. This should be fixed. Otherwise it's impossible to document in any sane fashion. Suggestion: change scm_to_pointer to SCM_POINTER_VALUE. WDYT? Andy -- http://wingolog.org/