summaryrefslogtreecommitdiffstats
path: root/win/tclWinNotify.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-25 08:36:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-25 08:36:34 (GMT)
commit37feaf8aeca6ecef96e01f328eda73a61ad11470 (patch)
tree3c69700957b9042240904689e1c7d2fd2c824b78 /win/tclWinNotify.c
parentd15cb9192ba450f94d3817c4953364a30997d723 (diff)
downloadtcl-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.c27
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(&notifierMutex);
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");
}
}