Print the address of hash tables.
authorLudovic Courtès <ludo@gnu.org>
Sun, 22 Jan 2012 23:06:14 +0000 (00:06 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 22 Jan 2012 23:06:14 +0000 (00:06 +0100)
* libguile/hashtab.c (scm_i_hashtable_print): Print the address of EXP.

libguile/hashtab.c

index c4f2b5e..1b02d4b 100644 (file)
@@ -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)),