aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-07-12 09:02:32 +1000
committerSteve Bennett <steveb@workware.net.au>2011-07-13 11:30:29 +1000
commite7e3cedcbde855a2f22ee9eb830b62c45b543836 (patch)
tree82d43014a41de21a813a0f7df3accd5ef26b6721 /jim.c
parent539f52a07c94d769e51d046d71903e4a2505edd7 (diff)
downloadjimtcl-e7e3cedcbde855a2f22ee9eb830b62c45b543836.zip
jimtcl-e7e3cedcbde855a2f22ee9eb830b62c45b543836.tar.gz
jimtcl-e7e3cedcbde855a2f22ee9eb830b62c45b543836.tar.bz2
Add tcl_platform(pathSeparator)
Tcl compatible. Also move jimsh initialisation script into initjimsh.tcl Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/jim.c b/jim.c
index ccf120f..1e4b53d 100644
--- a/jim.c
+++ b/jim.c
@@ -85,6 +85,9 @@
#ifndef TCL_PLATFORM_PLATFORM
#define TCL_PLATFORM_PLATFORM "unknown"
#endif
+#ifndef TCL_PLATFORM_PATH_SEPARATOR
+#define TCL_PLATFORM_PATH_SEPARATOR ":"
+#endif
/*#define DEBUG_SHOW_SCRIPT*/
/*#define DEBUG_SHOW_SCRIPT_TOKENS*/
@@ -4991,6 +4994,7 @@ Jim_Interp *Jim_CreateInterp(void)
Jim_SetVariableStrWithStr(i, "tcl_platform(os)", TCL_PLATFORM_OS);
Jim_SetVariableStrWithStr(i, "tcl_platform(platform)", TCL_PLATFORM_PLATFORM);
+ Jim_SetVariableStrWithStr(i, "tcl_platform(pathSeparator)", TCL_PLATFORM_PATH_SEPARATOR);
Jim_SetVariableStrWithStr(i, "tcl_platform(byteOrder)", JimIsBigEndian() ? "bigEndian" : "littleEndian");
Jim_SetVariableStrWithStr(i, "tcl_platform(threaded)", "0");
Jim_SetVariableStr(i, "tcl_platform(pointerSize)", Jim_NewIntObj(i, sizeof(void *)));