Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'C/HuffEnc.h')
-rwxr-xr-xC/HuffEnc.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/C/HuffEnc.h b/C/HuffEnc.h
index 00dd9aca..9cf4bfde 100755
--- a/C/HuffEnc.h
+++ b/C/HuffEnc.h
@@ -1,13 +1,15 @@
-/* HuffEnc.h -- functions for Huffman encoding
-2008-03-26
-Igor Pavlov
-Public domain */
+/* HuffEnc.h -- Huffman encoding
+2009-02-07 : Igor Pavlov : Public domain */
-#ifndef __HUFFENC_H
-#define __HUFFENC_H
+#ifndef __HUFF_ENC_H
+#define __HUFF_ENC_H
#include "Types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
Conditions:
num <= 1024 = 2 ^ NUM_BITS
@@ -18,4 +20,8 @@ Conditions:
void Huffman_Generate(const UInt32 *freqs, UInt32 *p, Byte *lens, UInt32 num, UInt32 maxLen);
+#ifdef __cplusplus
+}
+#endif
+
#endif