summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-04-05 10:45:44 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-04-05 10:45:44 (GMT)
commita066019d75adf70a570acde653d89f3fda5254a4 (patch)
treeb9b9866d635da1c7eb9180c410a1ea258372ee8a /generic/tclObj.c
parent543bde3f267b817f06c56f74d3480c691866ecb1 (diff)
downloadtcl-a066019d75adf70a570acde653d89f3fda5254a4.zip
tcl-a066019d75adf70a570acde653d89f3fda5254a4.tar.gz
tcl-a066019d75adf70a570acde653d89f3fda5254a4.tar.bz2
Export Tcl_GetSizeFromObj in stubs
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index d0daa24..87b2d6d 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -3134,6 +3134,31 @@ TclGetWideBitsFromObj(
/*
*----------------------------------------------------------------------
*
+ * Tcl_GetSizeIntFromObj --
+ *
+ * Attempt to return a Tcl_Size from the Tcl object "objPtr".
+ *
+ * Results:
+ * TCL_OK - the converted Tcl_Size value is stored in *sizePtr
+ * TCL_ERROR - the error message is stored in interp
+ *
+ * Side effects:
+ * The function may free up any existing internal representation.
+ *
+ *----------------------------------------------------------------------
+ */
+int
+Tcl_GetSizeIntFromObj(
+ Tcl_Interp *interp, /* Used for error reporting if not NULL. */
+ Tcl_Obj *objPtr, /* The object from which to get a int. */
+ Tcl_Size *sizePtr) /* Place to store resulting int. */
+{
+ return TclGetSizeIntFromObj(interp, objPtr, sizePtr);
+}
+
+/*
+ *----------------------------------------------------------------------
+ *
* FreeBignum --
*
* This function frees the internal rep of a bignum.