mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
Print the address of hash tables.
* libguile/hashtab.c (scm_i_hashtable_print): Print the address of EXP.
This commit is contained in:
parent
967394bca7
commit
fb8b2a9d60
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
/* 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
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public License
|
* modify it under the terms of the GNU Lesser General Public License
|
||||||
|
@ -394,6 +395,8 @@ scm_i_hashtable_print (SCM exp, SCM port, scm_print_state *pstate)
|
||||||
else if (SCM_HASHTABLE_DOUBLY_WEAK_P (exp))
|
else if (SCM_HASHTABLE_DOUBLY_WEAK_P (exp))
|
||||||
scm_puts ("doubly-weak-", port);
|
scm_puts ("doubly-weak-", port);
|
||||||
scm_puts ("hash-table ", 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_uintprint (SCM_HASHTABLE_N_ITEMS (exp), 10, port);
|
||||||
scm_putc ('/', port);
|
scm_putc ('/', port);
|
||||||
scm_uintprint (SCM_SIMPLE_VECTOR_LENGTH (SCM_HASHTABLE_VECTOR (exp)),
|
scm_uintprint (SCM_SIMPLE_VECTOR_LENGTH (SCM_HASHTABLE_VECTOR (exp)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue