00001 // Copy of llist.c for huffman tree lists (change element type) 00002 00003 #include <j2k/Fred/Basic.hpp> 00004 00005 // Include the following line for general list tests 00006 // typedef int Elem; 00007 00008 // Include the following lines for Huffman code test 00009 #include <j2k/DataType/HuffMan/LettFreq.hpp> 00010 00011 typedef LettFreq* Belem; 00012 00013 #include <j2k/DataType/BinTree.hpp> 00014 #include <j2k/DataType/HuffMan/HuffTree.hpp> 00015 00016 typedef HuffTree* Elem; 00017 #define key(X) (int)(X) 00018 00019 // Use for freelist link class. 00020 #include <j2k/DataType/Link/SLink.hpp> 00021 #include <j2k/DataType/Link/SList.hpp> 00022 00023 // Load the member functions 00024 #include <j2k/DataType/Link/SLink.cpp> 00025 #include <j2k/DataType/Link/SList.cpp>