chiark / gitweb /
Debian package wip
[chiark-tcl.git] / base / hook.c
index 56a32681a52756138a73cd4d5f5f42fbe5b7aeab..acd708a91f5cb92e2910e1656881300e9a9b7f32 100644 (file)
@@ -1,9 +1,24 @@
 /*
+ * base code for various Tcl extensions
+ * 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.h"
+#include "chiark-tcl-base.h"
 
 int cht_staticerr(Tcl_Interp *ip, const char *m, const char *ec) {
   Tcl_SetResult(ip, (char*)m, TCL_STATIC);
@@ -99,6 +114,7 @@ int cht_initextension(Tcl_Interp *ip, const TopLevel_Command *cmds,
 
   if (!cht_initd) {
     cht_initd= 1;
+    Tcl_RegisterObjType(&cht_tabledataid_nearlytype);
     Tcl_RegisterObjType(&cht_enum_nearlytype);
     Tcl_RegisterObjType(&cht_enum1_nearlytype);
   }