unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] Don't use deprecated function
@ 2008-12-13 23:18 Linas Vepstas
  2008-12-18 21:44 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Linas Vepstas @ 2008-12-13 23:18 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 859 bytes --]

The scm_makfrom0str routie is deprecated, don't use it.

Signed-off-by: Linas Vepstas <linasvepstas@gmail.com>


---
 libguile/debug-malloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: guile-1.8.6/libguile/debug-malloc.c
===================================================================
--- guile-1.8.6.orig/libguile/debug-malloc.c 2008-12-04 12:30:41.000000000 -0600
+++ guile-1.8.6/libguile/debug-malloc.c   2008-12-13 17:12:39.000000000 -0600
@@ -220,7 +220,7 @@ SCM_DEFINE (scm_malloc_stats, "malloc-st
   int i;
   for (i = 0; i < malloc_type_size + N_SEEK; ++i)
     if (malloc_type[i].key)
-      res = scm_acons (scm_makfrom0str ((char *) malloc_type[i].key),
+      res = scm_acons (scm_from_locale_string ((char *) malloc_type[i].key),
             scm_from_int ((int) malloc_type[i].data),
             res);
   return res;

[-- Attachment #2: debug-patch --]
[-- Type: application/octet-stream, Size: 947 bytes --]


Date: 13 December 2008
To: guile-devel@gnu.org
Subject: [PATCH] Don't use deprecated function

The scm_makfrom0str routie is deprecated, don't use it.

Signed-off-by: Linas Vepstas <linasvepstas@gmail.com>


---
 libguile/debug-malloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: guile-1.8.6/libguile/debug-malloc.c
===================================================================
--- guile-1.8.6.orig/libguile/debug-malloc.c	2008-12-04 12:30:41.000000000 -0600
+++ guile-1.8.6/libguile/debug-malloc.c	2008-12-13 17:12:39.000000000 -0600
@@ -220,7 +220,7 @@ SCM_DEFINE (scm_malloc_stats, "malloc-st
   int i;
   for (i = 0; i < malloc_type_size + N_SEEK; ++i)
     if (malloc_type[i].key)
-      res = scm_acons (scm_makfrom0str ((char *) malloc_type[i].key),
+      res = scm_acons (scm_from_locale_string ((char *) malloc_type[i].key),
 		       scm_from_int ((int) malloc_type[i].data),
 		       res);
   return res;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Don't use deprecated function
  2008-12-13 23:18 [PATCH] Don't use deprecated function Linas Vepstas
@ 2008-12-18 21:44 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2008-12-18 21:44 UTC (permalink / raw)
  To: guile-devel

"Linas Vepstas" <linasvepstas@gmail.com> writes:

> The scm_makfrom0str routie is deprecated, don't use it.

Thanks, committed!

Ludo'.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-18 21:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-13 23:18 [PATCH] Don't use deprecated function Linas Vepstas
2008-12-18 21:44 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).