summaryrefslogtreecommitdiffstats
path: root/win/tclWinInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-21 14:59:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-21 14:59:04 (GMT)
commit9215c2610ca2f4938aa0947bcbd1ecd19a8e5009 (patch)
tree77293371209ddf526cc03b60efab4e67a7b76f4e /win/tclWinInit.c
parentb44ffcf5e24b13f5fd302449456cacaf4b9cb92e (diff)
downloadtcl-9215c2610ca2f4938aa0947bcbd1ecd19a8e5009.zip
tcl-9215c2610ca2f4938aa0947bcbd1ecd19a8e5009.tar.gz
tcl-9215c2610ca2f4938aa0947bcbd1ecd19a8e5009.tar.bz2
Drop Windows CE support, since it doesn't appear to work anyway.
Diffstat (limited to 'win/tclWinInit.c')
-rw-r--r--win/tclWinInit.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index 98c7ed5..ec5582c 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -84,15 +84,10 @@ TclWinProcs tclWinProcs;
/*
* The following arrays contain the human readable strings for the Windows
- * platform and processor values.
+ * processor values.
*/
-#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",
@@ -568,10 +563,7 @@ TclpSetVariables(
Tcl_SetVar2(interp, "tcl_platform", "platform", "windows",
TCL_GLOBAL_ONLY);
- 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);
wsprintfA(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion);
Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY);
if (sys.oemId.wProcessorArchitecture < NUMPROCESSORS) {