diff options
author | mturk <mturk@13f79535-47bb-0310-9956-ffa450edef68> | 2021-11-19 18:09:55 +0000 |
---|---|---|
committer | mturk <mturk@13f79535-47bb-0310-9956-ffa450edef68> | 2021-11-19 18:09:55 +0000 |
commit | 3a2ba9ca4f6f2f488e05e38a6b21c12203a3b191 (patch) | |
tree | f06803725ed9f4bdbe08ed0e54d0d8ce70dc09ee /include | |
parent | eba6dd842f850a4c17e72388f1fcfee75fc95133 (diff) | |
download | libapr-3a2ba9ca4f6f2f488e05e38a6b21c12203a3b191.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')
-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; |