Skip to content

Commit 7153c2a

Browse files
committed
FIX: using common function header formating for GetConsoleHwnd
1 parent e5638c0 commit 7153c2a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/os/win32/dev-stdio.c

+10-4
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,15 @@ static void close_stdio(void)
153153
return DR_DONE;
154154
}
155155

156-
//Used to get handle of a newly created console
157-
//See: http://support.microsoft.com/kb/124103
158-
HWND GetConsoleHwnd(void) {
156+
/***********************************************************************
157+
**
158+
*/ HWND GetConsoleHwnd(void)
159+
/*
160+
** Used to get handle of a newly created console
161+
** See: http://support.microsoft.com/kb/124103
162+
**
163+
***********************************************************************/
164+
{
159165
#define MY_BUFSIZE 1024 // Buffer size for console window titles.
160166
HWND hwndFound; // This is what is returned to the caller.
161167
char pszNewWindowTitle[MY_BUFSIZE]; // Contains fabricated
@@ -251,7 +257,7 @@ HWND GetConsoleHwnd(void) {
251257
// While the line editor is running with ENABLE_LINE_INPUT, there
252258
// are very few hooks offered.
253259
//
254-
SetConsoleMode( Std_Inp, CONSOLE_MODES );
260+
SetConsoleMode(Std_Inp, CONSOLE_MODES);
255261
}
256262

257263
// Handle stdio CTRL-C interrupt:

0 commit comments

Comments
 (0)