mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 13:23:51 +00:00
32 lines
830 B
C
32 lines
830 B
C
![]() |
/* ------------------- htree.h -------------------- */
|
||
|
|
||
|
#ifndef HTREE_H
|
||
|
#define HTREE_H
|
||
|
|
||
|
typedef unsigned int BYTECOUNTER;
|
||
|
|
||
|
/* ---- Huffman tree structure for building ---- */
|
||
|
struct htree {
|
||
|
BYTECOUNTER cnt; /* character frequency */
|
||
|
int parent; /* offset to parent node */
|
||
|
int right; /* offset to right child node */
|
||
|
int left; /* offset to left child node */
|
||
|
};
|
||
|
|
||
|
/* ---- Huffman tree structure in compressed file ---- */
|
||
|
struct htr {
|
||
|
int right; /* offset to right child node */
|
||
|
int left; /* offset to left child node */
|
||
|
};
|
||
|
|
||
|
extern struct htr *HelpTree;
|
||
|
|
||
|
void buildtree(void);
|
||
|
FILE *OpenHelpFile(void);
|
||
|
void HelpFilePosition(long *, int *);
|
||
|
void *GetHelpLine(char *);
|
||
|
void SeekHelpLine(long, int);
|
||
|
|
||
|
#endif
|
||
|
|