diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-13 09:04:22 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-13 09:04:22 +0000 |
commit | 825b388289a0feaf41a982c162b93acc5b293e6e (patch) | |
tree | 8a56b9730d3766a31395de375db2013efa4f8ee7 /winsup/cygwin/winsup.h | |
parent | f006625d0486646c27262a4346535796e6473da6 (diff) | |
download | cygnal-825b388289a0feaf41a982c162b93acc5b293e6e.tar.gz cygnal-825b388289a0feaf41a982c162b93acc5b293e6e.tar.bz2 cygnal-825b388289a0feaf41a982c162b93acc5b293e6e.zip |
* winsup.h (IMPLEMENT_STATUS_FLAG): New macro to define status flag
accessor methods unambiguously.
* fhandler.h: Use IMPLEMENT_STATUS_FLAG throughout where possible.
* fhandler_termios.cc (fhandler_termios::tcinit): Call corrected
accessor for initialized status flag.
* mtinfo.h (class mtinfo_drive): Use IMPLEMENT_STATUS_FLAG throughout.
* path.cc (fs_info::update): Remove duplicate call to flags().
* path.h (struct fs_info): Use IMPLEMENT_STATUS_FLAG where possible.
(path_conv::is_auto_device): Fix spacing.
* tty.h (class tty_min): Use IMPLEMENT_STATUS_FLAG throughout.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 3e132a174..40649f1be 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -138,6 +138,11 @@ extern HANDLE title_mutex; /**************************** Convenience ******************************/ +/* Used to define status flag accessor methods */ +#define IMPLEMENT_STATUS_FLAG(type,flag) \ + void flag (type val) { status.flag = (val); } \ + type flag () const { return (type) status.flag; } + /* Used when treating / and \ as equivalent. */ #define isdirsep(ch) \ ({ \ |