]> git.eshelyaron.com Git - emacs.git/commitdiff
make thread_check_current_buffer return bool
authorTom Tromey <tromey@redhat.com>
Tue, 27 Aug 2013 18:29:56 +0000 (12:29 -0600)
committerTom Tromey <tromey@redhat.com>
Tue, 27 Aug 2013 18:29:56 +0000 (12:29 -0600)
src/thread.c
src/thread.h

index ae2212e697d74b0522846f93dcadf4620b749397..20d0568bef598b17e06d0c89c796301f316381dc 100644 (file)
@@ -882,7 +882,7 @@ DEFUN ("all-threads", Fall_threads, Sall_threads, 0, 0, 0,
 
 \f
 
-int
+bool
 thread_check_current_buffer (struct buffer *buffer)
 {
   struct thread_state *iter;
@@ -893,10 +893,10 @@ thread_check_current_buffer (struct buffer *buffer)
        continue;
 
       if (iter->m_current_buffer == buffer)
-       return 1;
+       return true;
     }
 
-  return 0;
+  return false;
 }
 
 \f
index 231c7acc31f6913056aad512a023bf8b6bacfb34..2b9963423dbd17d1bdd30b473b5507aa645c9ea3 100644 (file)
@@ -241,6 +241,6 @@ int thread_select  (select_func *func, int max_fds, SELECT_TYPE *rfds,
                    SELECT_TYPE *wfds, SELECT_TYPE *efds, EMACS_TIME *timeout,
                    sigset_t *sigmask);
 
-int thread_check_current_buffer (struct buffer *);
+bool thread_check_current_buffer (struct buffer *);
 
 #endif /* THREAD_H */