]> granicus.if.org Git - python/commitdiff
Get ctypes working on the Alpha (Tru64). The problem was that there
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 24 Feb 2008 07:21:56 +0000 (07:21 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 24 Feb 2008 07:21:56 +0000 (07:21 +0000)
were two module_methods and the one used depended on the order the
modules were loaded.  By making the test module_methods static,
it is not exported and the correct version is picked up.

Modules/_ctypes/_ctypes_test.c

index 0d47740916299015f05c480ae196042c98a03395..d9e496415757d869d38a401da3169d5dea6f4eac 100644 (file)
@@ -411,7 +411,7 @@ DL_EXPORT(int) unpack_bitfields(struct BITS *bits, char name)
        return 0;
 }
 
-PyMethodDef module_methods[] = {
+static PyMethodDef module_methods[] = {
 /*     {"get_last_tf_arg_s", get_last_tf_arg_s, METH_NOARGS},
        {"get_last_tf_arg_u", get_last_tf_arg_u, METH_NOARGS},
 */