remove skeleton file
[compress.git] / code.h
diff --git a/code.h b/code.h
index 5ffcf48ddb18da9ee3b7bb9ef6ebd96766316cd9..06f78ebf234089aa6cc5f90f796c2262248fd48c 100644 (file)
--- a/code.h
+++ b/code.h
@@ -13,11 +13,23 @@ typedef struct {
     char code[NB_BYTES - 1 + 1];
 } code_t;
 
-int codcat (char *dst, size_t n, char *src);
+int codcat (char *dst, int n, char *src);
 int codcmp (char *cod1, char *cod2);
-int codcpy (char *dst, size_t n, char *src);
+int codcpy (char *dst, int n, char *src);
 int codlen (char *code);
 
+/* leaf structure */
+
+typedef struct _leaf_t
+{
+    struct _leaf_t *left;
+    struct _leaf_t *right;
+    int occ;
+    byte_t c;
+} leaf_t;
+
+leaf_t *getleaf (int n);
+
 #endif /* __CODE_H__ */
 
-// vim: ts=4 sw=4 et
+/* vim: set ts=4 sw=4 et */