diff options
| author | Dmitry Antipov | 2014-09-01 20:05:43 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-09-01 20:05:43 +0400 |
| commit | 50e9e580077869b2f2ced5916299bade6b4f4efd (patch) | |
| tree | 911756b76f580c119c080770ff895e6955f0be95 /src/lisp.h | |
| parent | 203fb3639ace0e05284d9be5aa5c3d63701f33a4 (diff) | |
| download | emacs-50e9e580077869b2f2ced5916299bade6b4f4efd.tar.gz emacs-50e9e580077869b2f2ced5916299bade6b4f4efd.zip | |
Avoid extra calls to strlen in filesystem I/O routines.
* fileio.c (Fexpand_file_name): Avoid calls to strlen if
the length of 'newdir' is known or may be precalculated.
(file_accessible_directory_p): Prefer to pass Lisp_Object,
not 'char *', and so use precalculated length.
(Ffile_accessible_directory_p):
* callproc.c (encode_current_directory, init_callproc):
* charset.c (init_charset):
* lread.c (load_path_check, load_path_default): Adjust users.
* lisp.h (file_accessible_directory_p): Tweak prototype.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h index 53d6cf8009e..05b27ab9f00 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -4029,7 +4029,7 @@ extern _Noreturn void report_file_error (const char *, Lisp_Object); | |||
| 4029 | extern bool internal_delete_file (Lisp_Object); | 4029 | extern bool internal_delete_file (Lisp_Object); |
| 4030 | extern Lisp_Object emacs_readlinkat (int, const char *); | 4030 | extern Lisp_Object emacs_readlinkat (int, const char *); |
| 4031 | extern bool file_directory_p (const char *); | 4031 | extern bool file_directory_p (const char *); |
| 4032 | extern bool file_accessible_directory_p (const char *); | 4032 | extern bool file_accessible_directory_p (Lisp_Object); |
| 4033 | extern void init_fileio (void); | 4033 | extern void init_fileio (void); |
| 4034 | extern void syms_of_fileio (void); | 4034 | extern void syms_of_fileio (void); |
| 4035 | extern Lisp_Object make_temp_name (Lisp_Object, bool); | 4035 | extern Lisp_Object make_temp_name (Lisp_Object, bool); |