X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=hbytes%2Fhbytes.tct;h=dc6980e100a4e4053b40acd52967fbdd42bf7b65;hb=50b72ed6d566c8afbd3afb5c565eca002a737e7a;hp=c07bf1e9988d3a157d5c04504b292b89905e1086;hpb=18da0d73db4d270967b7afaa70bb0e3438dd9bc7;p=chiark-tcl.git diff --git a/hbytes/hbytes.tct b/hbytes/hbytes.tct index c07bf1e..dc6980e 100644 --- a/hbytes/hbytes.tct +++ b/hbytes/hbytes.tct @@ -1,11 +1,25 @@ +# hbytes - hex-stringrep efficient byteblocks for Tcl +# Copyright 2006-2012 Ian Jackson +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this library; if not, see . + Table *hbytestoplevel TopLevel_Command hbytes - subcmd enum(HBytes/_SubCommand, "hbytes subcommand") - ... obj + dispatch(HBytes/_SubCommand, "hbytes subcommand") ulong - subcmd enum(ULong/_SubCommand, "ulong subcommand") - ... obj + dispatch(ULong/_SubCommand, "ulong subcommand") Table ulong ULong_SubCommand ul2int @@ -55,22 +69,6 @@ Table hbytes HBytes_SubCommand h2raw hex hb => obj - h2hexquote - how hexquotehow - hex hb - => str - raw2hexquote - how hexquotehow - binary obj - => str - hexquote2h - how hexquotehow - hex hb - => str - hexquote2raw - how hexquotehow - binary obj - => str ushort2h value long => hb