| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/3rdparty/masm/wtf/FilePrintStream.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | namespace WTF { | - | ||||||
| 3 | - | |||||||
| 4 | FilePrintStream::FilePrintStream(FILE* file, AdoptionMode adoptionMode) | - | ||||||
| 5 | : m_file(file) | - | ||||||
| 6 | , m_adoptionMode(adoptionMode) | - | ||||||
| 7 | { | - | ||||||
| 8 | } never executed: end of block | 0 | ||||||
| 9 | - | |||||||
| 10 | FilePrintStream::~FilePrintStream() | - | ||||||
| 11 | { | - | ||||||
| 12 | if (m_adoptionMode == Borrow
| 0 | ||||||
| 13 | return; never executed: return; | 0 | ||||||
| 14 | if (m_file
| 0 | ||||||
| 15 | fclose(m_file); never executed: fclose(m_file); | 0 | ||||||
| 16 | } never executed: end of block | 0 | ||||||
| 17 | - | |||||||
| 18 | PassOwnPtr<FilePrintStream> FilePrintStream::open(const char* filename, const char* mode) | - | ||||||
| 19 | { | - | ||||||
| 20 | FILE* file = fopen(filename, mode); | - | ||||||
| 21 | if (!file
| 0 | ||||||
| 22 | return never executed: PassOwnPtr<FilePrintStream>();return PassOwnPtr<FilePrintStream>();never executed: return PassOwnPtr<FilePrintStream>(); | 0 | ||||||
| 23 | - | |||||||
| 24 | return never executed: adoptPtr(new FilePrintStream(file));return adoptPtr(new FilePrintStream(file));never executed: return adoptPtr(new FilePrintStream(file)); | 0 | ||||||
| 25 | } | - | ||||||
| 26 | - | |||||||
| 27 | void FilePrintStream::vprintf(const char* format, va_list argList) | - | ||||||
| 28 | { | - | ||||||
| 29 | vfprintf(m_file, format, argList); | - | ||||||
| 30 | } never executed: end of block | 0 | ||||||
| 31 | - | |||||||
| 32 | void FilePrintStream::flush() | - | ||||||
| 33 | { | - | ||||||
| 34 | fflush(m_file); | - | ||||||
| 35 | } never executed: end of block | 0 | ||||||
| 36 | - | |||||||
| 37 | } | - | ||||||
| Switch to Source code | Preprocessed file |