summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
Commit message (Collapse)AuthorAgeFilesLines
* merge trunkdgp2017-09-141-1/+1
|\
| * Make mp_get_long and mp_set_long available to tommath-enabled Tcl ↵jan.nijtmans2017-09-131-1/+1
| | | | | | | | extensions. Deprecate the internal TclBNInitBignumFrom* functions, in favor of the official tommath functions with the same purpose.
* | merge trunkdgp2017-09-011-3/+3
|\ \ | |/
| * merge core-8-6-branchjan.nijtmans2017-08-181-3/+3
| |\
| | * Better UTF-8 surrogate handling, only functional when TCL_UTF_MAX>3jan.nijtmans2017-06-081-3/+3
| | |
* | | merge trunkdgp2017-06-061-3/+3
|\ \ \ | |/ /
| * | merge core-8-6-branchjan.nijtmans2017-05-291-3/+3
| |\ \ | | |/
| | * Tcl_UtfToUniChar() -> TclUtfToUniChar() in various places: No change in ↵jan.nijtmans2017-05-291-3/+3
| | | | | | | | | | | | functionality, just faster if ASCII only strings are involved.
* | | merge trunkdgp2017-05-081-1/+9
|\ \ \ | |/ /
| * | [6015221f59] Segfault after overflow of [binary] field specifier numeric count.dgp2017-05-051-1/+9
| |\ \ | | |/
| | * [6015221f59] Segfault after overflow of [binary] field specifier numeric count.dgp2017-05-051-1/+9
| | |\
| | | * [6015221f59] Segfault after overflow of [binary] field specifier numeric count.dgp2017-05-051-1/+9
| | | |
| | | * Backport of bytearray append machinery to support bug fixes in ReadBytes.dgp2014-01-211-0/+92
| | | |
* | | | merge trunkdgp2017-01-121-4/+4
|\ \ \ \ | |/ / /
| * | | TIP [http://www.tcl.tk/cgi-bin/tct/tip/456|456] implementation: Extend the C ↵tip_456jan.nijtmans2017-01-041-4/+4
| |\ \ \ | | | | | | | | | | | | | | | API to Support Passing Options to TCP Server Creation
* | \ \ \ merge trunkdgp2016-12-231-2/+4
|\ \ \ \ \ | |/ / / /
| * | | | more internal use of size_t in stead of int.jan.nijtmans2016-12-201-2/+4
| |/ / /
* | | | merge trunkdgp2016-12-021-35/+171
|\ \ \ \ | |/ / /
| * | | Added long comment explaining history and work in progress making bytearraydgp2016-12-021-22/+87
| | | | | | | | | | | | interfaces usable.
| * | | So long as we register only one, we can have multiple Tcl_ObjTypes withdgp2016-12-011-1/+1
| | | | | | | | | | | | the same name. This smooths migration. See obj-2.2 and tclsqlite usage.
| * | | Created a new "proper bytearray" Tcl_ObjType so we can use bytearraysdgp2016-12-011-21/+44
| | | | | | | | | | | | as bytearrays without all this fussing about over purity.
* | | | merge trunkdgp2016-07-091-1/+1
|\ \ \ \ | |/ / /
| * | | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-1/+1
| |/ / | | | | | | | | | in many places where possible.
* | | Conversion of "bytearray" Tcl_ObjType - much better this time.dgp2016-03-271-46/+54
|\ \ \
| * | | Convert the "bytearray" Tcl_ObjType to use the proposed Tcl_ObjIntReptip_445_rejectdgp2016-03-261-46/+63
|/ / / | | | | | | | | | | | | manipulation routines. This works, but requires too much ugliness. The ugliness reveals that the interface needs some refinement, making this a rejected branch of development.
* | | Update Tcl_InitStringRep callers to handle OOM condition.dgp2016-03-241-1/+3
| | |
* | | Tcl_InitStringRep() bug. Truncation assumed length == allocated. Wrong!dgp2016-03-231-32/+29
|/ / | | | | | | Convert "bytearray" Tcl_ObjType to used new facilities. No longer directly refers to bytes or length fields, or any ckalloc of string rep.
* | [2992970] Restore the safety of Tcl_AppendObjToObj(x, x) for bytearrays.bug_2992970dgp2014-01-151-41/+33
| | | | | | | | | | | | | | | | | | Also moves overflow checking to TclAppendBytesToByteArray() and adds the ability to call TABTBA() with bytes==NULL, for appending unspecified bytes. That is, the string grows, but the new bytes are of undetermined value. Like Tcl_NewByteArrayObj(NULL, length) this option is useful for manipulating buffers. The TABTBA growth algorithm is also enhanced a bit, copying over a fuller implementation from GrowStringBuffer() in tclStringObj.c
* | Tcl_SetResult -> Tcl_SetObjResultjan.nijtmans2013-09-261-2/+4
| |
* | Refactor to remove unused flexibility.dkf2013-09-161-12/+10
| |
* | Be careful: separator needs to be bytes, not internal-encoded.dkf2013-09-161-7/+10
| |
* | Add back -wrapchar option to "binary encode uuencode"jan.nijtmans2013-09-151-6/+13
|\ \
| * | Hm, this check doesn't really add anything.jan.nijtmans2013-09-141-6/+0
| | |
| * | Add back -wrapchar option to "binary encode uuencode".jan.nijtmans2013-09-141-6/+19
| | |
* | | And the decoder too.dkf2013-09-141-18/+86
|/ /
* | [2152292] Corrected implementation of uuencoding.dkf2013-09-141-4/+121
| |
* | [b98fa55285]: Fix handling of whitespace at end of hex strings to decode.dkf2013-09-011-20/+23
| |
* | Some VOID -> void, Tcl_TraceVar -> Tcl_TraceVar2 and Tcl_VarTraceInfo -> ↵jan.nijtmans2013-02-271-1/+1
| | | | | | | | Tcl_VarTraceInfo2 conversions.
* | Tcl_InvalidateStringRep -> TclInvalidateStringRepjan.nijtmans2013-02-071-3/+3
|\ \ | |/
| * Tcl_InvalidateStringRep -> TclInvalidateStringRepjan.nijtmans2013-02-071-2/+2
| |
* | merge core-8-5-branchjan.nijtmans2013-01-311-2/+3
|\ \ | |/
| * Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-2/+2
| | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
* | Add super-simple compiler to many ensemble subcommands to allow better codedkf2013-01-041-23/+27
| | | | | | | | | | generation where we can detect that we're not in the WrongNumArgs case. The compiler just checks that the argument count is in the right range and issues a standard dispatch; that's enough to do an efficient job.
* | very minor style tweaksbug_3033307dkf2012-11-201-6/+9
| |
* | Contributed patch from Andy Goth.dgp2012-11-151-26/+65
| |
* | eliminate compiler warning in previous commitjan.nijtmans2012-09-171-1/+1
|\ \ | |/
| * eliminate compiler warning in previous commitjan.nijtmans2012-09-171-1/+1
| |
| * Nicer style test.stwo2012-09-161-2/+2
| |
* | Nicer style test.stwo2012-09-161-2/+2
| |
| |
| \
*-. \ [Bug 3496014] Unecessary memset() in Tcl_SetByteArrayObj().jan.nijtmans2012-08-231-7/+5
|\ \ \ | | |/