Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-04-13 13:04:22 +0400
committerCorinna Vinschen <corinna@vinschen.de>2004-04-13 13:04:22 +0400
commit825b388289a0feaf41a982c162b93acc5b293e6e (patch)
tree8a56b9730d3766a31395de375db2013efa4f8ee7 /winsup/cygwin/tty.h
parentf006625d0486646c27262a4346535796e6473da6 (diff)
* 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/tty.h')
-rw-r--r--winsup/cygwin/tty.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/tty.h b/winsup/cygwin/tty.h
index 1c2806a50..94d98048b 100644
--- a/winsup/cygwin/tty.h
+++ b/winsup/cygwin/tty.h
@@ -49,10 +49,8 @@ public:
int ntty;
DWORD last_ctrl_c; // tick count of last ctrl-c
- bool initialized () const { return status.initialized; }
- void initialize () { status.initialized = 1; }
- bool rstcons () const { return status.rstcons; }
- void rstcons (bool b) { status.rstcons = b; }
+ IMPLEMENT_STATUS_FLAG (bool, initialized)
+ IMPLEMENT_STATUS_FLAG (bool, rstcons)
tty_min (int t = -1, pid_t s = -1) : sid (s), ntty (t) {}
void setntty (int n) {ntty = n;}