mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
* etags.c (ISUPPER): Move to inside the only #ifdef where it's used.
This avoids an unused-macro warning with some GCC settings.
This commit is contained in:
parent
8dfa32f6a5
commit
3f5e6230d7
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* etags.c (ISUPPER): Move to inside the only #ifdef where it's used.
|
||||
This avoids an unused-macro warning with some GCC settings.
|
||||
|
||||
* make-docfile.c (write_globals): Change char * to char const *
|
||||
to avoid a GCC "assignment discards qualifiers" diagnostic
|
||||
in some configurations.
|
||||
|
|
|
|||
|
|
@ -236,7 +236,6 @@ If you want regular expression support, you should delete this notice and
|
|||
#define ISALNUM(c) isalnum (CHAR(c))
|
||||
#define ISALPHA(c) isalpha (CHAR(c))
|
||||
#define ISDIGIT(c) isdigit (CHAR(c))
|
||||
#define ISUPPER(c) isupper (CHAR(c))
|
||||
#define ISLOWER(c) islower (CHAR(c))
|
||||
|
||||
#define lowcase(c) tolower (CHAR(c))
|
||||
|
|
@ -6648,6 +6647,7 @@ canonicalize_filename (register char *fn)
|
|||
|
||||
#ifdef DOS_NT
|
||||
/* Canonicalize drive letter case. */
|
||||
# define ISUPPER(c) isupper (CHAR(c))
|
||||
if (fn[0] != '\0' && fn[1] == ':' && ISUPPER (fn[0]))
|
||||
fn[0] = lowcase (fn[0]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue