diff options
author | dgp <dgp@users.sourceforge.net> | 2018-03-12 13:24:15 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2018-03-12 13:24:15 (GMT) |
commit | 410bda416e3eef926c54997ec53f079b4d84f669 (patch) | |
tree | a66b6839718898d348f0a8b506cdab00410e2501 /unix/tclUnixInit.c | |
parent | 861217dbe37cbfd71b8cf906c7b32d3ec4f04b2a (diff) | |
parent | 45f51432050a5d9442f2d47734908b04c7ec5dcb (diff) | |
download | tcl-410bda416e3eef926c54997ec53f079b4d84f669.zip tcl-410bda416e3eef926c54997ec53f079b4d84f669.tar.gz tcl-410bda416e3eef926c54997ec53f079b4d84f669.tar.bz2 |
merge 8.7
Diffstat (limited to 'unix/tclUnixInit.c')
-rw-r--r-- | unix/tclUnixInit.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index feeffa6..630460a 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", @@ -453,7 +448,7 @@ TclpInitPlatform(void) void TclpInitLibraryPath( char **valuePtr, - size_t *lengthPtr, + unsigned int *lengthPtr, Tcl_Encoding *encodingPtr) { #define LIBRARY_SIZE 32 @@ -582,12 +577,6 @@ TclpSetInitialEncodings(void) Tcl_DStringFree(&encodingName); } -void -TclpSetInterfaces(void) -{ - /* do nothing */ -} - static const char * SearchKnownEncodings( const char *encoding) @@ -890,10 +879,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) { |