From 5d971db802eaa8038db17e1aa5b4c69452739744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 9 Jan 2015 15:47:15 +0100 Subject: [PATCH] Improve deprecation message of 'scm_add_to_port_table'. Reported by Thien-Thi Nguyen . * libguile/ports.c (scm_add_to_port_table): Mention 'scm_new_port_table_entry'. --- libguile/ports.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libguile/ports.c b/libguile/ports.c index be12a8d5e..f5d528462 100644 --- a/libguile/ports.c +++ b/libguile/ports.c @@ -1,6 +1,6 @@ /* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2006, * 2007, 2008, 2009, 2010, 2011, 2012, 2013, - * 2014 Free Software Foundation, Inc. + * 2014, 2015 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -702,7 +702,8 @@ scm_add_to_port_table (SCM port) SCM z; scm_t_port * pt; - scm_c_issue_deprecation_warning ("scm_add_to_port_table is deprecated."); + scm_c_issue_deprecation_warning ("'scm_add_to_port_table' is deprecated. " + "Use 'scm_new_port_table_entry' instead."); scm_i_pthread_mutex_lock (&scm_i_port_table_mutex); z = scm_new_port_table_entry (scm_tc7_port);