comparison lib-src/pop.c @ 49053:2990b2f8bfb5

(__P): Renamed from _P to avoid problems on Cygwin. All uses changed.
author Kim F. Storm <storm@cua.dk>
date Sun, 05 Jan 2003 23:38:59 +0000
parents cbcc456b9a76
children 23a1cea22d13
comparison
equal deleted inserted replaced
49052:b2e3d1cdce63 49053:2990b2f8bfb5
117 #if !defined(HAVE_H_ERRNO) || !defined(HAVE_CONFIG_H) 117 #if !defined(HAVE_H_ERRNO) || !defined(HAVE_CONFIG_H)
118 extern int h_errno; 118 extern int h_errno;
119 #endif 119 #endif
120 #endif 120 #endif
121 121
122 #ifndef _P 122 #ifndef __P
123 # ifdef __STDC__ 123 # ifdef __STDC__
124 # define _P(a) a 124 # define __P(a) a
125 # else 125 # else
126 # define _P(a) () 126 # define __P(a) ()
127 # endif /* __STDC__ */ 127 # endif /* __STDC__ */
128 #endif /* ! __P */ 128 #endif /* ! __P */
129 129
130 static int socket_connection _P((char *, int)); 130 static int socket_connection __P((char *, int));
131 static int pop_getline _P((popserver, char **)); 131 static int pop_getline __P((popserver, char **));
132 static int sendline _P((popserver, char *)); 132 static int sendline __P((popserver, char *));
133 static int fullwrite _P((int, char *, int)); 133 static int fullwrite __P((int, char *, int));
134 static int getok _P((popserver)); 134 static int getok __P((popserver));
135 #if 0 135 #if 0
136 static int gettermination _P((popserver)); 136 static int gettermination __P((popserver));
137 #endif 137 #endif
138 static void pop_trash _P((popserver)); 138 static void pop_trash __P((popserver));
139 static char *find_crlf _P((char *, int)); 139 static char *find_crlf __P((char *, int));
140 140
141 #define ERROR_MAX 160 /* a pretty arbitrary size, but needs 141 #define ERROR_MAX 160 /* a pretty arbitrary size, but needs
142 to be bigger than the original 142 to be bigger than the original
143 value of 80 */ 143 value of 80 */
144 #define POP_PORT 110 144 #define POP_PORT 110