summaryrefslogtreecommitdiffstats
path: root/nsprpub/lib/prstreams/prstrms.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-01-04 21:06:45 +0000
committerGitHub <noreply@github.com>2020-01-04 21:06:45 +0000
commite30d68b699bb3dca89534727974a08d4b43b62f8 (patch)
tree131d45d45617de18fb3d632c0b6c50b64d14dafe /nsprpub/lib/prstreams/prstrms.h
parent26b297510a11758727438df4669357a2a2bc42ce (diff)
parentb1694ef0a1d5a1ba7c8f243ac19634ee2d7b3b8f (diff)
downloadUXP-e30d68b699bb3dca89534727974a08d4b43b62f8.tar
UXP-e30d68b699bb3dca89534727974a08d4b43b62f8.tar.gz
UXP-e30d68b699bb3dca89534727974a08d4b43b62f8.tar.lz
UXP-e30d68b699bb3dca89534727974a08d4b43b62f8.tar.xz
UXP-e30d68b699bb3dca89534727974a08d4b43b62f8.zip
Merge pull request #1341 from MoonchildProductions/nss-work
Update NSPR and NSS
Diffstat (limited to 'nsprpub/lib/prstreams/prstrms.h')
-rw-r--r--nsprpub/lib/prstreams/prstrms.h44
1 files changed, 29 insertions, 15 deletions
diff --git a/nsprpub/lib/prstreams/prstrms.h b/nsprpub/lib/prstreams/prstrms.h
index 319dbf9de..113a41627 100644
--- a/nsprpub/lib/prstreams/prstrms.h
+++ b/nsprpub/lib/prstreams/prstrms.h
@@ -34,24 +34,26 @@ public:
PRfilebuf(PRFileDesc *fd, char_type *ptr, std::streamsize len);
virtual ~PRfilebuf();
- bool is_open() const { return _fd != NULL; }
+ bool is_open() const {
+ return _fd != NULL;
+ }
PRfilebuf *open(
- const char *name,
- std::ios_base::openmode flags,
- PRIntn mode);
+ const char *name,
+ std::ios_base::openmode flags,
+ PRIntn mode);
PRfilebuf *attach(PRFileDesc *fd);
PRfilebuf *close();
protected:
virtual std::streambuf *setbuf(char_type *ptr, std::streamsize len);
virtual pos_type seekoff(
- off_type offset,
- std::ios_base::seekdir dir,
- std::ios_base::openmode flags);
+ off_type offset,
+ std::ios_base::seekdir dir,
+ std::ios_base::openmode flags);
virtual pos_type seekpos(
- pos_type pos,
- std::ios_base::openmode flags) {
+ pos_type pos,
+ std::ios_base::openmode flags) {
return seekoff(pos, std::ios_base::beg, flags);
}
virtual int sync();
@@ -83,8 +85,12 @@ public:
PRifstream(const char *name, openmode flags = in, PRIntn mode = 0);
virtual ~PRifstream();
- PRfilebuf *rdbuf() const { return &_filebuf; }
- bool is_open() const { return _filebuf.is_open(); }
+ PRfilebuf *rdbuf() const {
+ return &_filebuf;
+ }
+ bool is_open() const {
+ return _filebuf.is_open();
+ }
void open(const char *name, openmode flags = in, PRIntn mode = 0);
void attach(PRFileDesc *fd);
@@ -104,8 +110,12 @@ public:
PRofstream(const char *name, openmode flags = out, PRIntn mode = 0);
virtual ~PRofstream();
- PRfilebuf *rdbuf() const { return &_filebuf; }
- bool is_open() const { return _filebuf.is_open(); }
+ PRfilebuf *rdbuf() const {
+ return &_filebuf;
+ }
+ bool is_open() const {
+ return _filebuf.is_open();
+ }
void open(const char *name, openmode flags = out, PRIntn mode = 0);
void attach(PRFileDesc *fd);
@@ -125,8 +135,12 @@ public:
PRfstream(const char *name, openmode flags = in | out, PRIntn mode = 0);
virtual ~PRfstream();
- PRfilebuf *rdbuf() const { return &_filebuf; }
- bool is_open() const { return _filebuf.is_open(); }
+ PRfilebuf *rdbuf() const {
+ return &_filebuf;
+ }
+ bool is_open() const {
+ return _filebuf.is_open();
+ }
void open(const char *name, openmode flags = in | out, PRIntn mode = 0);
void attach(PRFileDesc *fd);