From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.user Subject: Re: ptobs for Guile 2.2+ Date: Sun, 13 Dec 2020 17:25:51 +0100 Message-ID: <874kkpzn8w.fsf@gnu.org> References: <87wnxmdrfv.fsf@gnuvola.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21727"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: guile-user@gnu.org Cancel-Lock: sha1:k9vaB/OKBXdFpOZYvkkHXt4u6f4= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Dec 13 17:26:11 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koUCJ-0005ZV-8d for guile-user@m.gmane-mx.org; Sun, 13 Dec 2020 17:26:11 +0100 Original-Received: from localhost ([::1]:55184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koUCI-0002a2-Ai for guile-user@m.gmane-mx.org; Sun, 13 Dec 2020 11:26:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koUC8-0002Zt-TG for guile-user@gnu.org; Sun, 13 Dec 2020 11:26:00 -0500 Original-Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:44302 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koUC7-0000hS-Gt for guile-user@gnu.org; Sun, 13 Dec 2020 11:26:00 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1koUC4-0005GK-Cx for guile-user@gnu.org; Sun, 13 Dec 2020 17:25:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 Frimaire an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Received-SPF: pass client-ip=116.202.254.214; envelope-from=guile-user@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17082 Archived-At: Hi ttn, Thien-Thi Nguyen skribis: > I'm trying to upgrade Guile-PG for Guile 2.2 (and possibly 3.0). > It currently uses ptobs for the large object ("lobj") support in > libpq, mostly for buffering and buffer synchronization. I see > in libguile/ports.h (Guile 2.0.13), however: > > /* Hey you! Yes you, reading the header file! We're going to > deprecate scm_ptobs in 2.2, so please don't write any new > code that uses it. Thanks. */ > > So, what do people do for "old" code that currently uses ptobs > (i.e., for Guile 2.0 and earlier)? Is there a recommended > migration path (besides "give up" :-D)? What am i missing? Giving up sounds like a reasonable strategy to me at this point in time. :-) If you want to do it anyway, I know GDB and GnuTLS have port code that deals with both 2.0 and 2.2/3.0, perhaps that can help. HTH, Ludo’.