diff options
| author | Alan Mackenzie | 2017-02-05 16:28:53 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2017-02-05 16:28:53 +0000 |
| commit | d5514332d4a6092673ce1f78fadcae0c57f7be64 (patch) | |
| tree | 1780337154904dcfad8ecfa76614b47c082160dd /src/window.h | |
| parent | cecc25c68f5a1834c356e18259aa2af402a70ce1 (diff) | |
| parent | de3336051ef74e0c3069374ced5b5fc7bb9fba15 (diff) | |
| download | emacs-d5514332d4a6092673ce1f78fadcae0c57f7be64.tar.gz emacs-d5514332d4a6092673ce1f78fadcae0c57f7be64.zip | |
Merge branch 'master' into comment-cache
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/window.h b/src/window.h index 4a102f2246e..061cf244943 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Window definitions for GNU Emacs. | 1 | /* Window definitions for GNU Emacs. |
| 2 | Copyright (C) 1985-1986, 1993, 1995, 1997-2016 Free Software | 2 | Copyright (C) 1985-1986, 1993, 1995, 1997-2017 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -397,6 +397,25 @@ struct window | |||
| 397 | ptrdiff_t window_end_bytepos; | 397 | ptrdiff_t window_end_bytepos; |
| 398 | }; | 398 | }; |
| 399 | 399 | ||
| 400 | INLINE bool | ||
| 401 | WINDOWP (Lisp_Object a) | ||
| 402 | { | ||
| 403 | return PSEUDOVECTORP (a, PVEC_WINDOW); | ||
| 404 | } | ||
| 405 | |||
| 406 | INLINE void | ||
| 407 | CHECK_WINDOW (Lisp_Object x) | ||
| 408 | { | ||
| 409 | CHECK_TYPE (WINDOWP (x), Qwindowp, x); | ||
| 410 | } | ||
| 411 | |||
| 412 | INLINE struct window * | ||
| 413 | XWINDOW (Lisp_Object a) | ||
| 414 | { | ||
| 415 | eassert (WINDOWP (a)); | ||
| 416 | return XUNTAG (a, Lisp_Vectorlike); | ||
| 417 | } | ||
| 418 | |||
| 400 | /* Most code should use these functions to set Lisp fields in struct | 419 | /* Most code should use these functions to set Lisp fields in struct |
| 401 | window. */ | 420 | window. */ |
| 402 | INLINE void | 421 | INLINE void |