From fb8b2a9d6006077700e84b24d824180d2a433e1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 23 Jan 2012 00:06:14 +0100 Subject: [PATCH] Print the address of hash tables. * libguile/hashtab.c (scm_i_hashtable_print): Print the address of EXP. --- libguile/hashtab.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libguile/hashtab.c b/libguile/hashtab.c index c4f2b5eb0..1b02d4bf8 100644 --- a/libguile/hashtab.c +++ b/libguile/hashtab.c @@ -1,5 +1,6 @@ -/* Copyright (C) 1995,1996,1998,1999,2000,2001, 2003, 2004, 2006, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. - * +/* Copyright (C) 1995, 1996, 1998, 1999, 2000, 2001, 2003, 2004, 2006, + * 2008, 2009, 2010, 2011, 2012 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 * as published by the Free Software Foundation; either version 3 of @@ -394,6 +395,8 @@ scm_i_hashtable_print (SCM exp, SCM port, scm_print_state *pstate) else if (SCM_HASHTABLE_DOUBLY_WEAK_P (exp)) scm_puts ("doubly-weak-", port); scm_puts ("hash-table ", port); + scm_uintprint (SCM2PTR (exp), 16, port); + scm_putc (' ', port); scm_uintprint (SCM_HASHTABLE_N_ITEMS (exp), 10, port); scm_putc ('/', port); scm_uintprint (SCM_SIMPLE_VECTOR_LENGTH (SCM_HASHTABLE_VECTOR (exp)), -- 2.20.1