summaryrefslogtreecommitdiff
path: root/libguile/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/print.c')
-rw-r--r--libguile/print.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/libguile/print.c b/libguile/print.c
index 937454158..17153ba8f 100644
--- a/libguile/print.c
+++ b/libguile/print.c
@@ -70,7 +70,6 @@
#include "vm.h"
#include "weak-set.h"
#include "weak-table.h"
-#include "weak-vector.h"
#include "print.h"
@@ -564,8 +563,8 @@ scm_iprin1 (SCM exp, SCM port, scm_print_state *pstate)
}
static void
-print_vector_or_weak_vector (SCM v, size_t len, SCM (*ref) (SCM, size_t),
- SCM port, scm_print_state *pstate)
+print_vector (SCM v, size_t len, SCM (*ref) (SCM, size_t),
+ SCM port, scm_print_state *pstate)
{
long i;
long last = len - 1;
@@ -710,8 +709,8 @@ iprin1 (SCM exp, SCM port, scm_print_state *pstate)
break;
case scm_tc7_values:
scm_puts ("#<values (", port);
- print_vector_or_weak_vector (exp, scm_i_nvalues (exp),
- scm_c_value_ref, port, pstate);
+ print_vector (exp, scm_i_nvalues (exp), scm_c_value_ref, port,
+ pstate);
scm_puts (">", port);
break;
case scm_tc7_program:
@@ -771,18 +770,11 @@ iprin1 (SCM exp, SCM port, scm_print_state *pstate)
case scm_tc7_thread:
scm_i_print_thread (exp, port, pstate);
break;
- case scm_tc7_wvect:
- ENTER_NESTED_DATA (pstate, exp, circref);
- scm_puts ("#w(", port);
- print_vector_or_weak_vector (exp, scm_c_weak_vector_length (exp),
- scm_c_weak_vector_ref, port, pstate);
- EXIT_NESTED_DATA (pstate);
- break;
case scm_tc7_vector:
ENTER_NESTED_DATA (pstate, exp, circref);
scm_puts ("#(", port);
- print_vector_or_weak_vector (exp, SCM_SIMPLE_VECTOR_LENGTH (exp),
- scm_c_vector_ref, port, pstate);
+ print_vector (exp, SCM_SIMPLE_VECTOR_LENGTH (exp), scm_c_vector_ref,
+ port, pstate);
EXIT_NESTED_DATA (pstate);
break;
case scm_tc7_port: