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.

68 lines
1.9 KiB

  1. /* File: C:\WACKER\xfer\cmprs.hh (Created: 20-Jan-1994)
  2. * created from HAWIN sources
  3. * cmprs.hh -- Internal definitions for compression routines
  4. *
  5. * Copyright 1989,1994 by Hilgraeve Inc. -- Monroe, MI
  6. * All rights reserved
  7. *
  8. * $Revision: 1 $
  9. * $Date: 10/05/98 1:16p $
  10. */
  11. // Set to 1 or 0 to enable/disable descriptive output
  12. // #define SHOW 0
  13. // Set to 1 or 0 to enable/disable use of assembly language module
  14. #define USE_ASM 0
  15. #define MAXNODES 4096 /* number of nodes in lookup tables */
  16. #define MAXCODEBITS 12 /* largest code size in bits */
  17. #define CLEARCODE 256 /* special code from compressor to decompressor to
  18. signal it to clear the table and start anew */
  19. #define STOPCODE 257 /* special code from compressor to decompressor to
  20. signal it that following data will
  21. not be compressed */
  22. #define FIRSTFREE 258 /* first code available to code pattern */
  23. /* These variables are shared by the compression and decompression routines */
  24. extern void *compress_tblspace;
  25. struct s_cmprs_node
  26. {
  27. struct s_cmprs_node *first;
  28. struct s_cmprs_node *next;
  29. BYTE cchar;
  30. };
  31. extern unsigned long ulHoldReg;
  32. extern int sBitsLeft;
  33. extern int sCodeBits;
  34. extern unsigned int usMaxCode;
  35. extern unsigned int usFreeCode;
  36. extern unsigned int usxCmprsStatus;
  37. extern int fxLastBuildGood;
  38. extern int fFlushable; // True if compression stream can
  39. /* function prototypes: */
  40. /* from cmprs1.c */
  41. extern void cmprs_inittbl(void);
  42. extern int cmprs_shutdown(void *);
  43. /* from cmpgetc.asm */
  44. extern int cmprs_getc(void *);
  45. /* from cmprs2.c */
  46. extern int dcmp_abort(void);
  47. extern int dcmp_start(void *pX, int c);
  48. extern int dcmp_putc(void *pX, int c);
  49. /* from dcmplook.asm */
  50. extern int dcmp_lookup(unsigned int code);
  51. extern void dcmp_inittbl(void);
  52. /* end of cmprs.hh */