Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
639 B

  1. /*
  2. * common.h
  3. *
  4. * Definitions common to inflate and deflate
  5. */
  6. #include "types.h"
  7. #define NUM_CHARS 256
  8. #define MIN_MATCH 3
  9. #define MAX_MATCH 258
  10. // window size
  11. #define WINDOW_SIZE 32768
  12. #define WINDOW_MASK 32767
  13. // ZIP block types
  14. #define BLOCKTYPE_UNCOMPRESSED 0
  15. #define BLOCKTYPE_FIXED 1
  16. #define BLOCKTYPE_DYNAMIC 2
  17. // it's 288 and not 286 because we of the two extra codes which can appear
  18. // in a static block; same for 32 vs 30 for distances
  19. #define MAX_LITERAL_TREE_ELEMENTS 288
  20. #define MAX_DIST_TREE_ELEMENTS 32
  21. #define END_OF_BLOCK_CODE 256
  22. #define NUM_PRETREE_ELEMENTS 19