diff options
| author | Paul Eggert | 2011-04-04 23:41:53 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-04 23:41:53 -0700 |
| commit | d5efd1d1b54595db795d6fddb32404cc74923d77 (patch) | |
| tree | 23ea4fd384e74bebe571c176e13ecec3f07fa9d3 /src/ChangeLog | |
| parent | b25d760e185c85e190402eddd0d756ddc014a58c (diff) | |
| download | emacs-d5efd1d1b54595db795d6fddb32404cc74923d77.tar.gz emacs-d5efd1d1b54595db795d6fddb32404cc74923d77.zip | |
* coding.c (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code
directly, rather than having caller test rule sign. This avoids
some unnecessary tests.
* composite.h (COMPOSITION_ENCODE_RULE_VALID): New macro.
(COMPOSITION_ENCODE_RULE): Arguments now must be valid. This
affects only one use, in DECODE_COMPOSITION_RULE, which is changed.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4e33ccb0c0d..24161dbda1e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,6 +2,12 @@ | |||
| 2 | 2 | ||
| 3 | * coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int. | 3 | * coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int. |
| 4 | This avoids several warnings with gcc -Wstrict-overflow. | 4 | This avoids several warnings with gcc -Wstrict-overflow. |
| 5 | (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code | ||
| 6 | directly, rather than having caller test rule sign. This avoids | ||
| 7 | some unnecessary tests. | ||
| 8 | * composite.h (COMPOSITION_ENCODE_RULE_VALID): New macro. | ||
| 9 | (COMPOSITION_ENCODE_RULE): Arguments now must be valid. This | ||
| 10 | affects only one use, in DECODE_COMPOSITION_RULE, which is changed. | ||
| 5 | 11 | ||
| 6 | * xfont.c (xfont_text_extents): Remove var that was set but not used. | 12 | * xfont.c (xfont_text_extents): Remove var that was set but not used. |
| 7 | (xfont_open): Avoid unnecessary tests. | 13 | (xfont_open): Avoid unnecessary tests. |