comparison src/buffer.c @ 462:0784d089fdc9 r21-2-46

Import from CVS: tag r21-2-46
author cvs
date Mon, 13 Aug 2007 11:44:37 +0200
parents c33ae14dd6d0
children 54fa1a5c2d12
comparison
equal deleted inserted replaced
461:120ed4009e51 462:0784d089fdc9
1916 /* decoding_stream will gc-protect outstream */ 1916 /* decoding_stream will gc-protect outstream */
1917 GCPRO2 (instream, outstream); 1917 GCPRO2 (instream, outstream);
1918 1918
1919 while (1) 1919 while (1)
1920 { 1920 {
1921 ssize_t size_in_bytes; 1921 Lstream_data_count size_in_bytes;
1922 char tempbuf[1024]; /* some random amount */ 1922 char tempbuf[1024]; /* some random amount */
1923 1923
1924 size_in_bytes = Lstream_read (reader, tempbuf, sizeof (tempbuf)); 1924 size_in_bytes = Lstream_read (reader, tempbuf, sizeof (tempbuf));
1925 1925
1926 if (size_in_bytes == 0) 1926 if (size_in_bytes == 0)
2054 /* outstream will gc-protect its sink stream, if necessary */ 2054 /* outstream will gc-protect its sink stream, if necessary */
2055 GCPRO2 (instream, outstream); 2055 GCPRO2 (instream, outstream);
2056 2056
2057 while (1) 2057 while (1)
2058 { 2058 {
2059 ssize_t size_in_bytes; 2059 Lstream_data_count size_in_bytes;
2060 char tempbuf[1024]; /* some random amount */ 2060 char tempbuf[1024]; /* some random amount */
2061 2061
2062 size_in_bytes = Lstream_read (reader, tempbuf, sizeof (tempbuf)); 2062 size_in_bytes = Lstream_read (reader, tempbuf, sizeof (tempbuf));
2063 2063
2064 if (size_in_bytes == 0) 2064 if (size_in_bytes == 0)