home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / ZOO20OS2.ZIP / PATCHES.OS2 < prev    next >
Text File  |  1991-03-01  |  3KB  |  95 lines

  1. I (Kai Uwe Rommel) got some OS/2 patches to ZOO from someone on the
  2. net who did not sign them with his name and unfortunately, lost also
  3. his mail address ....
  4. I further enhanced the port (speed !). Here are the original comments:
  5.  
  6. ---------------------
  7.  
  8. Hi,
  9.  
  10. Here are my os/2 patches to zoo and stuff as I send them to Rahul Dhesi,
  11. they are:
  12.  
  13. Note-stuff              what I did to stuff
  14. Note-zoo                what I did to zoo
  15. P-stuff                 stuff pathches
  16. P-zoo                   zoo patches
  17. P-options.h.port        fix for options.h
  18.  
  19. The patches should be applied to the 2.01 msdos version of zoo,
  20. and the options.h fix after P-zoo.
  21.  
  22. It is almost a year ago that I send this to Rahul, so maybe it is saver
  23. to ask him an upgrade to os/2 as in these patches are not my 'maxlimit'
  24. changes which I did later (the '#=' options of zoox).
  25.  
  26. But in any case I think these patches should work, If you have
  27. any questions, let me know.
  28.  
  29.  
  30. On os/2 the call to kbhit in doarg.c is omitted, was this call
  31. nessecary ? If yes, why?
  32.  
  33. The rather ugly cast of *((unsigned *)&... in the calls to
  34. mstounix are due to the fact that the time unsigned is now
  35. put in a structure with bit fields that build the same 16 bits
  36. as the old unsigned, so this "converts".
  37.  
  38. In givehelp.c I splitted the printf because msc 5.1 cannot handle
  39. big strings.
  40. Notes on the zoo/fiz port to OS/2
  41.  
  42. In various.h I made some changes for prototypes to incorporate
  43. the const and size_t changes in some functions in system headers.
  44. In options.h the void ptr.
  45.  
  46. In nextfile.c I made os2 version of nextfile() and fcbpath().
  47.  
  48. In msdos.c I made os2 version of the various file related functions.
  49.  
  50. In msc.c I changed set_break(), the function enables ^C and break
  51. during zoo, restoring the old value afterwards. I think it's very
  52. hard to allow ^C but not break.
  53.  
  54. In misc.c I removed a warning over the #endif COMMENT.
  55.  
  56. I could not use the *.asm files on OS/2 because they use the 'int'
  57. opcode which is not usable from user programs in OS/2.
  58. Therefore I used the protable c versions and I had to compile
  59. in large model or zoo runs out of memory during the first compression.
  60.  
  61. The port was rather quick & easy, due to the portable way the
  62. modules were set up, good practice but I think you already knew that.
  63.  
  64. ---------------
  65.  
  66. I have now added some changes:
  67.  
  68. I had to add
  69. #define NEEDCTYP
  70. #define MEMSET
  71. to options.h.
  72.  
  73. I could use the .asm files, their usage allows SMALL model to be used.
  74. The stack size should be 0x7000 bytes.
  75.  
  76. There was only one INT instruction in adbfcrc.asm which could be
  77. dropped immediately because it's function is not needed in OS/2. 
  78. In lz[cd].asm the int 21 for malloc had to be changed to DosAlloc().
  79.  
  80. The segment names had to be changed for case-sensitive link.
  81. Some external declarations had to be moved into _BSS for MS C 5.1.
  82.  
  83. This makes Zoo MUCH faster.
  84. The speedup is about factor 2.3 !
  85.  
  86. Kai Uwe Rommel
  87.  
  88.  
  89. I have now made ZOO compatible to the HPFS. This required some changes
  90. to options.h (FOLD and FNLIMIT symbols), nextfile.c (nextfile() function) 
  91. and msc.c (fixfname() function). Added isvalid.c for OS/2 version.
  92.  
  93. Kai Uwe Rommel
  94. rommel@lan.informatik.tu-muenchen.dbp.de
  95.