X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/b14e3e21ec6702d27257a1400681fc36ee10282f..23ffeb9015ca3669995b9a5d47cfc09b7643d9b9:/src/disptab.h diff --git a/src/disptab.h b/src/disptab.h index be611cb8a9..7afc862312 100644 --- a/src/disptab.h +++ b/src/disptab.h @@ -1,5 +1,5 @@ /* Things for GLYPHS and glyph tables. - Copyright (C) 1993, 2001-2011 Free Software Foundation, Inc. + Copyright (C) 1993, 2001-2015 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -48,13 +48,10 @@ extern struct Lisp_Char_Table *window_display_table (struct window *); /* Defined in indent.c. */ extern struct Lisp_Char_Table *buffer_display_table (void); -/* This is the `purpose' slot of a display table. */ -extern Lisp_Object Qdisplay_table; - /* Return the current length of the GLYPH table, or 0 if the table isn't currently valid. */ #define GLYPH_TABLE_LENGTH \ - ((VECTORP (Vglyph_table)) ? XVECTOR (Vglyph_table)->size : 0) + ((VECTORP (Vglyph_table)) ? ASIZE (Vglyph_table) : 0) /* Return the current base (for indexing) of the GLYPH table, or 0 if the table isn't currently valid. */ @@ -80,7 +77,7 @@ extern Lisp_Object Qdisplay_table; SET_GLYPH_CHAR ((g), XINT ((base)[GLYPH_CHAR (g)])); \ if (!GLYPH_CHAR_VALID_P (g)) \ SET_GLYPH_CHAR (g, ' '); \ - } while (0) + } while (false) /* Assuming that GLYPH_SIMPLE_P (BASE, LEN, G) is 0, return the length and the address of the character-sequence @@ -95,4 +92,3 @@ extern Lisp_Object Qdisplay_table; #define SET_GLYPH_FROM_CHAR(glyph, c) \ SET_GLYPH (glyph, c, DEFAULT_FACE_ID) -