~ubuntu-branches/ubuntu/jaunty/plotutils/jaunty

« back to all changes in this revision

Viewing changes to libplot/n_write.c

  • Committer: Bazaar Package Importer
  • Author(s): Floris Bruynooghe
  • Date: 2006-06-10 22:30:09 UTC
  • mfrom: (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060610223009-lfgb9ceyzjykj3z1
Tags: 2.4.1-15
* 14_manpage_spline.dpatch: correct long option of -n (Closes: #247208).
* debian/control: changed maintainer email address, old will expire soon.
* Changed libpng12-0-dev (virtual) to libpng12-dev (real) in Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
                  linebuf[pos++] = '0';
209
209
                if (pos >= MAX_PBM_PIXELS_PER_LINE || i == (width - 1))
210
210
                  {
211
 
                    stream->write ((char*)linebuf, pos);
 
211
                    stream->write (linebuf, pos);
212
212
                    stream->put ('\n');
213
213
 
214
214
                    pos = 0;
253
253
                  rowbuf[bytecount++] = outbyte;
254
254
                }
255
255
              /* emit row of bytes */
256
 
              stream->write ((char*)rowbuf, bytecount);
 
256
              stream->write (rowbuf, bytecount);
257
257
            }
258
258
 
259
259
          free (rowbuf);
366
366
                num_pixels++;
367
367
                if (num_pixels >= MAX_PGM_PIXELS_PER_LINE || i == (width - 1))
368
368
                  {
369
 
                    stream->write ((char*)linebuf, pos);
 
369
                    stream->write (linebuf, pos);
370
370
                    stream->put ('\n');
371
371
 
372
372
                    num_pixels = 0;
392
392
            {
393
393
              for (i = 0; i < width; i++)
394
394
                rowbuf[i] = pixmap[j][i].u.rgb[0];
395
 
              stream->write ((char*)rowbuf, width);
 
395
              stream->write (rowbuf, width);
396
396
            }
397
397
          free (rowbuf);
398
398
        }
514
514
                num_pixels++;
515
515
                if (num_pixels >= MAX_PPM_PIXELS_PER_LINE || i == (width - 1))
516
516
                  {
517
 
                    stream->write ((char*)linebuf, pos);
 
517
                    stream->write (linebuf, pos);
518
518
                    stream->put ('\n');
519
519
 
520
520
                    num_pixels = 0;
542
542
              for (i = 0; i < width; i++)
543
543
                for (component = 0; component < 3; component++)
544
544
                  rowbuf[3 * i + component] = pixmap[j][i].u.rgb[component];
545
 
              stream->write ((char*)rowbuf, 3 * width);
 
545
              stream->write (rowbuf, 3 * width);
546
546
            }
547
547
          free (rowbuf);
548
548
        }