Skip to content

Commit

Permalink
utfebcdic.h: Reorder two defines
Browse files Browse the repository at this point in the history
And clarify comments.
  • Loading branch information
khwilliamson committed Jun 14, 2021
1 parent 14e9fb3 commit 33755f3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions utfebcdic.h
Expand Up @@ -193,15 +193,14 @@ explicitly forbidden, and the shortest possible encoding should always be used

#define UTF_CONTINUATION_BYTE_INFO_BITS UTF_EBCDIC_CONTINUATION_BYTE_INFO_BITS

/* These others are for efficiency or for other decisions we've made */
/* ^? is defined to be APC on EBCDIC systems, as specified in Unicode Technical
* Report #16. See the definition of toCTRL() for more */
#define QUESTION_MARK_CTRL LATIN1_TO_NATIVE(0x9F)

/* This is just for efficiency; other means could have been used to derive it. */
#define isUTF8_POSSIBLY_PROBLEMATIC(c) \
_generic_isCC(c, _CC_UTF8_START_BYTE_IS_FOR_AT_LEAST_SURROGATE)

/* ^? is defined to be APC on EBCDIC systems. See the definition of toCTRL()
* for more */
#define QUESTION_MARK_CTRL LATIN1_TO_NATIVE(0x9F)

#define ONE_IF_EBCDIC_ZERO_IF_NOT 1

/*
Expand Down

0 comments on commit 33755f3

Please sign in to comment.