Changes in pjproject/main/pjlib/src/pj/sock_select.c [3:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjlib/src/pj/sock_select.c
- Property svn:keywords deleted
r3 r1 1 /* $Id$ 2 * 1 /* $Header: /pjproject-0.3/pjlib/src/pj/sock_select.c 4 10/14/05 12:26a Bennylp $ */ 2 /* $Log: /pjproject-0.3/pjlib/src/pj/sock_select.c $ 3 * 4 * 4 10/14/05 12:26a Bennylp 5 * Finished error code framework, some fixes in ioqueue, etc. Pretty 6 * major. 7 * 8 * 3 9/21/05 1:39p Bennylp 9 * Periodic checkin for backup. 10 * 11 * 2 9/17/05 10:37a Bennylp 12 * Major reorganization towards version 0.3. 13 * 14 * 1 9/15/05 8:40p Bennylp 15 * Created. 3 16 */ 4 17 #include <pj/sock_select.h> … … 8 21 #include <pj/errno.h> 9 22 10 #if defined(PJ_HAS_STRING_H) && PJ_HAS_STRING_H!=011 # include <string.h>12 #endif13 23 14 24 #ifdef _MSC_VER … … 16 26 #endif 17 27 18 #define PART_FDSET(ps) ((fd_set*)&ps->data[1]) 19 #define PART_FDSET_OR_NULL(ps) (ps ? PART_FDSET(ps) : NULL) 20 #define PART_COUNT(ps) (ps->data[0]) 28 #define PART_FDSET(p_fdsetp) ((fd_set*)&p_fdsetp->data[1]) 29 #define PART_COUNT(p_fdsetp) (p_fdsetp->data[0]) 21 30 22 31 PJ_DEF(void) PJ_FD_ZERO(pj_fd_set_t *fdsetp) … … 87 96 } 88 97 89 return select(n, PART_FDSET _OR_NULL(readfds), PART_FDSET_OR_NULL(writefds),90 PART_FDSET _OR_NULL(exceptfds), p_os_timeout);98 return select(n, PART_FDSET(readfds), PART_FDSET(writefds), 99 PART_FDSET(exceptfds), p_os_timeout); 91 100 } 92 101
Note: See TracChangeset
for help on using the changeset viewer.