diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-21 17:55:20 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-21 17:55:20 -0800 |
| commit | f68c809d7e91fcde5ee2e4f7f15def3d7e48b720 (patch) | |
| tree | 9df8577ff5f281f066f778dee44bdb839eb13daf /lib-src | |
| parent | 5ecec6a7f4a1ce83abd53a14fba7f51b668c6336 (diff) | |
| download | emacs-f68c809d7e91fcde5ee2e4f7f15def3d7e48b720.tar.gz | |
[ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* Makefile.in (GNULIB_MODULES): Add sys_stat.
* configure.in: Check for lstat and set HAVE_LSTAT=0 if not.
Pretend to be using the gnulib lstat module for benefit of sys/stat.h.
* configure, lib/Makefile.in, lib/gnulib.mk: Regenerate.
[lib-src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* etags.c (S_ISREG): Remove.
[src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* config.in: Regenerate.
* dired.c (lstat): Remove.
(file_name_completion): Assume S_ISDIR works.
(file_name_completion_stat): Assume S_ISLNK works.
Do not bother calling stat unless lstat says it's a symlink.
* fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
(Fcopy_file): Assume S_ISREG and S_ISLNK work.
(check_writable, Ffile_writable_p, Fset_file_times):
Assume S_ISDIR works.
(Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
fifos exist.
(Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works.
* filelock.c (S_ISLNK): Remove.
* lread.c (openp): Assume S_ISDIR works.
* xrdb.c (S_ISDIR): Remove.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/etags.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 7aa13a45cba..6d50f4fa4fc 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2011-02-22 Paul Eggert <eggert@cs.ucla.edu> + + Assume S_ISLNK etc. work, since gnulib supports this. + * etags.c (S_ISREG): Remove. + 2011-02-21 Paul Eggert <eggert@cs.ucla.edu> New file "lib/min-max.h". diff --git a/lib-src/etags.c b/lib-src/etags.c index 9471c0fe29f..9ca10776259 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -190,10 +190,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; # define assert(x) ((void) 0) #endif -#if !defined (S_ISREG) && defined (S_IFREG) -# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) -#endif - #ifdef NO_LONG_OPTIONS /* define this if you don't have GNU getopt */ # define NO_LONG_OPTIONS TRUE # define getopt_long(argc,argv,optstr,lopts,lind) getopt (argc, argv, optstr) @@ -5327,7 +5323,7 @@ prolog_skip_comment (linebuffer *plb, FILE *inf) */ static int prolog_pr (char *s, char *last) - + /* Name of last clause. */ { int pos; @@ -5484,7 +5480,7 @@ Erlang_functions (FILE *inf) */ static int erlang_func (char *s, char *last) - + /* Name of last clause. */ { int pos; |
