diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-23 13:49:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-23 13:49:01 (GMT) |
commit | 84e3fb460607d9f15c570f0f4b9b8e3a33b6c559 (patch) | |
tree | 4c44f674724aef22717e0efab79ff4896b96ac00 /win | |
parent | 154f6e364d28d67ef3d2f09c4a991d46e53ad2d4 (diff) | |
parent | ab4c7318fd564b0196bd38b6573eb84c9d51e2d1 (diff) | |
download | tcl-84e3fb460607d9f15c570f0f4b9b8e3a33b6c559.zip tcl-84e3fb460607d9f15c570f0f4b9b8e3a33b6c559.tar.gz tcl-84e3fb460607d9f15c570f0f4b9b8e3a33b6c559.tar.bz2 |
make some more internal tables const
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinFCmd.c | 2 | ||||
-rw-r--r-- | win/tclWinPipe.c | 2 | ||||
-rw-r--r-- | win/tclWinReg.c | 2 | ||||
-rw-r--r-- | win/tclWinTest.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/win/tclWinFCmd.c b/win/tclWinFCmd.c index fea9ddb..aa0d665 100644 --- a/win/tclWinFCmd.c +++ b/win/tclWinFCmd.c @@ -50,7 +50,7 @@ enum { WIN_SYSTEM_ATTRIBUTE }; -static int attributeArray[] = {FILE_ATTRIBUTE_ARCHIVE, FILE_ATTRIBUTE_HIDDEN, +static const int attributeArray[] = {FILE_ATTRIBUTE_ARCHIVE, FILE_ATTRIBUTE_HIDDEN, 0, FILE_ATTRIBUTE_READONLY, 0, FILE_ATTRIBUTE_SYSTEM}; diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index f1b18df..9664937 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -1290,7 +1290,7 @@ ApplicationType( Tcl_DString nameBuf, ds; const TCHAR *nativeName; TCHAR nativeFullPath[MAX_PATH]; - static char extensions[][5] = {"", ".com", ".exe", ".bat"}; + static const char extensions[][5] = {"", ".com", ".exe", ".bat"}; /* * Look for the program as an external program. First try the name as it diff --git a/win/tclWinReg.c b/win/tclWinReg.c index 1390415..937089c 100644 --- a/win/tclWinReg.c +++ b/win/tclWinReg.c @@ -67,7 +67,7 @@ static const char *const rootKeyNames[] = { "HKEY_PERFORMANCE_DATA", "HKEY_DYN_DATA", NULL }; -static HKEY rootKeys[] = { +static const HKEY rootKeys[] = { HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_CURRENT_CONFIG, HKEY_PERFORMANCE_DATA, HKEY_DYN_DATA }; diff --git a/win/tclWinTest.c b/win/tclWinTest.c index 6ef1157..392e830 100644 --- a/win/tclWinTest.c +++ b/win/tclWinTest.c @@ -430,7 +430,7 @@ TestExceptionCmd( "invalid_disp", "guard_page", "invalid_handle", "ctrl+c", NULL }; - static DWORD exceptions[] = { + static const DWORD exceptions[] = { EXCEPTION_ACCESS_VIOLATION, EXCEPTION_DATATYPE_MISALIGNMENT, EXCEPTION_ARRAY_BOUNDS_EXCEEDED, EXCEPTION_FLT_DENORMAL_OPERAND, EXCEPTION_FLT_DIVIDE_BY_ZERO, EXCEPTION_FLT_INEXACT_RESULT, |