aboutsummaryrefslogtreecommitdiff
path: root/binary.tcl
AgeCommit message (Collapse)AuthorFilesLines
2014-03-18jim.c: check for missing quotes, etc. in eval, exprSteve Bennett1-2/+2
Throw an error if a script or expression is missing a trailing bracket, brace or quote rather than simply ignoring the error. Reported-by: Florian Schäfer <florian.schaefer+github@gmail.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-08-19Add floating point support for [binary]Steve Bennett1-4/+12
From work by Vadim Zborovskii Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-08-19Rework binary.tcl in preparation for float supportSteve Bennett1-184/+198
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-08-19Fixes to make behaviour of Jim's 'binary' more compliant to Tcl.Vadim Zborovskii1-2/+4
2012-09-24Fix binary scan for too-few bytes.Vadim Zborovskii1-2/+2
According to the Tcl manual, in this case "binary scan returns immediately with the number of variables that were set". (Tests added by Steve Bennett) Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-10Implement the [binary] commandSteve Bennett1-0/+254
Supports everything except floating point types binary is implemented in Tcl on top of the low level [pack] and [unpack] commands Signed-off-by: Steve Bennett <steveb@workware.net.au>