diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-19 12:23:19 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-19 12:23:19 (GMT) |
| commit | a430544f4a1f51fe9471263e696b7e50486aab10 (patch) | |
| tree | 6b24c47156a5389ebe6739d2a980d1183ede6bd6 /unix/tclUnixInit.c | |
| parent | 0a2389d0abfd3d6bec00e54c0c9539e3e2d87259 (diff) | |
| parent | ee66488c3683d1e2b6ac36f523638c42c5649433 (diff) | |
| download | tcl-a430544f4a1f51fe9471263e696b7e50486aab10.zip tcl-a430544f4a1f51fe9471263e696b7e50486aab10.tar.gz tcl-a430544f4a1f51fe9471263e696b7e50486aab10.tar.bz2 | |
merge core-8-branch. Also change some internal refCount's from int to size_t.
Diffstat (limited to 'unix/tclUnixInit.c')
| -rw-r--r-- | unix/tclUnixInit.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index feeffa6..9d46df9 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -39,11 +39,6 @@ DLLIMPORT extern __stdcall void FreeLibrary(void *); DLLIMPORT extern __stdcall void *GetProcAddress(void *, const char *); DLLIMPORT extern __stdcall void GetSystemInfo(void *); -#define NUMPLATFORMS 4 -static const char *const platforms[NUMPLATFORMS] = { - "Win32s", "Windows 95", "Windows NT", "Windows CE" -}; - #define NUMPROCESSORS 11 static const char *const processors[NUMPROCESSORS] = { "intel", "mips", "alpha", "ppc", "shx", "arm", "ia64", "alpha64", "msil", @@ -890,10 +885,7 @@ TclpSetVariables( GetSystemInfo(&sysInfo); - if (osInfo.dwPlatformId < NUMPLATFORMS) { - Tcl_SetVar2(interp, "tcl_platform", "os", - platforms[osInfo.dwPlatformId], TCL_GLOBAL_ONLY); - } + Tcl_SetVar2(interp, "tcl_platform", "os", "Windows NT", TCL_GLOBAL_ONLY); sprintf(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion); Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY); if (sysInfo.wProcessorArchitecture < NUMPROCESSORS) { |
