From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: scm_add_to_port_table replacement Date: Fri, 09 Jan 2015 15:44:17 +0100 Message-ID: <87zj9s2ev2.fsf@gnu.org> References: <871tn4uyt9.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1420815617 16438 80.91.229.3 (9 Jan 2015 15:00:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2015 15:00:17 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 09 16:00:11 2015 Return-path: Envelope-to: guile-user@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 1Y9b0K-0003bE-4Q for guile-user@m.gmane.org; Fri, 09 Jan 2015 15:57:36 +0100 Original-Received: from localhost ([::1]:50964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9b0J-0005YK-Dq for guile-user@m.gmane.org; Fri, 09 Jan 2015 09:57:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9b06-0005Xy-MT for guile-user@gnu.org; Fri, 09 Jan 2015 09:57:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9b01-0001sv-QX for guile-user@gnu.org; Fri, 09 Jan 2015 09:57:22 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9b01-0001sH-KY for guile-user@gnu.org; Fri, 09 Jan 2015 09:57:17 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y9au0-00059q-KE for guile-user@gnu.org; Fri, 09 Jan 2015 15:51:04 +0100 Original-Received: from pluto.bordeaux.inria.fr ([193.50.110.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2015 15:51:04 +0100 Original-Received: from ludo by pluto.bordeaux.inria.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2015 15:51:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pluto.bordeaux.inria.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 =?utf-8?Q?Niv=C3=B4se?= an 223 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:rLeeEew0Eb7vRVp7Q6OylRoa95Y= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11732 Archived-At: Thien-Thi Nguyen skribis: > One of the last remaining ‘GUILE_WARN_DEPRECATED=detailed’ > nits is ‘scm_add_to_port_table’: > > libpq.c:203:3: warning: ‘scm_add_to_port_table’ is deprecated (declared at /home/ttn/eep/include/guile/2.0/libguile/ports.h:344) [-Wdeprecated-declarations] > > Where can i find documentation on its replacement, please? The ‘lob_mklobport’ function in libpq.c should be changed to use something like: SCM port; scm_t_port *c_port; const unsigned long mode_bits = SCM_OPN | SCM_RDNG | SCM_WRTNG; port = scm_new_port_table_entry (session_record_port_type); c_port = SCM_PTAB_ENTRY (port); SCM_SET_CELL_TYPE (port, session_record_port_type | mode_bits); This has been supported in both 1.8 and 2.0 (perhaps 1.6 as well.) HTH, Ludo’.