Mercurial > emacs
changeset 22964:87f4c88f4c59
(CHARSET_OK): Check that coding_system_table[IDX] != 0.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 09 Aug 1998 05:28:02 +0000 |
parents | 424ac751577a |
children | 5d866870fcb1 |
files | src/coding.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Sun Aug 09 00:58:10 1998 +0000 +++ b/src/coding.c Sun Aug 09 05:28:02 1998 +0000 @@ -652,11 +652,12 @@ enum iso_code_class_type iso_code_class[256]; -#define CHARSET_OK(idx, charset) \ - (coding_system_table[idx]->safe_charsets[charset] \ - || (CODING_SPEC_ISO_REQUESTED_DESIGNATION \ - (coding_system_table[idx], charset) \ - != CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION)) +#define CHARSET_OK(idx, charset) \ + (coding_system_table[idx] \ + && (coding_system_table[idx]->safe_charsets[charset] \ + || (CODING_SPEC_ISO_REQUESTED_DESIGNATION \ + (coding_system_table[idx], charset) \ + != CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION))) #define SHIFT_OUT_OK(idx) \ (CODING_SPEC_ISO_INITIAL_DESIGNATION (coding_system_table[idx], 1) >= 0)