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:
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;}