summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixSock.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2025-09-10 09:12:05 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2025-09-10 09:12:05 (GMT)
commit0c7a28ef7ae29fa3c91cb824d4aed8d0e43cf267 (patch)
tree8a76f79c0145431bea88f55219f3b2e45987303b /unix/tclUnixSock.c
parent4f9a55d3cee31e9381fe03cf3705f9adaec6823f (diff)
downloadtcl-0c7a28ef7ae29fa3c91cb824d4aed8d0e43cf267.zip
tcl-0c7a28ef7ae29fa3c91cb824d4aed8d0e43cf267.tar.gz
tcl-0c7a28ef7ae29fa3c91cb824d4aed8d0e43cf267.tar.bz2
Turn some things into enums that really should have been that all along
Diffstat (limited to 'unix/tclUnixSock.c')
-rw-r--r--unix/tclUnixSock.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index eed898b..eacb05d 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -84,18 +84,18 @@ struct TcpState {
* These bits may be OR'ed together into the "flags" field of a TcpState
* structure.
*/
-
-#define TCP_NONBLOCKING (1<<0) /* Socket with non-blocking I/O */
-#define TCP_ASYNC_CONNECT (1<<1) /* Async connect in progress. */
-#define TCP_ASYNC_PENDING (1<<4) /* TcpConnect was called to
- * process an async connect. This
- * flag indicates that reentry is
- * still pending */
-#define TCP_ASYNC_FAILED (1<<5) /* An async connect finally failed */
-
-#define TCP_ASYNC_TEST_MODE (1<<8) /* Async testing activated. Do not
- * automatically continue connection
- * process. */
+enum TcpStateFlags {
+ TCP_NONBLOCKING = 1<<0, /* Socket with non-blocking I/O */
+ TCP_ASYNC_CONNECT = 1<<1, /* Async connect in progress. */
+ TCP_ASYNC_PENDING = 1<<4, /* TcpConnect was called to process an async
+ * connect. This flag indicates that reentry
+ * is still pending */
+ TCP_ASYNC_FAILED = 1<<5, /* An async connect finally failed. */
+
+ TCP_ASYNC_TEST_MODE = 1<<8 /* Async testing activated. Do not
+ * automatically continue connection
+ * process. */
+};
/*
* The following defines the maximum length of the listen queue. This is the