changeset 9130:3f978b13dd81

(unlock_all_files, Funlock_buffer, unlock_buffer): Use type test macros.
author Karl Heuer <kwzh@gnu.org>
date Tue, 27 Sep 1994 03:01:57 +0000
parents b2d1d925d5cc
children 2190d1e7a69f
files src/filelock.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Tue Sep 27 03:01:14 1994 +0000
+++ b/src/filelock.c	Tue Sep 27 03:01:57 1994 +0000
@@ -382,8 +382,7 @@
        tail = XCONS (tail)->cdr)
     {
       b = XBUFFER (XCONS (XCONS (tail)->car)->cdr);
-      if (XTYPE (b->filename) == Lisp_String &&
-	  b->save_modified < BUF_MODIFF (b))
+      if (STRINGP (b->filename) && b->save_modified < BUF_MODIFF (b))
 	unlock_file (b->filename);
     }
 }
@@ -414,7 +413,7 @@
   ()
 {
   if (current_buffer->save_modified < MODIFF &&
-      XTYPE (current_buffer->filename) == Lisp_String)
+      STRINGP (current_buffer->filename))
     unlock_file (current_buffer->filename);
   return Qnil;
 }
@@ -426,7 +425,7 @@
      struct buffer *buffer;
 {
   if (buffer->save_modified < BUF_MODIFF (buffer) &&
-      XTYPE (buffer->filename) == Lisp_String)
+      STRINGP (buffer->filename))
     unlock_file (buffer->filename);
 }