chiark / gitweb /
Remove .cvsignore files from git repo.
[chiark-tcl.git] / hbytes / hbytes.h
index 4a2f394862eb5eb31e5f618738e96d811f84e092..0ed871c8f3d20a1e3ef9b64586fc4c878304d57e 100644 (file)
@@ -1,5 +1,3 @@
-/*
- */
 /*
  *  hbytes raw2h BINARY                          => hex
  *  hbytes h2raw HEX                             => binary
  * TUNTAP IFNAME LENGTH                tun/tap interface name too long
  * TUNTAP MTU OVERRUN                  tun/tap mtu limited to 2^16 bytes
  *
- * Refs: HMAC: RFC2104 */
+ * Refs: HMAC: RFC2104
+ */
+/* ---8<--- end of documentation comment --8<-- */
+
+/*
+ * 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/>.
+ */
+
 
 #ifndef HBYTES_H
 #define HBYTES_H
@@ -165,6 +184,8 @@ typedef struct {
 } HBytes_ComplexValue; /* pointed to from internalRep.otherValuePtr */
 
 void memxor(Byte *dest, const Byte *src, int l);
+extern int Chiark_tcl_hbytes_Init(Tcl_Interp *ip);
+  /* called by load(3tcl) and also by extensions which depend on this one */
 
 /* Public interfaces: */
 
@@ -200,8 +221,8 @@ void cht_hb_free(const HBytes_Value *frees);
 
 /* from hook.c */
 
-void obj_updatestr_array(Tcl_Obj *o, const Byte *array, int l);
-void obj_updatestr_array_prefix(Tcl_Obj *o, const Byte *byte,
+void cht_obj_updatestr_array(Tcl_Obj *o, const Byte *array, int l);
+void cht_obj_updatestr_array_prefix(Tcl_Obj *o, const Byte *byte,
                                int l, const char *prefix);
 
 /* from parse.c */