From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Hulin Newsgroups: gmane.lisp.guile.user Subject: Deprecation question - is proposed code-change back-portable to V1.8.7? Date: Thu, 16 Aug 2012 12:30:26 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345121976 13131 80.91.229.3 (16 Aug 2012 12:59:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2012 12:59:36 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Aug 16 14:59:35 2012 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 1T1zfZ-0002Ot-OO for guile-user@m.gmane.org; Thu, 16 Aug 2012 14:59:25 +0200 Original-Received: from localhost ([::1]:54012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1zfY-0006EE-NB for guile-user@m.gmane.org; Thu, 16 Aug 2012 08:59:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1yHe-0007by-RT for guile-user@gnu.org; Thu, 16 Aug 2012 07:30:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1yHe-0001qR-11 for guile-user@gnu.org; Thu, 16 Aug 2012 07:30:38 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1yHd-0001q9-QX for guile-user@gnu.org; Thu, 16 Aug 2012 07:30:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T1yHb-0005v3-Mu for guile-user@gnu.org; Thu, 16 Aug 2012 13:30:35 +0200 Original-Received: from cpc5-rdng21-2-0-cust316.15-3.cable.virginmedia.com ([86.28.109.61]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2012 13:30:35 +0200 Original-Received: from ian by cpc5-rdng21-2-0-cust316.15-3.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2012 13:30:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpc5-rdng21-2-0-cust316.15-3.cable.virginmedia.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 X-Enigmail-Version: 1.4.3 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-Mailman-Approved-At: Thu, 16 Aug 2012 08:58:52 -0400 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:9551 Hi all, In working with Guile V2.0.6, compiling the following code gives deprecation errors for both scm_sym2var and scm_module_lookup_closure. >From looking at the docs following the recommendations in the deprecation messages, it looks like the offending line needs to change to return scm_module_variable ( module, sym); Does scm_module_variable internally do what scm_module_lookup_closure did, and if so, does Guile 1.8.7 do exactly the same as Guile 2.06? Asking hear as we're getting near to a release and I don't want to break anything bigtime on the LilyPond repo. Cheers, Ian Hulin /* Lookup SYM, but don't give error when it is not defined. */ SCM ly_module_lookup (SCM module, SCM sym) { #define FUNC_NAME __FUNCTION__ SCM_VALIDATE_MODULE (1, module); return scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F); #undef FUNC_NAME }