]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make Socktype global so old and new compilers will like it.
authorGuido van Rossum <guido@python.org>
Tue, 10 Sep 1991 14:57:12 +0000 (14:57 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Sep 1991 14:57:12 +0000 (14:57 +0000)
Modules/socketmodule.c

index 8ad9adae4371af7e0ec533bf4303aff86b557566..cc182a788098d62fd044f70b39b7bda4ed5bdf02 100644 (file)
@@ -113,9 +113,7 @@ typedef struct {
 /* A forward reference to the Socktype type object.
    The Socktype variable contains pointers to various functions,
    some of which call newsocobject(), which uses Socktype, so
-   there has to be a circular reference.  If your compiler complains
-   that it is first declared 'extern' and later 'static', remove the
-   'static' keyword from the actual definition. */
+   there has to be a circular reference. */
 
 extern typeobject Socktype; /* Forward */
 
@@ -622,10 +620,10 @@ sock_getattr(s, name)
 
 
 /* Type object for socket objects.
-   If your compiler complains that it is first declared 'extern'
-   and later 'static', remove the 'static' keyword here. */
+   XXX This should be static, but some compilers don't grok the
+   XXX forward reference to it in that case... */
 
-static typeobject Socktype = {
+typeobject Socktype = {
        OB_HEAD_INIT(&Typetype)
        0,
        "socket",