diff options
author | max <max@tclers.tk> | 2011-04-01 09:29:24 (GMT) |
---|---|---|
committer | max <max@tclers.tk> | 2011-04-01 09:29:24 (GMT) |
commit | c8eb649431a107df0b9828649d96894768c00591 (patch) | |
tree | 840c4117ebfc7661a5afe2a042d46bb55792cab2 /library | |
parent | 86d9abcd45aaf8619a159ae299d8df3fd30f2acf (diff) | |
download | tcl-c8eb649431a107df0b9828649d96894768c00591.zip tcl-c8eb649431a107df0b9828649d96894768c00591.tar.gz tcl-c8eb649431a107df0b9828649d96894768c00591.tar.bz2 |
Implement TIP#131
Diffstat (limited to 'library')
-rw-r--r-- | library/init.tcl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/library/init.tcl b/library/init.tcl index 33b6b33..e6e69c3 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -821,3 +821,18 @@ proc tcl::CopyDirectory {action src dest} { } return } + +# TIP 131 +proc tcl::rmmadwiw {} { + set magic { + 42 83 fe f6 ff f8 f1 e5 c6 f9 eb fd ff fb f1 e5 cc f5 ec f5 e3 fd fe + ff f5 fa f3 e1 c7 f9 f2 fd ff f9 fe f9 ed f4 fa f6 e6 f9 f2 e6 fd f9 + ff f9 f6 e6 fa fd ff fc fb fc f9 f1 ed + } + foreach mystic [lassign $magic tragic] { + set comic [expr (0x$mystic ^ 0x$tragic) - 255 + 0x$tragic] + append logic [format %x $comic] + set tragic $mystic + } + binary format H* $logic +} |