Added a comment explaining the extern ugliness.

This commit is contained in:
Tim Peters 2004-07-18 04:26:10 +00:00
parent 0f27166e6a
commit 7c7b3da46e
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ struct pair_encodemap {
DBCHAR code;
};
/* There are really static, and (re)declared so later by the expansions
* of the BEGIN_MAPPINGS_LIST and BEGIN_CODECS_LIST macros, but it's
* not legal C to declare a static array of unknown size. It would be
* better if the code were rearranged so as to not require declaration
* of these names before the macros define them.
*/
extern const MultibyteCodec codec_list[];
extern const struct dbcs_map mapping_list[];