# HG changeset patch # User Karl Heuer # Date 780634917 0 # Node ID 3f978b13dd818af54e864e3b241a808187322312 # Parent b2d1d925d5cca562ed9f57367eeb9d2acde0b97e (unlock_all_files, Funlock_buffer, unlock_buffer): Use type test macros. diff -r b2d1d925d5cc -r 3f978b13dd81 src/filelock.c --- 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); }