diff options
| author | Paul Eggert | 2011-06-12 21:55:03 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-12 21:55:03 -0700 |
| commit | 2638320e0736eb803c9a5788fe517d3346245ff8 (patch) | |
| tree | 73c507e25296e085f138c4bac4c4ff10e48ed3ba /src | |
| parent | 045eb8d982fb3e72c71b5819f3fa684ac9e52a23 (diff) | |
| download | emacs-2638320e0736eb803c9a5788fe517d3346245ff8.tar.gz emacs-2638320e0736eb803c9a5788fe517d3346245ff8.zip | |
* character.h (CHAR_VALID_P): Remove unused parameter.
* fontset.c, lisp.h, xdisp.c: All uses changed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/character.h | 4 | ||||
| -rw-r--r-- | src/fontset.c | 2 | ||||
| -rw-r--r-- | src/lisp.h | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
5 files changed, 9 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 22e64fb409a..f26d50f6ce9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-06-13 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * character.h (CHAR_VALID_P): Remove unused parameter. | ||
| 4 | * fontset.c, lisp.h, xdisp.c: All uses changed. | ||
| 5 | |||
| 3 | * editfns.c (Ftranslate_region_internal): Omit redundant test. | 6 | * editfns.c (Ftranslate_region_internal): Omit redundant test. |
| 4 | 7 | ||
| 5 | * fns.c (concat): Minor tuning based on overflow analysis. | 8 | * fns.c (concat): Minor tuning based on overflow analysis. |
diff --git a/src/character.h b/src/character.h index de97754cfc7..a447ad40ac3 100644 --- a/src/character.h +++ b/src/character.h | |||
| @@ -109,8 +109,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 109 | /* Nonzero iff X is a character. */ | 109 | /* Nonzero iff X is a character. */ |
| 110 | #define CHARACTERP(x) (NATNUMP (x) && XFASTINT (x) <= MAX_CHAR) | 110 | #define CHARACTERP(x) (NATNUMP (x) && XFASTINT (x) <= MAX_CHAR) |
| 111 | 111 | ||
| 112 | /* Nonzero iff C is valid as a character code. GENERICP is not used. */ | 112 | /* Nonzero iff C is valid as a character code. */ |
| 113 | #define CHAR_VALID_P(c, genericp) UNSIGNED_CMP (c, <=, MAX_CHAR) | 113 | #define CHAR_VALID_P(c) UNSIGNED_CMP (c, <=, MAX_CHAR) |
| 114 | 114 | ||
| 115 | /* Check if Lisp object X is a character or not. */ | 115 | /* Check if Lisp object X is a character or not. */ |
| 116 | #define CHECK_CHARACTER(x) \ | 116 | #define CHECK_CHARACTER(x) \ |
diff --git a/src/fontset.c b/src/fontset.c index fec3c56b036..3091f43d6e9 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1851,7 +1851,7 @@ DEFUN ("internal-char-font", Finternal_char_font, Sinternal_char_font, 1, 2, 0, | |||
| 1851 | face_id = face_at_buffer_position (w, pos, -1, -1, &dummy, | 1851 | face_id = face_at_buffer_position (w, pos, -1, -1, &dummy, |
| 1852 | pos + 100, 0, -1); | 1852 | pos + 100, 0, -1); |
| 1853 | } | 1853 | } |
| 1854 | if (! CHAR_VALID_P (c, 0)) | 1854 | if (! CHAR_VALID_P (c)) |
| 1855 | return Qnil; | 1855 | return Qnil; |
| 1856 | face_id = FACE_FOR_CHAR (f, FACE_FROM_ID (f, face_id), c, pos, Qnil); | 1856 | face_id = FACE_FOR_CHAR (f, FACE_FROM_ID (f, face_id), c, pos, Qnil); |
| 1857 | face = FACE_FROM_ID (f, face_id); | 1857 | face = FACE_FROM_ID (f, face_id); |
diff --git a/src/lisp.h b/src/lisp.h index 4dfed319490..1324440c700 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1609,7 +1609,7 @@ typedef struct { | |||
| 1609 | #define SET_GLYPH(glyph, char, face) ((glyph).ch = (char), (glyph).face_id = (face)) | 1609 | #define SET_GLYPH(glyph, char, face) ((glyph).ch = (char), (glyph).face_id = (face)) |
| 1610 | 1610 | ||
| 1611 | /* Return 1 if GLYPH contains valid character code. */ | 1611 | /* Return 1 if GLYPH contains valid character code. */ |
| 1612 | #define GLYPH_CHAR_VALID_P(glyph) CHAR_VALID_P (GLYPH_CHAR (glyph), 1) | 1612 | #define GLYPH_CHAR_VALID_P(glyph) CHAR_VALID_P (GLYPH_CHAR (glyph)) |
| 1613 | 1613 | ||
| 1614 | 1614 | ||
| 1615 | /* Glyph Code from a display vector may either be an integer which | 1615 | /* Glyph Code from a display vector may either be an integer which |
| @@ -1623,7 +1623,7 @@ typedef struct { | |||
| 1623 | (CONSP (gc) ? XINT (XCDR (gc)) : INTEGERP (gc) ? (XINT (gc) >> CHARACTERBITS) : DEFAULT_FACE_ID) | 1623 | (CONSP (gc) ? XINT (XCDR (gc)) : INTEGERP (gc) ? (XINT (gc) >> CHARACTERBITS) : DEFAULT_FACE_ID) |
| 1624 | 1624 | ||
| 1625 | /* Return 1 if glyph code from display vector contains valid character code. */ | 1625 | /* Return 1 if glyph code from display vector contains valid character code. */ |
| 1626 | #define GLYPH_CODE_CHAR_VALID_P(gc) CHAR_VALID_P (GLYPH_CODE_CHAR (gc), 1) | 1626 | #define GLYPH_CODE_CHAR_VALID_P(gc) CHAR_VALID_P (GLYPH_CODE_CHAR (gc)) |
| 1627 | 1627 | ||
| 1628 | #define GLYPH_CODE_P(gc) ((CONSP (gc) && INTEGERP (XCAR (gc)) && INTEGERP (XCDR (gc))) || INTEGERP (gc)) | 1628 | #define GLYPH_CODE_P(gc) ((CONSP (gc) && INTEGERP (XCAR (gc)) && INTEGERP (XCDR (gc))) || INTEGERP (gc)) |
| 1629 | 1629 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index c4956599295..b70e0dc0d0b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1335,7 +1335,7 @@ string_char_and_length (const unsigned char *str, int *len) | |||
| 1335 | int c; | 1335 | int c; |
| 1336 | 1336 | ||
| 1337 | c = STRING_CHAR_AND_LENGTH (str, *len); | 1337 | c = STRING_CHAR_AND_LENGTH (str, *len); |
| 1338 | if (!CHAR_VALID_P (c, 1)) | 1338 | if (!CHAR_VALID_P (c)) |
| 1339 | /* We may not change the length here because other places in Emacs | 1339 | /* We may not change the length here because other places in Emacs |
| 1340 | don't use this function, i.e. they silently accept invalid | 1340 | don't use this function, i.e. they silently accept invalid |
| 1341 | characters. */ | 1341 | characters. */ |