summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-01-11 16:36:28 (GMT)
committersebres <sebres@users.sourceforge.net>2017-01-11 16:36:28 (GMT)
commitb2190d273f42dc51a6455279afdf00695c45c12b (patch)
tree1ee500850aa1cc85a543afe3024c76f77d769d60 /generic/tclClock.c
parent0be426fec21fe7b763b7486ec2c6d11d17fb19e3 (diff)
downloadtcl-b2190d273f42dc51a6455279afdf00695c45c12b.zip
tcl-b2190d273f42dc51a6455279afdf00695c45c12b.tar.gz
tcl-b2190d273f42dc51a6455279afdf00695c45c12b.tar.bz2
code review and inline documentation
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r--generic/tclClock.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index efa9120..c63f425 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -412,7 +412,19 @@ NormTimezoneObj(
/*
*----------------------------------------------------------------------
+ *
+ * ClockGetSystemLocale --
+ *
+ * Returns system locale.
+ *
+ * Executes ::tcl::clock::GetSystemLocale in given interpreter.
+ *
+ * Results:
+ * Returns system locale tcl object.
+ *
+ *----------------------------------------------------------------------
*/
+
static inline Tcl_Obj *
ClockGetSystemLocale(
ClockClientData *dataPtr, /* Opaque pointer to literal pool, etc. */
@@ -426,7 +438,19 @@ ClockGetSystemLocale(
}
/*
*----------------------------------------------------------------------
+ *
+ * ClockGetCurrentLocale --
+ *
+ * Returns current locale.
+ *
+ * Executes ::tcl::clock::mclocale in given interpreter.
+ *
+ * Results:
+ * Returns current locale tcl object.
+ *
+ *----------------------------------------------------------------------
*/
+
static inline Tcl_Obj *
ClockGetCurrentLocale(
ClockClientData *dataPtr, /* Client data containing literal pool */
@@ -978,6 +1002,9 @@ ClockGetTZData(
*
* Returns system (current) timezone.
*
+ * If system zone not yet cached, it executes ::tcl::clock::GetSystemTimeZone
+ * in given interpreter and caches its result.
+ *
* Results:
* Returns normalized timezone object.
*