diff options
author | Mladen Turk <mturk@apache.org> | 2021-11-19 18:09:55 +0000 |
---|---|---|
committer | Mladen Turk <mturk@apache.org> | 2021-11-19 18:09:55 +0000 |
commit | 96648e244d914e7482b71a5cfdbb9b95f9ccd1e9 (patch) | |
tree | f06803725ed9f4bdbe08ed0e54d0d8ce70dc09ee /include/arch | |
parent | f3cd94a911b93e56b20ca1743e1cc546b2ea5960 (diff) | |
download | apr-96648e244d914e7482b71a5cfdbb9b95f9ccd1e9.tar.gz |
Use enum instead multiple booleans
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch')
-rw-r--r-- | include/arch/win32/apr_arch_file_io.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/arch/win32/apr_arch_file_io.h b/include/arch/win32/apr_arch_file_io.h index 6b94c94e9..f3ca4feeb 100644 --- a/include/arch/win32/apr_arch_file_io.h +++ b/include/arch/win32/apr_arch_file_io.h @@ -159,10 +159,16 @@ apr_status_t more_finfo(apr_finfo_t *finfo, const void *ufile, /* for apr_poll.c */ #define filedes filehand +typedef enum { + APR_FILETYPE_FILE = 0, + APR_FILETYPE_PIPE, + APR_FILETYPE_SOCKET +} apr_filetype_e; + struct apr_file_t { apr_pool_t *pool; HANDLE filehand; - BOOLEAN pipe, socket; /* Is this a pipe, a socket or a file? */ + apr_filetype_e ftype; /* Is this a pipe, a socket or a file? */ OVERLAPPED *pOverlapped; apr_interval_time_t timeout; apr_int32_t flags; |