diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-10-16 18:08:28 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-10-16 18:08:28 +0400 |
commit | abfc9c412cdb2c7d0d046c727730f44b1b8fc6ec (patch) | |
tree | b0b52ca753f4e5e943402a2e907be8947fa0a585 /winsup/cygwin/fhandler.h | |
parent | b4d51d01c80d7392c73fcc93f5c5146e51ad7685 (diff) |
* dcrt0.cc: Remove local variable alternate_charset_active.
* fhandler.h: Add variable alternate_charset_active, functions
str_to_con, con_to_str to dev_console structure.
* fhandler_console.cc (con_to_str): Move function into dev_console
class.
(str_to_con): Ditto.
(fhandler_console::read): Call con_to_str on dev_state.
(fhandler_console::write_normal): Call str_to_con on dev_state.
(fhandler_console::char_command): Change active_charset_active
assignment to be on dev_state.
* winsup.h: Remove global external variable alternate_charset_active.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 00ce3a34d..d88bb1b94 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -752,6 +752,7 @@ class dev_console int nargs_; unsigned rarg; bool saw_question_mark; + bool alternate_charset_active; char my_title_buf [TITLESIZE + 1]; @@ -788,6 +789,10 @@ class dev_console bool insert_mode; bool use_mouse; bool raw_win32_keyboard_mode; + + BOOL con_to_str (char *d, const char *s, DWORD sz); + BOOL str_to_con (char *d, const char *s, DWORD sz); + friend class fhandler_console; }; |