mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-21 05:00:47 -08:00
(CHARSET_OK): Check that coding_system_table[IDX] != 0.
This commit is contained in:
parent
3527740ced
commit
f024b6aac0
1 changed files with 6 additions and 5 deletions
11
src/coding.c
11
src/coding.c
|
|
@ -652,11 +652,12 @@ detect_coding_emacs_mule (src, src_end)
|
|||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue