Received: by whizzer.wpd.sgi.com (921026.SGI.NOSTRIP/911001.SGI)
	 id AA12379; Mon, 20 Sep 93 22:38:49 GMT
Received: from sgi.sgi.com by whizzer.wpd.sgi.com via SMTP (921026.SGI.NOSTRIP/911001.SGI)
	for /usr/people/sam/majordomo/wrapper resend -l tiff -h sgi.sgi.com -f tiff-owner -s -m "-oi -odq -om" tiff-list id AA12372; Mon, 20 Sep 93 15:38:43 -0700
Received: from guardian.apple.com by sgi.sgi.com via SMTP (920330.SGI/910110.SGI)
	for tiff-relay@whizzer.wpd.sgi.com id AA09792; Mon, 20 Sep 93 15:38:41 -0700
Received: from [90.1.0.8] by guardian.apple.com with SMTP (5.65/22-Jun-1993-eef)
	id AA06661; Mon, 20 Sep 93 15:19:29 -0700
	for 
Received: by alink-gw.apple.com (921113.SGI.UNSUPPORTED_PROTOTYPE/28-May-1993-eef)
	id AA05105; Mon, 20 Sep 93 15:18:39 -0700
	for TIFF@SGI.COM
Date: 20 Sep 93 22:02 GMT
From: LS.BANZAI@AppleLink.Apple.COM (Lightsource Computer Images,PRT)
Subject: Diffs for Microsoft Visua
To: TIFF@sgi.sgi.com
Message-Id: <748563519.7288364@AppleLink.Apple.COM>
Sender: tiff-owner@sgi.sgi.com

Attn: Tiff Bugs
SentBy: Eric Herrmann
 
 Diffs for Microsoft Visual C++
 9/20/93                                         2:43 PM
Sam,
 
The Microsoft Visual C++ 1.0 compiler (Windows 3.1) is highly pedantic and
requires a few more casts. Here are the diffs for the files. I apologize for
the formatting but I don't have unix, I just have MKS. Fortunately there
aren't many changes.
 
This is for 3.30beta.
 
Affected files:
 tif_dir.c
 tif_dirread.c
 tif_dirwrite.c
 tif_read.c
 tif_write.c
 
Eric Herrmann
Light Source
LS.BANZAI@AppleLink.Apple.com
 
--------------- tif_dir.c
44c44
<      if (*cpp = _TIFFmalloc(len))
---
>      if (*cpp = (char *)_TIFFmalloc(len))
--------------- tif_dirread.c
66c66
<  char *cp = _TIFFmalloc(n);
---
>  char *cp = (char *)_TIFFmalloc(n);
--------------- tif_dirwrite.c
137c137
<  data = _TIFFmalloc(dirsize);
---
>  data = (char *)_TIFFmalloc(dirsize);
785c785
<  (void) TIFFSeekFile(tif, -sizeof (nextdir), L_INCR);
---
>  (void) TIFFSeekFile(tif, -(long)sizeof (nextdir), L_INCR);
--------------- tif_read.c
111c111
<          (tif, buf, tif->tif_scanlinesize, sample);
---
>          (tif, (tidata_t) buf, tif->tif_scanlinesize, sample);
114c114
<          (*tif->tif_postdecode)(tif, buf, tif->tif_scanlinesize);
---
>          (*tif->tif_postdecode)(tif, (tidata_t) buf, tif->tif_scanlinesize);
150,151c150,151
<     (*tif->tif_decodestrip)(tif, buf, size, strip / td->td_stripsperimage))
{
<      (*tif->tif_postdecode)(tif, buf, size);
---
>     (*tif->tif_decodestrip)(tif, (tidata_t)buf, size, strip /
td->td_stripsperimage)) {
>      (*tif->tif_postdecode)(tif, (tidata_t)buf, size);
323,324c323,324
<      (*tif->tif_decodetile)(tif, buf, size, tile/td->td_stripsperimage)) {
<      (*tif->tif_postdecode)(tif, buf, size);
---
>      (*tif->tif_decodetile)(tif, (tidata_t)buf, size,
tile/td->td_stripsperimage)) {
>      (*tif->tif_postdecode)(tif, (tidata_t)buf, size);
480c480
<      tif->tif_rawdata = (tdata_t) _TIFFmalloc(tif->tif_rawdatasize);
---
>      tif->tif_rawdata = (tidata_t) _TIFFmalloc(tif->tif_rawdatasize);
--------------- tif_write.c
154c154
<  status = (*tif->tif_encoderow)(tif, buf, tif->tif_scanlinesize, sample);
---
>  status = (*tif->tif_encoderow)(tif, (tidata_t)buf, tif->tif_scanlinesize,
sample);
196c196
<      data, cc, strip / td->td_stripsperimage))
---
>      (tidata_t)data, cc, strip / td->td_stripsperimage))
233c233
<  return (TIFFAppendToStrip(tif, strip, data, cc) ? cc : (tsize_t) -1);
---
>  return (TIFFAppendToStrip(tif, strip, (tidata_t)data, cc) ? cc : (tsize_t)
-1);
312c312
<  if (!(*tif->tif_encodetile)(tif, data, cc, tile/td->td_stripsperimage))
---
>  if (!(*tif->tif_encodetile)(tif, (tidata_t)data, cc,
tile/td->td_stripsperimage))
349c349
<  return (TIFFAppendToStrip(tif, tile, data, cc) ? cc : (tsize_t) -1);
---
>  return (TIFFAppendToStrip(tif, tile, (tidata_t)data, cc) ? cc : (tsize_t)
-1);
458c458
<  tif->tif_rawdata = _TIFFmalloc(size);
---
>  tif->tif_rawdata = (tidata_t)_TIFFmalloc(size);
 
 



