mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
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).
This commit is contained in:
parent
6f5505aaf9
commit
643a7fc62f
2 changed files with 5 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue