Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3ffff2a2
Commit
3ffff2a2
authored
Jul 10, 2004
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments at end of every #endif and fix ones already there when for closing
off #ifndef's.
parent
e6751180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Modules/addrinfo.h
Modules/addrinfo.h
+11
-11
No files found.
Modules/addrinfo.h
View file @
3ffff2a2
...
...
@@ -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"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment