chiark / gitweb /
tcmdifgen: Replace deprecated `use IO;' with `use IO::File'.
[chiark-tcl.git] / hbytes / hbytes.tct
index c07bf1e9988d3a157d5c04504b292b89905e1086..dc6980e100a4e4053b40acd52967fbdd42bf7b65 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
+
 
 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