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

  1. Here's a small patch to avoid the following error message from the SunPro C
  2. compiler:
  3.  
  4. acc  -I.    -c tif_lzw.c -o tif_lzw.o
  5. "tif_lzw.c", line 225: warning: macro replacement within a string literal
  6.  
  7. I've simply capitalized the "code" within the string literal, so it doesn't
  8. match the formal macro argument.
  9.  
  10. glenn@luna % diff -c tif_lzw.c_orig tif_lzw.c
  11. *** tif_lzw.c_orig    Thu Sep 29 17:01:38 1994
  12. --- tif_lzw.c    Fri Dec 16 02:41:22 1994
  13. ***************
  14. *** 225,231 ****
  15.   #define    NextCode(tif, sp, bp, code, get) {                \
  16.       if ((sp)->dec_bitsleft < nbits) {                \
  17.           TIFFWarning(tif->tif_name,                \
  18. !             "LZWDecode: Strip %d not terminated with EOI code", \
  19.               tif->tif_curstrip);                    \
  20.           code = CODE_EOI;                    \
  21.       } else {                            \
  22. --- 225,231 ----
  23.   #define    NextCode(tif, sp, bp, code, get) {                \
  24.       if ((sp)->dec_bitsleft < nbits) {                \
  25.           TIFFWarning(tif->tif_name,                \
  26. !             "LZWDecode: Strip %d not terminated with EOI Code", \
  27.               tif->tif_curstrip);                    \
  28.           code = CODE_EOI;                    \
  29.       } else {                            \
  30.  
  31. Glenn Herteg
  32. IA Corporation
  33. glenn@lia.com
  34.  
  35.  
  36.