* Modules/xxmodule.c: integrated with xxobject.c by Jack

* Modules/(posix,socket}module.c: more NT changes
This commit is contained in:
Guido van Rossum 1994-09-29 09:50:09 +00:00
parent 180d7b4d55
commit 14ed0b2cd3
3 changed files with 169 additions and 13 deletions

View file

@ -153,6 +153,18 @@ static object *SocketError;
static object *
socket_error()
{
#ifdef NT
if (WSAGetLastError()) {
object *v;
v = mkvalue("(is)", WSAGetLastError(), "winsock error");
if (v != NULL) {
err_setval(SocketError, v);
DECREF(v);
}
return NULL;
}
else
#endif
return err_errno(SocketError);
}