winsock2.h has function typedefs, let's use them.
Closed / Accepted561305ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 24 years ago
Descriptionplain2002-05-28 00:37:32
winsock2.h provides function typedefs, as well as, prototypes. Let's use the header file provided typedefs in place of our own. This allows the source to be more readable. The patch isn't complete, as my uneditted diff includes at least a dozen catagories of enhancements. We might consider exporting the function table for extensions. I know I'd use it, if it was exported.
davygrvyplain2002-05-28 07:37:32
File Added - 23848: patch.txt
davygrvy Ticket [561305ffff]: 1 change
[History diff]2002-06-11 05:00:41
hobbs Pending ticket [561305ffff].
[History diff]2002-08-08 15:10:29
hobbsplain2002-08-08 15:10:30
Logged In: YES user_id=72656 This patch appears incomplete - it doesn't take into account SocketsEnabled, which is called all over tclWinSock.c, but this breaks it ... :(.
davygrvyplain2002-08-08 16:58:27
Logged In: YES
user_id=7549
***************
*** 502,508 ****
{
int enabled;
Tcl_MutexLock(&socketMutex);
! enabled = (winSock.hInstance != NULL);
Tcl_MutexUnlock(&socketMutex);
return enabled;
}
--- 479,485 ----
{
int enabled;
Tcl_MutexLock(&socketMutex);
! enabled = (winSock.hModule != NULL);
Tcl_MutexUnlock(&socketMutex);
return enabled;
}
davygrvy Ticket [561305ffff]: 1 change
[History diff]2002-09-01 07:20:39
davygrvyplain2002-11-27 09:30:50
Logged In: YES user_id=7549 committed to HEAD
Log in (anonymous is fine) to add a comment.
Attachments:
- patch.txt [download] added by davygrvy on 2002-05-28 07:37:32. [details]