summaryrefslogtreecommitdiff
path: root/libguile/print.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2017-09-22 11:23:00 +0200
committerAndy Wingo <wingo@pobox.com>2017-09-22 11:35:36 +0200
commit04f48e94b573eaede0751110c583293cc34cd8f9 (patch)
treeb4062d8108445ccd0ef0adcb14c6cdc96ea41fcf /libguile/print.h
parent9ac0544efff1ce5c9e5a4dcf6477cf2794d11ef0 (diff)
downloadguile-04f48e94b573eaede0751110c583293cc34cd8f9.tar.gz
Deprecate struct "self" slots
* libguile/print.h (SCM_PRINT_STATE_LAYOUT): Use a normal slot instead of a self slot. * libguile/print.c (make_print_state): Initialize "handle" slot manually. * libguile/struct.c (issue_deprecation_warning_for_self_slots): New helper, called when making vtables to issue deprecation warnings for "self" slots. Avoids warning for the "self" slot that's part of the fixed vtable slots. (scm_i_struct_inherit_vtable_magic): Call issue_deprecation_warning_for_self_slots. * doc/ref/api-data.texi (Vtables, Structure Basics): Remove references to self slots. * NEWS: Add entry.
Diffstat (limited to 'libguile/print.h')
-rw-r--r--libguile/print.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/print.h b/libguile/print.h
index 14318c031..11f533c79 100644
--- a/libguile/print.h
+++ b/libguile/print.h
@@ -4,7 +4,7 @@
#define SCM_PRINT_H
/* Copyright (C) 1995, 1996, 1998, 2000, 2001, 2003, 2004, 2006, 2008,
- * 2010, 2012 Free Software Foundation, Inc.
+ * 2010, 2012, 2017 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
@@ -53,7 +53,7 @@ do { \
#define SCM_COERCE_OUTPORT(p) \
(SCM_PORT_WITH_PS_P (p) ? SCM_PORT_WITH_PS_PORT (p) : p)
-#define SCM_PRINT_STATE_LAYOUT "sruwuwuwuwuwpwuwuwurprpw"
+#define SCM_PRINT_STATE_LAYOUT "pruwuwuwuwuwpwuwuwurprpw"
typedef struct scm_print_state {
SCM handle; /* Struct handle */
int revealed; /* Has the state escaped to Scheme? */