mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-30 08:09:04 +00:00
(struct iso2022_spec): Member requested_designation is
changed to array of `char' just for saving memory. (CODING_FLAG_ISO_INIT_AT_BOL, CODING_FLAG_ISO_DESIGNATE_AT_BOL): New macros.
This commit is contained in:
parent
8fb379fdac
commit
8ddb35b2ab
18
src/coding.h
18
src/coding.h
@ -128,6 +128,14 @@ enum iso_code_class_type
|
|||||||
/* If set, do not produce ISO6429's direction specifying sequence. */
|
/* If set, do not produce ISO6429's direction specifying sequence. */
|
||||||
#define CODING_FLAG_ISO_NO_DIRECTION 0x0100
|
#define CODING_FLAG_ISO_NO_DIRECTION 0x0100
|
||||||
|
|
||||||
|
/* If set, assume designation states are reset at beginning of line on
|
||||||
|
output. */
|
||||||
|
#define CODING_FLAG_ISO_INIT_AT_BOL 0x0200
|
||||||
|
|
||||||
|
/* If set, designation sequence should be placed at beginning of line
|
||||||
|
on output. */
|
||||||
|
#define CODING_FLAG_ISO_DESIGNATE_AT_BOL 0x0400
|
||||||
|
|
||||||
/* Structure of the field `spec.iso2022' in the structure `coding_system'. */
|
/* Structure of the field `spec.iso2022' in the structure `coding_system'. */
|
||||||
struct iso2022_spec
|
struct iso2022_spec
|
||||||
{
|
{
|
||||||
@ -141,11 +149,14 @@ struct iso2022_spec
|
|||||||
int initial_designation[4];
|
int initial_designation[4];
|
||||||
|
|
||||||
/* A graphic register to which each charset should be designated. */
|
/* A graphic register to which each charset should be designated. */
|
||||||
int requested_designation[MAX_CHARSET];
|
char requested_designation[MAX_CHARSET];
|
||||||
|
|
||||||
/* Set to 1 temporarily only when graphic register 2 or 3 is invoked
|
/* Set to 1 temporarily only when graphic register 2 or 3 is invoked
|
||||||
by single-shift while encoding. */
|
by single-shift while encoding. */
|
||||||
int single_shifting;
|
int single_shifting;
|
||||||
|
|
||||||
|
/* Set to 1 temporarily only when processing at beginning of line. */
|
||||||
|
int bol;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Macros to access each field in the structure `spec.iso2022'. */
|
/* Macros to access each field in the structure `spec.iso2022'. */
|
||||||
@ -157,11 +168,10 @@ struct iso2022_spec
|
|||||||
coding->spec.iso2022.initial_designation[reg]
|
coding->spec.iso2022.initial_designation[reg]
|
||||||
#define CODING_SPEC_ISO_REQUESTED_DESIGNATION(coding, charset) \
|
#define CODING_SPEC_ISO_REQUESTED_DESIGNATION(coding, charset) \
|
||||||
coding->spec.iso2022.requested_designation[charset]
|
coding->spec.iso2022.requested_designation[charset]
|
||||||
|
|
||||||
/* Set to 1 temporarily only when encoding a character with
|
|
||||||
single-shift function. */
|
|
||||||
#define CODING_SPEC_ISO_SINGLE_SHIFTING(coding) \
|
#define CODING_SPEC_ISO_SINGLE_SHIFTING(coding) \
|
||||||
coding->spec.iso2022.single_shifting
|
coding->spec.iso2022.single_shifting
|
||||||
|
#define CODING_SPEC_ISO_BOL(coding) \
|
||||||
|
coding->spec.iso2022.bol
|
||||||
|
|
||||||
/* Return a charset which is currently designated to the graphic plane
|
/* Return a charset which is currently designated to the graphic plane
|
||||||
PLANE in the coding-system CODING. */
|
PLANE in the coding-system CODING. */
|
||||||
|
Loading…
Reference in New Issue
Block a user