Mercurial > octave
comparison libinterp/corefcn/zfstream.cc @ 20946:6eff66fb8a02
style fixes for comments
* find-dialog.cc, find-dialog.h, display.cc, error.cc, gl-render.cc,
graphics.cc, graphics.in.h, max.cc, oct-handle.h, oct-obj.h,
oct-stream.cc, oct.h, pr-output.cc, profiler.cc, str2double.cc,
symtab.cc, toplev.cc, toplev.h, xgl2ps.c, zfstream.cc, zfstream.h,
__glpk__.cc, audiodevinfo.cc, colamd.cc, symbfact.cc, ov-classdef.cc,
ov-classdef.h, ov-java.cc, op-int.h, pt-pr-code.cc, pt-walk.h:
Use C++-style comments where possible.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 18 Dec 2015 22:39:36 -0500 |
parents | 9d9270e2f98f |
children | 77f5591878bf |
comparison
equal
deleted
inserted
replaced
20945:9d9270e2f98f | 20946:6eff66fb8a02 |
---|---|
48 | 48 |
49 // Internal buffer sizes (default and "unbuffered" versions) | 49 // Internal buffer sizes (default and "unbuffered" versions) |
50 #define STASHED_CHARACTERS 16 | 50 #define STASHED_CHARACTERS 16 |
51 #define BIGBUFSIZE (256 * 1024 + STASHED_CHARACTERS) | 51 #define BIGBUFSIZE (256 * 1024 + STASHED_CHARACTERS) |
52 #define SMALLBUFSIZE 1 | 52 #define SMALLBUFSIZE 1 |
53 | |
54 /*****************************************************************************/ | |
55 | 53 |
56 // Default constructor | 54 // Default constructor |
57 gzfilebuf::gzfilebuf () | 55 gzfilebuf::gzfilebuf () |
58 : file(0), io_mode(std::ios_base::openmode(0)), own_fd(false), | 56 : file(0), io_mode(std::ios_base::openmode(0)), own_fd(false), |
59 buffer(0), buffer_size(BIGBUFSIZE), own_buffer(true) | 57 buffer(0), buffer_size(BIGBUFSIZE), own_buffer(true) |
515 } | 513 } |
516 | 514 |
517 return ret; | 515 return ret; |
518 } | 516 } |
519 | 517 |
520 /*****************************************************************************/ | |
521 | |
522 // Default constructor initializes stream buffer | 518 // Default constructor initializes stream buffer |
523 gzifstream::gzifstream () | 519 gzifstream::gzifstream () |
524 : std::istream (0), sb () | 520 : std::istream (0), sb () |
525 { this->init (&sb); } | 521 { this->init (&sb); } |
526 | 522 |
566 { | 562 { |
567 if (! sb.close ()) | 563 if (! sb.close ()) |
568 this->setstate (std::ios_base::failbit); | 564 this->setstate (std::ios_base::failbit); |
569 } | 565 } |
570 | 566 |
571 /*****************************************************************************/ | |
572 | |
573 // Default constructor initializes stream buffer | 567 // Default constructor initializes stream buffer |
574 gzofstream::gzofstream () | 568 gzofstream::gzofstream () |
575 : std::ostream (0), sb () | 569 : std::ostream (0), sb () |
576 { this->init (&sb); } | 570 { this->init (&sb); } |
577 | 571 |