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
1004 B

  1. /*
  2. * decoder.h
  3. *
  4. * Main decoder header file
  5. */
  6. #ifndef DECODER_H
  7. #define DECODER_H
  8. #ifdef EXT
  9. # undef EXT
  10. #endif
  11. #ifdef ALLOC_VARS
  12. # define EXT
  13. #else
  14. # define EXT extern
  15. #endif
  16. #ifdef USE_ASSEMBLY
  17. # define ASM_DECODE_VERBATIM_BLOCK
  18. # define ASM_TRANSLATE_E8
  19. # define ASM_MAKE_TABLE
  20. #endif
  21. #ifndef UNALIGNED
  22. #ifndef NEEDS_ALIGNMENT
  23. #define UNALIGNED
  24. #else
  25. #define UNALIGNED __unaligned
  26. #endif
  27. #endif
  28. #include <stdlib.h>
  29. #include <string.h>
  30. #include "../common/typedefs.h"
  31. #include "../common/compdefs.h"
  32. #include "decmacro.h"
  33. #include "decdefs.h"
  34. #include "decvars.h"
  35. #include "decapi.h"
  36. #include "decproto.h"
  37. #ifdef TRACING
  38. #include <stdio.h>
  39. void
  40. __stdcall
  41. TracingMatch(
  42. ulong BufPos,
  43. ulong MatchPos,
  44. ulong WindowSize,
  45. ulong MatchLength,
  46. ulong MatchPosSlot
  47. );
  48. void
  49. __stdcall
  50. TracingLiteral(
  51. ulong BufPos,
  52. ulong ch
  53. );
  54. #endif // TRACING
  55. #endif /* DECODER_H */