home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume6 / misc.patches1 / compress.mods < prev    next >
Encoding:
Text File  |  1986-11-30  |  1.1 KB  |  28 lines

  1.  
  2. From: seismo!elsie!ado
  3. Subject: Re: v06i023:  Xenix patches to compress4.0 (compress.xenix)
  4.  
  5. (Forgiveness, gentle moderator:  my mail to the original poster was bounced.)
  6.  
  7. + The XENIX_16 code for compress did not work.  The problem was:
  8. +    a) a problem with the large model code optimizer.
  9. +    b) the constant (1<<16) as assigned to maxcode evaluates
  10. +       to zero on a 16 bit machine!
  11. + After fixing problem b, I removed the XENIX_16 code and instead declared
  12. + the large arrays as 'huge'.
  13. + . . .
  14. + XX< #ifndef M_XENIX
  15. + XX< #  define huge        /* needed only for 16-bit machines */
  16. + XX< #endif
  17.  
  18. The Xenix 3.0 C compiler *does* predefine M_XENIX; it *does not* allow arrays
  19. to be declared "huge."  If sixteen-bit compress is to be run on Xenix 3.0
  20. systems, the existing "XENIX_16" code should be (fixed and) kept; if not,
  21. "M_XENIX" above should be changed to some symbol that's predefined only by
  22. compilers that support "huge" arrays.
  23. --
  24. Xenix is a Microsoft trademark, right?
  25. --
  26.     UUCP: ..decvax!seismo!elsie!ado        ARPA: elsie!ado@seismo.ARPA
  27.     DEC, VAX, Elsie & Ado are Digital, Borden & Shakespeare trademarks.
  28.