remove calloc calls
[compress.git] / code.h
diff --git a/code.h b/code.h
index 684745bde13928e300572a57cc1154fc14ba2f08..06f78ebf234089aa6cc5f90f796c2262248fd48c 100644 (file)
--- a/code.h
+++ b/code.h
@@ -18,6 +18,18 @@ int codcmp (char *cod1, char *cod2);
 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: set ts=4 sw=4 et */