From 7c7b3da46eb1bbcfc74ca0250a0522fe66427e64 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 18 Jul 2004 04:26:10 +0000 Subject: Added a comment explaining the extern ugliness. --- Modules/cjkcodecs/cjkcodecs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index 6fa8a7b..bf08e58 100644 --- a/Modules/cjkcodecs/cjkcodecs.h +++ b/Modules/cjkcodecs/cjkcodecs.h @@ -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[]; -- cgit v0.12