From 70300fdb1c4f0834f83441fcd3fa029e110a7c2e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 15 Feb 2008 17:53:11 +0000 Subject: Perform whitespace cleanup throughout. * dcrt0.cc (signal_shift_subtract): Eliminate ancient backwards compatibility. (check_sanity_and_sync): Ditto. * winsup.h (SIGTOMASK): Ditto. Just use constant in signal calculation. * include/cygwin/version: Remove backwards signal mask compatibility define. * path.cc (symlink_info::check_sysfile): Cosmetic change. * registry.cc (get_registry_hive_path): Remove unneeded variable. * exceptions.cc (handle_sigsuspend): Eliminate thread signal mask and use either main sigmask or current thread sigmask. (set_process_mask): Ditto. (sighold): Ditto. (sigrelse): Ditto. (sigset): Ditto. (set_process_mask_delta): Ditto. (_cygtls::call_signal_handler): Ditto. * fhandler_process.cc (format_process_status): Ditto. * fhandler_termios.cc (fhandler_termios::bg_check): Ditto. * pinfo.h (class pinfo): Ditto. * select.cc (pselect): Ditto. * signal.cc (sigprocmask): Ditto. (abort): Ditto. (sigpause): Ditto. (sigsend): Ditto. (wait_sig): Ditto. * thread.h (pthread::parent_tls): New member. * thread.cc (pthread::pthread): Record parent_tls here. (pthread::thread_init_wrapper): Initialize sigmask from parent thread. --- winsup/cygwin/fhandler_console.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/fhandler_console.cc') diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index cc972e10a..ca1c0879b 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -1428,7 +1428,7 @@ beep () } /* This gets called when we found an invalid UTF-8 character. We try with - the default ANSI codepage. If that fails we just print a question mark. + the default ANSI codepage. If that fails we just print a question mark. Looks ugly but is a neat and alomst sane fallback for many languages. */ void fhandler_console::write_replacement_char (const unsigned char *char_p) @@ -1456,7 +1456,7 @@ fhandler_console::write_normal (const unsigned char *src, const unsigned char *nfound; UINT cp = dev_state->get_console_cp (); - /* First check if we have cached lead bytes of a former try to write + /* First check if we have cached lead bytes of a former try to write a truncated multibyte sequence. If so, process it. */ if (trunc_buf.len) { @@ -1465,7 +1465,7 @@ fhandler_console::write_normal (const unsigned char *src, nfound = next_char (cp, trunc_buf.buf, trunc_buf.buf + trunc_buf.len + cp_len); if (!nfound) /* Invalid multibyte sequence. */ - { /* Give up and print replacement chars. */ + { /* Give up and print replacement chars. */ for (int i = 0; i < trunc_buf.len; ++i) write_replacement_char (trunc_buf.buf + i); } @@ -1495,7 +1495,7 @@ fhandler_console::write_normal (const unsigned char *src, if (!nfound) /* Invalid multibyte sequence. */ break; if (nfound == found) /* Truncated multibyte sequence. */ - { /* Stick to it until the next write. */ + { /* Stick to it until the next write. */ trunc_buf.len = end - found; memcpy (trunc_buf.buf, found, trunc_buf.len); return end; -- cgit v1.2.3