home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / graphics / tiff / unix / archive.z / archive / text0004.txt < prev    next >
Encoding:
Text File  |  1995-09-20  |  2.4 KB  |  55 lines

  1.  
  2. Dear Sam,
  3.  
  4. I am trying to convert the TIFF library to late Commodore-Amiga's native
  5. operating system. Here is a list of things the SAS/C 6.50 compiler was
  6. unhappy about. I admit that these are mostly cosmetic changes, but I would
  7. appreciate if I could just compile the sources without any warnings.
  8.  
  9. mkg3states.c 580: expression returned from find_null_mode_prefix()
  10.                   should be cast to short.
  11. mkg3states.c 605: expression returned from find_horiz_mode_prefix()
  12.                   should be cast to short.
  13. mkg3states.c 626: expression returned from find_uncomp_mode_prefix()
  14.                   should be cast to short.
  15. mkg3states.c 677: expression returned from uncomp_mode_type()
  16.                   should be cast to short.
  17.  
  18. tif_fax3.c 312, 321: fillspan() stores 0xff into chars which is out of
  19.                       range for signed 8-bit chars.
  20.  
  21. tif_getimage.c, tiff_lzw.c: tons of warnings about macro invocations that may
  22.                             have multiple side effects.
  23.  
  24. tif_open.c 285: expression returned from TIFFScanlineSize() evaluates to
  25.                 unsigned long and should be cast to tsize_t (which is
  26.                 deliberately made signed according to the comments).
  27.  
  28. tif_strip.c 101, 104: expressions returned from TIFFVStripSize() evaluate
  29.                       to unsigned long and should be cast to tsize_t.
  30.  
  31. tif_tile.c 143, 180: some expressions returned from TIFFTileRowSize() and
  32.                      TIFFVTileSize() evaluate to unsigned long and should
  33.                      be cast to tsize_t.
  34.  
  35. tif_unix.c 58: moving the include for <sys/stat.h> to the top of the file
  36.                could unobtrusively fix a broken <sys/types.h> that does not
  37.                define off_t.
  38.  
  39. I have noticed a lot of elaborate code in tif_atari.c handling lseeks past
  40. the current end-of-file. I'd like to know under what circumstances libtiff
  41. extends a file in this way because the Amiga I/O system does not allow this
  42. either. Are the library routines prepared to handle an error return from
  43. _tiffSeekProc() in this case? I remember the F2C run-time library failing at
  44. this point :).
  45.  
  46. Yours,
  47.       Harald Fricke
  48.  
  49. --
  50. Harald Fricke   FRICKE@DHVMHH1.BITNET    * "I met someone who looks a lot like
  51. Working but not officially speaking for: *  you, she does the things you do,
  52. Medizinische Hochschule Hannover         *  but she is an IBM"
  53. D-30623 Hannover, Germany                *  E.L.O.  _Yours_Truly,2095_
  54.  
  55.