Source code of Windows XP (NT5)
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.

26 lines
1.0 KiB

  1. /*
  2. * offsets.c
  3. *
  4. * Used by makefile to generate ASM include file OFFSET.I
  5. * which contains numbers for offsets into the context structure.
  6. */
  7. #include "encoder.h"
  8. #include <stdio.h>
  9. t_encoder_context p;
  10. void main(void)
  11. {
  12. printf("OFF_MEM_WINDOW EQU %d\n", (byte *) &p.enc_MemWindow - (byte *) &p);
  13. printf("OFF_WINDOW_SIZE EQU %d\n", (byte *) &p.enc_window_size - (byte *) &p);
  14. #ifdef MULTIPLE_SEARCH_TREES
  15. printf("OFF_TREE_ROOT EQU %d\n", (byte *) &p.enc_tree_root - (byte *) &p);
  16. #else
  17. printf("OFF_SINGLE_TREE_ROOT EQU %d\n", (byte *) &p.enc_single_tree_root - (byte *) &p);
  18. #endif
  19. printf("OFF_LEFT EQU %d\n", (byte *) &p.enc_Left - (byte *) &p);
  20. printf("OFF_RIGHT EQU %d\n", (byte *) &p.enc_Right - (byte *) &p);
  21. printf("OFF_MATCHPOS_TABLE EQU %d\n", (byte *) &p.enc_matchpos_table - (byte *) &p);
  22. printf("OFF_LAST_MATCHPOS_OFFSET EQU %d\n", (byte *) &p.enc_last_matchpos_offset - (byte *) &p);
  23. exit(0);
  24. }