diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-07-18 04:26:10 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-07-18 04:26:10 (GMT) |
commit | 7c7b3da46eb1bbcfc74ca0250a0522fe66427e64 (patch) | |
tree | 413e5246dff2c8d37b886fda5b1cbea94363f8b4 /Modules/cjkcodecs/cjkcodecs.h | |
parent | 0f27166e6ad61cb424e51d643b6d9893c896d938 (diff) | |
download | cpython-7c7b3da46eb1bbcfc74ca0250a0522fe66427e64.zip cpython-7c7b3da46eb1bbcfc74ca0250a0522fe66427e64.tar.gz cpython-7c7b3da46eb1bbcfc74ca0250a0522fe66427e64.tar.bz2 |
Added a comment explaining the extern ugliness.
Diffstat (limited to 'Modules/cjkcodecs/cjkcodecs.h')
-rw-r--r-- | Modules/cjkcodecs/cjkcodecs.h | 6 |
1 files changed, 6 insertions, 0 deletions
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[]; |