From: Pierre Muller Date: Mon, 21 Feb 2011 13:40:32 +0000 (+0000) Subject: * ser-mingw.c (ser_windows_close): Reformat comment to better conform X-Git-Tag: cygwin-1_7_8-release~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e25b2cfa2a4fb779f95971926973dd7b77901f81;p=platform%2Fupstream%2Fbinutils.git * ser-mingw.c (ser_windows_close): Reformat comment to better conform to GNU coding standards. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6ccae2a..94eaa93 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,8 +1,12 @@ 2011-02-21 Pierre Muller + * ser-mingw.c (ser_windows_close): Reformat comment to better conform + to GNU coding standards. + +2011-02-21 Pierre Muller + Allow use of mingw native on Windows 95 OS. - * src/gdb/ser-mingw.c (CancelIo): New macro for dynamically loaded - DLL entry. + * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry. (ser_windows_close): Only call CancelIo if function exists. (_initialize_ser_windows): Use LoadLirary/GetProcAddress to check for existence of CancelIo function in kernel32 DLL. diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index 2c1f0ca..928a03b 100644 --- a/gdb/ser-mingw.c +++ b/gdb/ser-mingw.c @@ -221,10 +221,10 @@ ser_windows_close (struct serial *scb) { struct ser_windows_state *state; - /* Stop any pending selects. On Windows 95 OS, CancelIo function does not - exist. In that case, it can be replaced by a call to CloseHandle, but - this is not necessary here as we do close the Windows handle by calling - close (scb->fd) below. */ + /* Stop any pending selects. On Windows 95 OS, CancelIo function does + not exist. In that case, it can be replaced by a call to CloseHandle, + but this is not necessary here as we do close the Windows handle + by calling close (scb->fd) below. */ if (CancelIo) CancelIo ((HANDLE) _get_osfhandle (scb->fd)); state = scb->state;