home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip532.zip / amiga / mkGoff.c < prev    next >
C/C++ Source or Header  |  1997-04-13  |  1KB  |  35 lines

  1. /* Write out a fragment of assembly source giving offsets in globals.h: */
  2.  
  3. #define UNZIP_INTERNAL
  4. #include "unzip.h"
  5. #include "crypt.h"
  6. #include <stdio.h>
  7.  
  8. /* Keep this in sync with the definition of redirSlide in unzpriv.h: */
  9. #ifdef DLL
  10. #  define pG_redirSlide pG->redirect_pointer
  11. #else
  12. #  define pG_redirSlide pG->area.Slide
  13. #endif
  14.  
  15. void main(void)
  16. {
  17.     struct Globals *pG = (void *) 0L;
  18.  
  19.     printf("bb              EQU     %lu\n", &pG->bb);
  20.     printf("bk              EQU     %lu\n", &pG->bk);
  21.     printf("wp              EQU     %lu\n", &pG->wp);
  22. #ifdef FUNZIP
  23.     printf("in              EQU     %lu\n", &pG->in);
  24. #else
  25.     printf("incnt           EQU     %lu\n", &pG->incnt);
  26.     printf("inptr           EQU     %lu\n", &pG->inptr);
  27.     printf("csize           EQU     %lu\n", &pG->csize);
  28.     printf("mem_mode        EQU     %lu\n", &pG->mem_mode);
  29. #endif
  30.     printf("slide           EQU     %lu\n", &pG_redirSlide);
  31.     printf("SIZEOF_slide    EQU     %lu\n", sizeof(pG_redirSlide));
  32.     printf("CRYPT           EQU     %d\n", CRYPT);
  33.     exit(0);
  34. }
  35.