diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-01-23 00:06:14 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-01-23 00:06:14 +0100 |
commit | fb8b2a9d6006077700e84b24d824180d2a433e1c (patch) | |
tree | fcf82a2bb4131246ebe1796bb8a2b6cc5bb0b602 /libguile/hashtab.c | |
parent | 967394bca716f70b65bdb243b748859a1e3ab8a6 (diff) | |
download | guile-fb8b2a9d6006077700e84b24d824180d2a433e1c.tar.gz |
Print the address of hash tables.
* libguile/hashtab.c (scm_i_hashtable_print): Print the address of EXP.
Diffstat (limited to 'libguile/hashtab.c')
-rw-r--r-- | libguile/hashtab.c | 7 |
1 files 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)), |