aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-02-17 04:13:21 +0000
committerTim Peters <tim.peters@gmail.com>2002-02-17 04:13:21 +0000
commit643a7fc62fd6a9df3325d54ac1ac636d17f3f983 (patch)
tree8f381df7fa84503048730c0b9d5060a754378eb2 /Modules/socketmodule.h
parentFor readability, switch to tab indents; was using a mix of tab indents, (diff)
downloadcpython-643a7fc62fd6a9df3325d54ac1ac636d17f3f983.tar.gz
cpython-643a7fc62fd6a9df3325d54ac1ac636d17f3f983.tar.bz2
cpython-643a7fc62fd6a9df3325d54ac1ac636d17f3f983.zip
Moved the declaration of PySocketSock_Type from socketmodule.h to
socketmodule.c. No code outside of the .c file references it, so it doesn't belong the .h file (at least not yet ...), and declaring it an imported symbol in the .h file can't be made to work on Windows (it's a cross-DLL symbol then) without substantial code rewriting. Also repaired the comment that goes along with the decl, to stop referring to names and functions that haven't existed for 7 years <wink>. socketmodule.c compiles cleanly on Windows again. The test_socket dies at once, though (later).
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r--Modules/socketmodule.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index a1a212262a4..ef4ba38e275 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -75,13 +75,6 @@ typedef struct {
sets a Python exception */
} PySocketSockObject;
-/* A forward reference to the Socktype type object.
- The Socktype variable contains pointers to various functions,
- some of which call newsockobject(), which uses Socktype, so
- there has to be a circular reference. */
-
-extern DL_IMPORT(PyTypeObject) PySocketSock_Type;
-
/* --- C API ----------------------------------------------------*/
/* C API for usage by other Python modules */