]> granicus.if.org Git - python/commitdiff
Changed the "predefinitions" of codec_list and mapping_list from static
authorTim Peters <tim.peters@gmail.com>
Sun, 18 Jul 2004 04:20:15 +0000 (04:20 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 18 Jul 2004 04:20:15 +0000 (04:20 +0000)
to extern.  It's not legal C to say

     static whatever[];

because the size isn't given.  Presumably this is a gcc extension.

Modules/cjkcodecs/cjkcodecs.h

index 5fb05a85b20fe8305926b76be4767249ccc55c04..6fa8a7b1b77f0c4d022196c7e0967489cadfb03b 100644 (file)
@@ -57,8 +57,8 @@ struct pair_encodemap {
        DBCHAR code;
 };
 
-static const MultibyteCodec codec_list[];
-static const struct dbcs_map mapping_list[];
+extern const MultibyteCodec codec_list[];
+extern const struct dbcs_map mapping_list[];
 
 #define CODEC_INIT(encoding)                                           \
        static int encoding##_codec_init(const void *config)