diff options
author | Guido van Rossum <guido@python.org> | 1991-09-10 14:57:12 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-09-10 14:57:12 (GMT) |
commit | 54ba21bd76499af9271f075bba66e0e06a3de323 (patch) | |
tree | 961eae80313a33c5cf2e5d9d51d06abb9707b54c /Modules/socketmodule.c | |
parent | b988c33d5a17df053e0a77f72f71513172a03364 (diff) | |
download | cpython-54ba21bd76499af9271f075bba66e0e06a3de323.zip cpython-54ba21bd76499af9271f075bba66e0e06a3de323.tar.gz cpython-54ba21bd76499af9271f075bba66e0e06a3de323.tar.bz2 |
Make Socktype global so old and new compilers will like it.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 8ad9ada..cc182a7 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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", |