Mercurial > emacs
changeset 9961:5ecf054a8c8f
(XSCROLL_BAR): Extract from Lisp_Vector, not generic pointer.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 16 Nov 1994 01:31:04 +0000 |
parents | d7735c829d73 |
children | 72bee09fc541 |
files | src/xterm.h |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.h Wed Nov 16 01:26:39 1994 +0000 +++ b/src/xterm.h Wed Nov 16 01:31:04 1994 +0000 @@ -527,12 +527,13 @@ }; /* The number of elements a vector holding a struct scroll_bar needs. */ -#define SCROLL_BAR_VEC_SIZE \ - ((sizeof (struct scroll_bar) - sizeof (EMACS_INT) - sizeof (struct Lisp_Vector *)) \ +#define SCROLL_BAR_VEC_SIZE \ + ((sizeof (struct scroll_bar) \ + - sizeof (EMACS_INT) - sizeof (struct Lisp_Vector *)) \ / sizeof (Lisp_Object)) /* Turning a lisp vector value into a pointer to a struct scroll_bar. */ -#define XSCROLL_BAR(vec) ((struct scroll_bar *) XPNTR (vec)) +#define XSCROLL_BAR(vec) ((struct scroll_bar *) XVECTOR (vec)) /* Building a 32-bit C integer from two 16-bit lisp integers. */