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/mtinfo.h | |
parent | f006625d0486646c27262a4346535796e6473da6 (diff) | |
download | newlib-825b388289a0feaf41a982c162b93acc5b293e6e.zip newlib-825b388289a0feaf41a982c162b93acc5b293e6e.tar.gz newlib-825b388289a0feaf41a982c162b93acc5b293e6e.tar.bz2 |
* 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/mtinfo.h')
-rw-r--r-- | winsup/cygwin/mtinfo.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/winsup/cygwin/mtinfo.h b/winsup/cygwin/mtinfo.h index 3cea320..2dde5be 100644 --- a/winsup/cygwin/mtinfo.h +++ b/winsup/cygwin/mtinfo.h @@ -113,18 +113,13 @@ public: int ioctl (HANDLE mt, unsigned int cmd, void *buf); int set_pos (HANDLE mt, int mode, long count, bool sfm_func); - bool buffer_writes () const { return status.buffer_writes; } - void buffer_writes (bool b) { status.buffer_writes = b; } - bool two_fm () const { return status.two_fm; } - void two_fm (bool b) { status.two_fm = b; } - bool fast_eom () const { return status.fast_eom; } - void fast_eom (bool b) { status.fast_eom = b; } - bool auto_lock () const { return status.auto_lock; } - void auto_lock (bool b) { status.auto_lock = b; } - bool sysv () const { return status.sysv; } - void sysv (bool b) { status.sysv = b; } - bool nowait () const { return status.nowait; } - void nowait (bool b) { status.nowait = b; } + IMPLEMENT_STATUS_FLAG (bool, buffer_writes) + IMPLEMENT_STATUS_FLAG (bool, two_fm) + IMPLEMENT_STATUS_FLAG (bool, fast_eom) + IMPLEMENT_STATUS_FLAG (bool, auto_lock) + IMPLEMENT_STATUS_FLAG (bool, sysv) + IMPLEMENT_STATUS_FLAG (bool, nowait) + PTAPE_GET_DRIVE_PARAMETERS dp (void) { return &_dp; } PTAPE_GET_MEDIA_PARAMETERS mp (void) { return &_mp; } mtinfo_part *part (int num) { return &_part[num]; } |