From: Tim Peters Date: Sun, 18 Jul 2004 04:26:10 +0000 (+0000) Subject: Added a comment explaining the extern ugliness. X-Git-Tag: v2.4a2~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c7b3da46eb1bbcfc74ca0250a0522fe66427e64;p=python Added a comment explaining the extern ugliness. --- diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index 6fa8a7b1b7..bf08e588fd 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[];