diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-07-10 19:30:39 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-07-10 19:30:39 (GMT) |
commit | 3ffff2a270afad20fbe054540e621c6bbee2a231 (patch) | |
tree | 66990b2756bc248fae5256e1efbf4a56e6bad6de /Modules | |
parent | e67511809b656d0ec4506a01f8c961211d833490 (diff) | |
download | cpython-3ffff2a270afad20fbe054540e621c6bbee2a231.zip cpython-3ffff2a270afad20fbe054540e621c6bbee2a231.tar.gz cpython-3ffff2a270afad20fbe054540e621c6bbee2a231.tar.bz2 |
Add comments at end of every #endif and fix ones already there when for closing
off #ifndef's.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/addrinfo.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Modules/addrinfo.h b/Modules/addrinfo.h index d781c0d..6f67a2e 100644 --- a/Modules/addrinfo.h +++ b/Modules/addrinfo.h @@ -53,7 +53,7 @@ #undef EAI_MAX #undef getaddrinfo #define getaddrinfo fake_getaddrinfo -#endif +#endif /* EAI_ADDRFAMILY */ #define EAI_ADDRFAMILY 1 /* address family for hostname not supported */ #define EAI_AGAIN 2 /* temporary failure in name resolution */ @@ -83,7 +83,7 @@ #undef AI_ADDRCONFIG #undef AI_V4MAPPED #undef AI_DEFAULT -#endif +#endif /* AI_PASSIVE */ #define AI_PASSIVE 0x00000001 /* get address to use bind() */ #define AI_CANONNAME 0x00000002 /* fill ai_canonname */ @@ -98,7 +98,7 @@ /* special recommended flags for getipnodebyname */ #define AI_DEFAULT (AI_V4MAPPED_CFG | AI_ADDRCONFIG) -#endif /* HAVE_GETADDRINFO */ +#endif /* !HAVE_GETADDRINFO */ #ifndef HAVE_GETNAMEINFO @@ -108,7 +108,7 @@ #ifndef NI_MAXHOST #define NI_MAXHOST 1025 #define NI_MAXSERV 32 -#endif +#endif /* !NI_MAXHOST */ /* * Flag values for getnameinfo() @@ -119,9 +119,9 @@ #define NI_NAMEREQD 0x00000004 #define NI_NUMERICSERV 0x00000008 #define NI_DGRAM 0x00000010 -#endif +#endif /* !NI_NOFQDN */ -#endif /* HAVE_GETNAMEINFO */ +#endif /* !HAVE_GETNAMEINFO */ #ifndef HAVE_ADDRINFO struct addrinfo { @@ -134,7 +134,7 @@ struct addrinfo { struct sockaddr *ai_addr; /* binary address */ struct addrinfo *ai_next; /* next structure in linked list */ }; -#endif +#endif /* !HAVE_ADDRINFO */ #ifndef HAVE_SOCKADDR_STORAGE /* @@ -145,7 +145,7 @@ struct addrinfo { #define _SS_ALIGNSIZE (sizeof(PY_LONG_LONG)) #else #define _SS_ALIGNSIZE (sizeof(double)) -#endif +#endif /* HAVE_LONG_LONG */ #define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_char) * 2) #define _SS_PAD2SIZE (_SS_MAXSIZE - sizeof(u_char) * 2 - \ _SS_PAD1SIZE - _SS_ALIGNSIZE) @@ -156,16 +156,16 @@ struct sockaddr_storage { unsigned char ss_family; /* address family */ #else unsigned short ss_family; /* address family */ -#endif +#endif /* HAVE_SOCKADDR_SA_LEN */ char __ss_pad1[_SS_PAD1SIZE]; #ifdef HAVE_LONG_LONG PY_LONG_LONG __ss_align; /* force desired structure storage alignment */ #else double __ss_align; /* force desired structure storage alignment */ -#endif +#endif /* HAVE_LONG_LONG */ char __ss_pad2[_SS_PAD2SIZE]; }; -#endif +#endif /* !HAVE_SOCKADDR_STORAGE */ #ifdef __cplusplus extern "C" { |