diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 3 | ||||
| -rw-r--r-- | lib-src/etags.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 928e8621c27..cbaa5559f96 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-02-25 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-02-25 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * etags.c (ISUPPER): Move to inside the only #ifdef where it's used. | ||
| 4 | This avoids an unused-macro warning with some GCC settings. | ||
| 5 | |||
| 3 | * make-docfile.c (write_globals): Change char * to char const * | 6 | * make-docfile.c (write_globals): Change char * to char const * |
| 4 | to avoid a GCC "assignment discards qualifiers" diagnostic | 7 | to avoid a GCC "assignment discards qualifiers" diagnostic |
| 5 | in some configurations. | 8 | in some configurations. |
diff --git a/lib-src/etags.c b/lib-src/etags.c index b738f0f4564..385e4cc9721 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -236,7 +236,6 @@ If you want regular expression support, you should delete this notice and | |||
| 236 | #define ISALNUM(c) isalnum (CHAR(c)) | 236 | #define ISALNUM(c) isalnum (CHAR(c)) |
| 237 | #define ISALPHA(c) isalpha (CHAR(c)) | 237 | #define ISALPHA(c) isalpha (CHAR(c)) |
| 238 | #define ISDIGIT(c) isdigit (CHAR(c)) | 238 | #define ISDIGIT(c) isdigit (CHAR(c)) |
| 239 | #define ISUPPER(c) isupper (CHAR(c)) | ||
| 240 | #define ISLOWER(c) islower (CHAR(c)) | 239 | #define ISLOWER(c) islower (CHAR(c)) |
| 241 | 240 | ||
| 242 | #define lowcase(c) tolower (CHAR(c)) | 241 | #define lowcase(c) tolower (CHAR(c)) |
| @@ -6648,6 +6647,7 @@ canonicalize_filename (register char *fn) | |||
| 6648 | 6647 | ||
| 6649 | #ifdef DOS_NT | 6648 | #ifdef DOS_NT |
| 6650 | /* Canonicalize drive letter case. */ | 6649 | /* Canonicalize drive letter case. */ |
| 6650 | # define ISUPPER(c) isupper (CHAR(c)) | ||
| 6651 | if (fn[0] != '\0' && fn[1] == ':' && ISUPPER (fn[0])) | 6651 | if (fn[0] != '\0' && fn[1] == ':' && ISUPPER (fn[0])) |
| 6652 | fn[0] = lowcase (fn[0]); | 6652 | fn[0] = lowcase (fn[0]); |
| 6653 | 6653 | ||