Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27c669f67f | ||
|
|
b749722945 | ||
|
|
ec2c95ca07 |
+5
-5
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
package require Tk
|
package require Tk
|
||||||
|
|
||||||
set appversion 0.2
|
set appversion 0.4
|
||||||
set scriptpath [file normalize [info script]]
|
set scriptpath [file normalize [info script]]
|
||||||
set appdir [file dirname $scriptpath]
|
set appdir [file dirname $scriptpath]
|
||||||
# check if we're running from a starpack
|
# check if we're running from a starpack
|
||||||
@@ -359,9 +359,9 @@ proc fullscanscheme {version} {
|
|||||||
if {$size eq 1} {set fmt cu}
|
if {$size eq 1} {set fmt cu}
|
||||||
if {$size eq 2} {set fmt s}
|
if {$size eq 2} {set fmt s}
|
||||||
if {$size eq 4} {set fmt i}
|
if {$size eq 4} {set fmt i}
|
||||||
catch {
|
set newval ""
|
||||||
binary scan [string range $rawschemedata [expr {$offs + $size}]] $fmt wscval
|
binary scan [string range $rawschemedata $offs [expr {$offs + $size}]] $fmt newval
|
||||||
}
|
if {$newval ne ""} {set wscval $newval}
|
||||||
if {([llength $valopt] > 1) && ([lindex $valopt 0] eq "spec")} {
|
if {([llength $valopt] > 1) && ([lindex $valopt 0] eq "spec")} {
|
||||||
set readfunc "[lindex $valopt 1]_read"
|
set readfunc "[lindex $valopt 1]_read"
|
||||||
set wscval [$readfunc $wscval]
|
set wscval [$readfunc $wscval]
|
||||||
@@ -427,7 +427,7 @@ proc savescheme {fname} {
|
|||||||
if {$diffbytes > 0} { # expand with nulls
|
if {$diffbytes > 0} { # expand with nulls
|
||||||
set rawschemedata [string cat $rawschemedata [binary format x$diffbytes]]
|
set rawschemedata [string cat $rawschemedata [binary format x$diffbytes]]
|
||||||
} else { # truncate
|
} else { # truncate
|
||||||
set rawschemedata [string range $rawschemedata 0 [expr {$datasize - 1}]
|
set rawschemedata [string range $rawschemedata 0 [expr {$datasize - 1}]]
|
||||||
}
|
}
|
||||||
# write the version itself
|
# write the version itself
|
||||||
set binval [binary format cu $wsc_data(version)]
|
set binval [binary format cu $wsc_data(version)]
|
||||||
|
|||||||
Reference in New Issue
Block a user