diff options
| author | Andreas Schwab | 2011-08-04 16:25:21 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2011-08-04 16:25:21 +0200 |
| commit | 213bd7f2f126e8f69cbb9be274ea99581937f193 (patch) | |
| tree | 7d20c24c5f72b3b1cce61ecb0f2fc6907c90ceda /src | |
| parent | 99aaf75f7c50513f7a6ad6bac21bd8f68290633e (diff) | |
| download | emacs-213bd7f2f126e8f69cbb9be274ea99581937f193.tar.gz emacs-213bd7f2f126e8f69cbb9be274ea99581937f193.zip | |
* regex.c (re_iswctype): Remove some redundant boolean conversions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/regex.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f66d301e060..b8a1c3e6e9a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-08-04 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * regex.c (re_iswctype): Remove some redundant boolean | ||
| 4 | conversions. | ||
| 5 | |||
| 1 | 2011-08-04 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2011-08-04 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * xterm.c (x_find_topmost_parent): New function. | 8 | * xterm.c (x_find_topmost_parent): New function. |
diff --git a/src/regex.c b/src/regex.c index 545a198acd7..d1b835621d9 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -2106,9 +2106,9 @@ re_iswctype (int ch, re_wctype_t cc) | |||
| 2106 | case RECC_UPPER: return ISUPPER (ch) != 0; | 2106 | case RECC_UPPER: return ISUPPER (ch) != 0; |
| 2107 | case RECC_XDIGIT: return ISXDIGIT (ch) != 0; | 2107 | case RECC_XDIGIT: return ISXDIGIT (ch) != 0; |
| 2108 | case RECC_ASCII: return IS_REAL_ASCII (ch) != 0; | 2108 | case RECC_ASCII: return IS_REAL_ASCII (ch) != 0; |
| 2109 | case RECC_NONASCII: return !IS_REAL_ASCII (ch) != 0; | 2109 | case RECC_NONASCII: return !IS_REAL_ASCII (ch); |
| 2110 | case RECC_UNIBYTE: return ISUNIBYTE (ch) != 0; | 2110 | case RECC_UNIBYTE: return ISUNIBYTE (ch) != 0; |
| 2111 | case RECC_MULTIBYTE: return !ISUNIBYTE (ch) != 0; | 2111 | case RECC_MULTIBYTE: return !ISUNIBYTE (ch); |
| 2112 | case RECC_WORD: return ISWORD (ch) != 0; | 2112 | case RECC_WORD: return ISWORD (ch) != 0; |
| 2113 | case RECC_ERROR: return false; | 2113 | case RECC_ERROR: return false; |
| 2114 | default: | 2114 | default: |