diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinFCmd.c | 2 | ||||
-rwxr-xr-x | win/tclWinPipe.c | 2 | ||||
-rw-r--r-- | win/tclWinReg.c | 2 | ||||
-rw-r--r-- | win/tclWinTest.c | 4 | ||||
-rw-r--r-- | win/tclWinTime.c | 6 |
5 files changed, 8 insertions, 8 deletions
diff --git a/win/tclWinFCmd.c b/win/tclWinFCmd.c index 231e4b7..2aeed16 100644 --- a/win/tclWinFCmd.c +++ b/win/tclWinFCmd.c @@ -54,7 +54,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 a661343..4c530e3 100755 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -1367,7 +1367,7 @@ ApplicationType(interp, originalName, fullName) Tcl_DString nameBuf, ds; CONST TCHAR *nativeName; WCHAR 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 is, then try adding .com, .exe, and .bat, in that order, to diff --git a/win/tclWinReg.c b/win/tclWinReg.c index d4c7292..3960fda 100644 --- a/win/tclWinReg.c +++ b/win/tclWinReg.c @@ -49,7 +49,7 @@ static CONST char *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 0ddd76b..dadd067 100644 --- a/win/tclWinTest.c +++ b/win/tclWinTest.c @@ -440,7 +440,7 @@ TestExceptionCmd( int objc, /* Argument count */ Tcl_Obj *CONST objv[]) /* Argument vector */ { - static char *cmds[] = { + static CONST84 char *cmds[] = { "access_violation", "datatype_misalignment", "array_bounds", @@ -464,7 +464,7 @@ TestExceptionCmd( "ctrl+c", NULL }; - static DWORD exceptions[] = { + static const DWORD exceptions[] = { EXCEPTION_ACCESS_VIOLATION, EXCEPTION_DATATYPE_MISALIGNMENT, EXCEPTION_ARRAY_BOUNDS_EXCEEDED, diff --git a/win/tclWinTime.c b/win/tclWinTime.c index dd5699e..8bbd8fd 100644 --- a/win/tclWinTime.c +++ b/win/tclWinTime.c @@ -26,11 +26,11 @@ * each month, where index 1 is January. */ -static int normalDays[] = { +static const int normalDays[] = { -1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364 }; -static int leapDays[] = { +static const int leapDays[] = { -1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }; @@ -668,7 +668,7 @@ ComputeGMT(tp) struct tm *tmPtr; long tmp, rem; int isLeap; - int *days; + const int *days; ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); tmPtr = &tsdPtr->tm; |