Commit 7d80ea23 authored by Paul Eggert's avatar Paul Eggert
Browse files

* fileio.c (internal_delete_file): Use bool for boolean.

parent 07c40d4e
2012-12-15 Paul Eggert <eggert@cs.ucla.edu>
* fileio.c (internal_delete_file): Use bool for boolean.
2012-12-15 Eli Zaretskii <eliz@gnu.org> 2012-12-15 Eli Zaretskii <eliz@gnu.org>
Fix bug #13079 on MS-Windows with temp files not being deleted. Fix bug #13079 on MS-Windows with temp files not being deleted.
......
...@@ -2203,10 +2203,10 @@ internal_delete_file_1 (Lisp_Object ignore) ...@@ -2203,10 +2203,10 @@ internal_delete_file_1 (Lisp_Object ignore)
return Qt; return Qt;
} }
/* Delete file FILENAME, returning 1 if successful and 0 if failed. /* Delete file FILENAME, returning true if successful.
This ignores `delete-by-moving-to-trash'. */ This ignores `delete-by-moving-to-trash'. */
int bool
internal_delete_file (Lisp_Object filename) internal_delete_file (Lisp_Object filename)
{ {
Lisp_Object tem; Lisp_Object tem;
......
...@@ -3199,7 +3199,7 @@ EXFUN (Fread_file_name, 6); /* Not a normal DEFUN. */ ...@@ -3199,7 +3199,7 @@ EXFUN (Fread_file_name, 6); /* Not a normal DEFUN. */
extern Lisp_Object close_file_unwind (Lisp_Object); extern Lisp_Object close_file_unwind (Lisp_Object);
extern Lisp_Object restore_point_unwind (Lisp_Object); extern Lisp_Object restore_point_unwind (Lisp_Object);
extern _Noreturn void report_file_error (const char *, Lisp_Object); extern _Noreturn void report_file_error (const char *, Lisp_Object);
extern int internal_delete_file (Lisp_Object); extern bool internal_delete_file (Lisp_Object);
extern bool file_directory_p (const char *); extern bool file_directory_p (const char *);
extern bool file_accessible_directory_p (const char *); extern bool file_accessible_directory_p (const char *);
extern void syms_of_fileio (void); extern void syms_of_fileio (void);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment