aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2013-08-11 09:36:15 +1000
committerSteve Bennett <steveb@workware.net.au>2013-08-19 21:15:55 +1000
commit05f1c54f9c2aabf0621a9faba234cd4ea006c6e9 (patch)
treec6df025f0a1172a597a55bdcef6fb28eb1d58a86
parent6deef452cdeb96b13933dfb2fc28e838ac0739c7 (diff)
downloadjimtcl-05f1c54f9c2aabf0621a9faba234cd4ea006c6e9.zip
jimtcl-05f1c54f9c2aabf0621a9faba234cd4ea006c6e9.tar.gz
jimtcl-05f1c54f9c2aabf0621a9faba234cd4ea006c6e9.tar.bz2
Make Jim_IsBigEndian() public
And remove declarations of some obsolete functions Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r--jim.c4
-rw-r--r--jim.h8
2 files changed, 3 insertions, 9 deletions
diff --git a/jim.c b/jim.c
index e3ee2cd..5b0dbc5 100644
--- a/jim.c
+++ b/jim.c
@@ -5358,7 +5358,7 @@ void Jim_CollectIfNeeded(Jim_Interp *interp)
}
#endif
-static int JimIsBigEndian(void)
+int Jim_IsBigEndian(void)
{
union {
unsigned short s;
@@ -5420,7 +5420,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(byteOrder)", Jim_IsBigEndian() ? "bigEndian" : "littleEndian");
Jim_SetVariableStrWithStr(i, "tcl_platform(threaded)", "0");
Jim_SetVariableStr(i, "tcl_platform(pointerSize)", Jim_NewIntObj(i, sizeof(void *)));
Jim_SetVariableStr(i, "tcl_platform(wordSize)", Jim_NewIntObj(i, sizeof(jim_wide)));
diff --git a/jim.h b/jim.h
index 9af655c..e8bac4f 100644
--- a/jim.h
+++ b/jim.h
@@ -857,12 +857,6 @@ JIM_EXPORT void Jim_SetDouble(Jim_Interp *interp, Jim_Obj *objPtr,
double doubleValue);
JIM_EXPORT Jim_Obj * Jim_NewDoubleObj(Jim_Interp *interp, double doubleValue);
-/* shared strings */
-JIM_EXPORT const char * Jim_GetSharedString (Jim_Interp *interp,
- const char *str);
-JIM_EXPORT void Jim_ReleaseSharedString (Jim_Interp *interp,
- const char *str);
-
/* commands utilities */
JIM_EXPORT void Jim_WrongNumArgs (Jim_Interp *interp, int argc,
Jim_Obj *const *argv, const char *msg);
@@ -907,7 +901,7 @@ JIM_EXPORT void Jim_HistoryShow(void);
/* Misc */
JIM_EXPORT int Jim_InitStaticExtensions(Jim_Interp *interp);
JIM_EXPORT int Jim_StringToWide(const char *str, jim_wide *widePtr, int base);
-JIM_EXPORT int Jim_CheckSignal(Jim_Interp *interp);
+JIM_EXPORT int Jim_IsBigEndian(void);
/**
* Returns 1 if a signal has been received while
* in a catch -signal {} clause.