Lines Matching defs:mode
31 #define SET_STDOUT_MODE(mode) _setmode(_fileno(stdout), mode);
37 #define SET_STDOUT_MODE(mode)
128 // Opens |filename| in the given mode. If |filename| is nullptr, the empty
129 // string or "-", stdout will be set to the given mode.
130 OutputFile(const char* filename, const char* mode) : old_mode_(0) {
134 if (strchr(mode, 'b')) {
141 fp_ = fopen(filename, mode);
164 // |mode|, assuming |data| is an array of |count| elements of type |T|. If
168 bool WriteFile(const char* filename, const char* mode, const T* data,
170 OutputFile file(filename, mode);