summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-09-17 11:27:36 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-09-17 11:27:36 -0700
commit9356a87288edd2380ce27cd9775046675cd26f8c (patch)
treeb72b7d0a6c8ea65d594172a403df29fabd5e13c5 /src/buffer.h
parent18f88a41a740b43297e70ba169e5c2f847280d32 (diff)
downloademacs-9356a87288edd2380ce27cd9775046675cd26f8c.tar.gz
Fix minor problems found by static checking.
* alloc.c, lisp.h (SAVE_TYPE_INT_OBJ, make_save_int_obj): Remove; now unused. * buffer.h (decode_buffer): Doc and indentation fixes. * fns.c (Qstring_collate_lessp, Qstring_collate_equalp): Now static.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 61ef15d9c3d..284cfa7b4a8 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -1088,8 +1088,9 @@ extern void mmap_set_vars (bool);
extern void restore_buffer (Lisp_Object);
extern void set_buffer_if_live (Lisp_Object);
-INLINE
-struct buffer *
+/* Return B as a struct buffer pointer, defaulting to the current buffer. */
+
+INLINE struct buffer *
decode_buffer (Lisp_Object b)
{
return NILP (b) ? current_buffer : (CHECK_BUFFER (b), XBUFFER (b));