chiark / gitweb /
Debian package wip
[chiark-tcl.git] / hbytes / hook.c
index 4c742f3dcd99de2a1140c17733edd95e473384c1..f3817ffe20d44de9c22029b270e554d650f0e44a 100644 (file)
@@ -1,6 +1,24 @@
 /*
+ * hbytes - hex-stringrep efficient byteblocks for Tcl
+ * Copyright 2006 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, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #include <errno.h>
 
 #include "chiark_tcl_hbytes.h"
@@ -266,12 +284,6 @@ int cht_do_hbytes_range(ClientData cd, Tcl_Interp *ip,
   return TCL_OK;
 }
 
-int cht_do_hbytes_addr_map(ClientData cd, Tcl_Interp *ip,
-                      const AddrMap_SubCommand *subcmd,
-                      int objc, Tcl_Obj *const *objv) {
-  return subcmd->func(0,ip,objc,objv);
-}
-
 /* hbytes representing uint16_t's */
 
 int cht_do_hbytes_h2ushort(ClientData cd, Tcl_Interp *ip,
@@ -316,13 +328,11 @@ int cht_do_hbytestoplevel_ulong(ClientData cd, Tcl_Interp *ip,
   return subcmd->func(0,ip,objc,objv);
 }
 
-extern int Chiark_tcl_hbytes_Init(Tcl_Interp *ip); /*called by load(3tcl)*/
 int Chiark_tcl_hbytes_Init(Tcl_Interp *ip) {
   static int initd;
   
   return cht_initextension(ip, cht_hbytestoplevel_entries, &initd,
                           &cht_hbytes_type,
                           &cht_ulong_type,
-                          &cht_addrmap_type,
                           (Tcl_ObjType*)0);
 }