aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Antipov2015-01-16 14:41:20 +0300
committerDmitry Antipov2015-01-16 14:41:20 +0300
commit7ee2733f1ecd3d4f2bd782aa802b090c77fbb135 (patch)
tree630d68f6cbd86350adeddd59ba87eb105ff2ad0b
parentb689b906f27c326c4c7531d4987ffaae49b50dcd (diff)
downloademacs-7ee2733f1ecd3d4f2bd782aa802b090c77fbb135.tar.gz
emacs-7ee2733f1ecd3d4f2bd782aa802b090c77fbb135.zip
Tiny lisp.h cleanup
* lisp.h (XTERMINAL): Add eassert. * process.c (make_lisp_proc): Now static here.
-rw-r--r--src/ChangeLog3
-rw-r--r--src/lisp.h8
-rw-r--r--src/process.c5
3 files changed, 10 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 63da5cbd972..0601e5a5aed 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -15,6 +15,9 @@
15 * window.c (allocate_window): Now static here. 15 * window.c (allocate_window): Now static here.
16 Use ALLOCATE_ZEROED_PSEUDOVECTOR. Add comment. 16 Use ALLOCATE_ZEROED_PSEUDOVECTOR. Add comment.
17 17
18 * lisp.h (XTERMINAL): Add eassert.
19 * process.c (make_lisp_proc): Now static here.
20
182015-01-16 Paul Eggert <eggert@cs.ucla.edu> 212015-01-16 Paul Eggert <eggert@cs.ucla.edu>
19 22
20 Give up on -Wsuggest-attribute=const 23 Give up on -Wsuggest-attribute=const
diff --git a/src/lisp.h b/src/lisp.h
index fd0a0342cf8..7c7d3f3e2e5 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -608,6 +608,7 @@ INLINE bool SUBRP (Lisp_Object);
608INLINE bool (SYMBOLP) (Lisp_Object); 608INLINE bool (SYMBOLP) (Lisp_Object);
609INLINE bool (VECTORLIKEP) (Lisp_Object); 609INLINE bool (VECTORLIKEP) (Lisp_Object);
610INLINE bool WINDOWP (Lisp_Object); 610INLINE bool WINDOWP (Lisp_Object);
611INLINE bool TERMINALP (Lisp_Object);
611INLINE struct Lisp_Save_Value *XSAVE_VALUE (Lisp_Object); 612INLINE struct Lisp_Save_Value *XSAVE_VALUE (Lisp_Object);
612INLINE struct Lisp_Symbol *(XSYMBOL) (Lisp_Object); 613INLINE struct Lisp_Symbol *(XSYMBOL) (Lisp_Object);
613INLINE void *(XUNTAG) (Lisp_Object, int); 614INLINE void *(XUNTAG) (Lisp_Object, int);
@@ -998,6 +999,7 @@ XWINDOW (Lisp_Object a)
998INLINE struct terminal * 999INLINE struct terminal *
999XTERMINAL (Lisp_Object a) 1000XTERMINAL (Lisp_Object a)
1000{ 1001{
1002 eassert (TERMINALP (a));
1001 return XUNTAG (a, Lisp_Vectorlike); 1003 return XUNTAG (a, Lisp_Vectorlike);
1002} 1004}
1003 1005
@@ -1060,12 +1062,6 @@ builtin_lisp_symbol (int index)
1060 return make_lisp_symbol (lispsym + index); 1062 return make_lisp_symbol (lispsym + index);
1061} 1063}
1062 1064
1063INLINE Lisp_Object
1064make_lisp_proc (struct Lisp_Process *p)
1065{
1066 return make_lisp_ptr (p, Lisp_Vectorlike);
1067}
1068
1069#define XSETINT(a, b) ((a) = make_number (b)) 1065#define XSETINT(a, b) ((a) = make_number (b))
1070#define XSETFASTINT(a, b) ((a) = make_natnum (b)) 1066#define XSETFASTINT(a, b) ((a) = make_natnum (b))
1071#define XSETCONS(a, b) ((a) = make_lisp_ptr (b, Lisp_Cons)) 1067#define XSETCONS(a, b) ((a) = make_lisp_ptr (b, Lisp_Cons))
diff --git a/src/process.c b/src/process.c
index 30380548210..0789f20f1d2 100644
--- a/src/process.c
+++ b/src/process.c
@@ -422,6 +422,11 @@ pset_write_queue (struct Lisp_Process *p, Lisp_Object val)
422} 422}
423 423
424 424
425static Lisp_Object
426make_lisp_proc (struct Lisp_Process *p)
427{
428 return make_lisp_ptr (p, Lisp_Vectorlike);
429}
425 430
426static struct fd_callback_data 431static struct fd_callback_data
427{ 432{