(ioq_makebuf, ioq_makeiov) [_WIN32]: Remove the external for
ioq_makeiov() for WIN32 case so it matches source for the ioq_makeiov(). Reorganize ioq_makebuf() to make it obvious that ioq_makebuf() is used for WIN32 and everybody uses ioq_makeiov().
This commit is contained in:
parent
ce4190caf7
commit
8f3f239839
1 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,11 @@ struct ioqueue {
|
|||
extern struct ioqueue *ioq_create(int size);
|
||||
extern void ioq_destroy(struct ioqueue *ioq);
|
||||
extern void ioq_drain(struct ioqueue *ioq);
|
||||
#if defined (_WIN32)
|
||||
extern int ioq_makebuf(struct ioqueue *ioq, char *pBuf, int nBufLen);
|
||||
#else
|
||||
extern int ioq_makeiov(struct ioqueue *ioq, struct iovec *iov, int cc);
|
||||
#endif
|
||||
extern int ioq_peek(struct ioqueue *ioq, s_char *buf, int cc);
|
||||
extern int ioq_dequeue(struct ioqueue *ioq, int cc);
|
||||
extern void ioq_append(struct ioqueue *ioq, s_char *buf, int cc);
|
||||
|
@ -59,8 +63,4 @@ extern int ioq_qsize(struct ioqueue *ioq);
|
|||
extern int ioq_gets(struct ioqueue *ioq, s_char *buf, int cc);
|
||||
extern int ioq_puts(struct ioqueue *ioq, s_char *buf);
|
||||
|
||||
#if defined (_WIN32)
|
||||
extern int ioq_makebuf(struct ioqueue *ioq, char *pBuf, int nBufLen);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue