From 825b388289a0feaf41a982c162b93acc5b293e6e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 13 Apr 2004 09:04:22 +0000 Subject: * 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. --- winsup/cygwin/tty.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/tty.h') 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;} -- cgit v1.2.3