Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c7b3da

Browse files
committed
Added a comment explaining the extern ugliness.
1 parent 0f27166 commit 7c7b3da

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Modules/cjkcodecs/cjkcodecs.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ struct pair_encodemap {
5757
DBCHAR code;
5858
};
5959

60+
/* There are really static, and (re)declared so later by the expansions
61+
* of the BEGIN_MAPPINGS_LIST and BEGIN_CODECS_LIST macros, but it's
62+
* not legal C to declare a static array of unknown size. It would be
63+
* better if the code were rearranged so as to not require declaration
64+
* of these names before the macros define them.
65+
*/
6066
extern const MultibyteCodec codec_list[];
6167
extern const struct dbcs_map mapping_list[];
6268

0 commit comments

Comments
 (0)