diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-25 08:36:34 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-25 08:36:34 (GMT) |
| commit | 37feaf8aeca6ecef96e01f328eda73a61ad11470 (patch) | |
| tree | 3c69700957b9042240904689e1c7d2fd2c824b78 /win/tclWinNotify.c | |
| parent | d15cb9192ba450f94d3817c4953364a30997d723 (diff) | |
| download | tcl-37feaf8aeca6ecef96e01f328eda73a61ad11470.zip tcl-37feaf8aeca6ecef96e01f328eda73a61ad11470.tar.gz tcl-37feaf8aeca6ecef96e01f328eda73a61ad11470.tar.bz2 | |
Eliminate more usage of C++-specific keywords in C-code.
Diffstat (limited to 'win/tclWinNotify.c')
| -rw-r--r-- | win/tclWinNotify.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/win/tclWinNotify.c b/win/tclWinNotify.c index 89a1b66..dba7a31 100644 --- a/win/tclWinNotify.c +++ b/win/tclWinNotify.c @@ -83,7 +83,6 @@ Tcl_InitNotifier(void) return tclNotifierHooks.initNotifierProc(); } else { ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); - WNDCLASS class; TclpMasterLock(); if (!initialized) { @@ -99,18 +98,20 @@ Tcl_InitNotifier(void) EnterCriticalSection(¬ifierMutex); if (notifierCount == 0) { - class.style = 0; - class.cbClsExtra = 0; - class.cbWndExtra = 0; - class.hInstance = TclWinGetTclInstance(); - class.hbrBackground = NULL; - class.lpszMenuName = NULL; - class.lpszClassName = className; - class.lpfnWndProc = NotifierProc; - class.hIcon = NULL; - class.hCursor = NULL; - - if (!RegisterClass(&class)) { + WNDCLASS clazz; + + clazz.style = 0; + clazz.cbClsExtra = 0; + clazz.cbWndExtra = 0; + clazz.hInstance = TclWinGetTclInstance(); + clazz.hbrBackground = NULL; + clazz.lpszMenuName = NULL; + clazz.lpszClassName = className; + clazz.lpfnWndProc = NotifierProc; + clazz.hIcon = NULL; + clazz.hCursor = NULL; + + if (!RegisterClass(&clazz)) { Tcl_Panic("Unable to register TclNotifier window class"); } } |
