diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-05 06:40:43 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-05 06:40:43 (GMT) |
commit | 1ab82013f2c14f4c0627dfa13fb18970b9c1db49 (patch) | |
tree | 630d48a1c1609e578d2eec88c1b1ce39221e5898 /generic/tclObj.c | |
parent | d206ee3c75c6f7e11fcc83dcc0152edf9dd94831 (diff) | |
download | tcl-1ab82013f2c14f4c0627dfa13fb18970b9c1db49.zip tcl-1ab82013f2c14f4c0627dfa13fb18970b9c1db49.tar.gz tcl-1ab82013f2c14f4c0627dfa13fb18970b9c1db49.tar.bz2 |
Tcl_GetSizeIntFromObj
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r-- | generic/tclObj.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c index 99368fe..9d6cd2d 100644 --- a/generic/tclObj.c +++ b/generic/tclObj.c @@ -3555,6 +3555,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 Tcl_GetIntFromObj(interp, objPtr, sizePtr); +} + +/* + *---------------------------------------------------------------------- + * * FreeBignum -- * * This function frees the internal rep of a bignum. |