aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.h
diff options
context:
space:
mode:
authorAlan Mackenzie2017-02-05 16:28:53 +0000
committerAlan Mackenzie2017-02-05 16:28:53 +0000
commitd5514332d4a6092673ce1f78fadcae0c57f7be64 (patch)
tree1780337154904dcfad8ecfa76614b47c082160dd /src/window.h
parentcecc25c68f5a1834c356e18259aa2af402a70ce1 (diff)
parentde3336051ef74e0c3069374ced5b5fc7bb9fba15 (diff)
downloademacs-d5514332d4a6092673ce1f78fadcae0c57f7be64.tar.gz
emacs-d5514332d4a6092673ce1f78fadcae0c57f7be64.zip
Merge branch 'master' into comment-cache
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h21
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
5This file is part of GNU Emacs. 5This 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
400INLINE bool
401WINDOWP (Lisp_Object a)
402{
403 return PSEUDOVECTORP (a, PVEC_WINDOW);
404}
405
406INLINE void
407CHECK_WINDOW (Lisp_Object x)
408{
409 CHECK_TYPE (WINDOWP (x), Qwindowp, x);
410}
411
412INLINE struct window *
413XWINDOW (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. */
402INLINE void 421INLINE void