diff src/objects-tty-impl.h @ 5118:e0db3c197671 ben-lisp-object

merge up to latest default branch, doesn't compile yet
author Ben Wing <ben@xemacs.org>
date Sat, 26 Dec 2009 21:18:49 -0600
parents 141c2920ea48
children d1247f3cc363
line wrap: on
line diff
--- a/src/objects-tty-impl.h	Sat Dec 26 00:20:27 2009 -0600
+++ b/src/objects-tty-impl.h	Sat Dec 26 21:18:49 2009 -0600
@@ -29,9 +29,25 @@
 
 struct tty_color_instance_data
 {
+#ifdef NEW_GC
+  struct lrecord_header header;
+#endif /* NEW_GC */
   Lisp_Object symbol; /* so we don't have to constantly call Fintern() */
 };
 
+#ifdef NEW_GC
+DECLARE_LISP_OBJECT (tty_color_instance_data, struct tty_color_instance_data);
+#define XTTY_COLOR_INSTANCE_DATA(x) \
+  XRECORD (x, tty_color_instance_data, struct tty_color_instance_data)
+#define wrap_tty_color_instance_data(p) \
+  wrap_record (p, tty_color_instance_data)
+#define TTY_COLOR_INSTANCE_DATAP(x) RECORDP (x, tty_color_instance_data)
+#define CHECK_TTY_COLOR_INSTANCE_DATA(x) \
+  CHECK_RECORD (x, tty_color_instance_data)
+#define CONCHECK_TTY_COLOR_INSTANCE_DATA(x) \
+  CONCHECK_RECORD (x, tty_color_instance_data)
+#endif /* NEW_GC */
+
 #define TTY_COLOR_INSTANCE_DATA(c) 				\
   ((struct tty_color_instance_data *) (c)->data)
 
@@ -39,9 +55,25 @@
 
 struct tty_font_instance_data
 {
+#ifdef NEW_GC
+  struct lrecord_header header;
+#endif /* NEW_GC */
   Lisp_Object charset;
 };
 
+#ifdef NEW_GC
+DECLARE_LISP_OBJECT (tty_font_instance_data, struct tty_font_instance_data);
+#define XTTY_FONT_INSTANCE_DATA(x) \
+  XRECORD (x, tty_font_instance_data, struct tty_font_instance_data)
+#define wrap_tty_font_instance_data(p) \
+  wrap_record (p, tty_font_instance_data)
+#define TTY_FONT_INSTANCE_DATAP(x) RECORDP (x, tty_font_instance_data)
+#define CHECK_TTY_FONT_INSTANCE_DATA(x) \
+  CHECK_RECORD (x, tty_font_instance_data)
+#define CONCHECK_TTY_FONT_INSTANCE_DATA(x) \
+  CONCHECK_RECORD (x, tty_font_instance_data)
+#endif /* NEW_GC */
+
 #define TTY_FONT_INSTANCE_DATA(c) 				\
   ((struct tty_font_instance_data *) (c)->data)