From: Nick Mathewson Date: Fri, 11 Mar 2005 21:38:06 +0000 (+0000) Subject: Remove unused macro; add a comment on remaining macros. X-Git-Tag: tor-0.1.0.1-rc~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b17bb918ac3360ac3a050bfb8f4215a1a17554dd;p=thirdparty%2Ftor.git Remove unused macro; add a comment on remaining macros. svn:r3744 --- diff --git a/src/or/relay.c b/src/or/relay.c index d569de85af..7195b998b1 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -518,14 +518,17 @@ connection_edge_end_reason_sock5_response(char *payload, uint16_t length) { } } +/* We need to use a few macros to deal with the fact that Windows + * decided that their sockets interface should be a permakludge. + * E_CASE is for errors where windows has both a EFOO and a WSAEFOO + * version, and S_CASE is for errors where windows has only a WSAEFOO + * version. (The E is for 'error', the S is for 'socket'). */ #ifdef MS_WINDOWS #define E_CASE(s) case s: case WSA ## s #define S_CASE(s) case WSA ## s -#define W_CASE(s) case s: #else #define E_CASE(s) case s #define S_CASE(s) case s -#define W_CASE(s) #endif int