remove skeleton file
[compress.git] / code.h
diff --git a/code.h b/code.h
index 977efc3e88687cbad2f8d86efb4f9055f6691dfc..06f78ebf234089aa6cc5f90f796c2262248fd48c 100644 (file)
--- a/code.h
+++ b/code.h
@@ -1,8 +1,6 @@
 #ifndef __CODE_H__
 #define __CODE_H__
 
-#include <stddef.h>
-
 #define NB_BYTES 256
 
 /* byte type */
@@ -15,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 */