Lines Matching defs:handler

39   IoErrorHandler handler{terminator};
40 handler.HasIoStat(); // prevent nested crash if flush has error
43 defaultOutput->FlushOutput(handler);
46 errorOutput->FlushOutput(handler);
61 IoErrorHandler &handler) {
66 ExternalFileUnit *result{GetUnitMap().LookUpOrCreate(unit, handler, exists)};
74 action, Position::Rewind, Convert::Unknown, handler)) {
115 IoErrorHandler &handler) {
127 handler.SignalError("OPEN statement for connected unit may not have "
137 DoImpliedEndfile(handler);
138 FlushOutput(handler);
139 TruncateFrame(0, handler);
140 Close(CloseStatus::Keep, handler);
146 handler.SignalError(IostatOpenAlreadyConnected,
154 Open(status.value_or(OpenStatus::Unknown), action, position, handler);
155 if (handler.InError()) {
161 handler.SignalError(IostatOpenBadRecl,
165 handler.SignalError(IostatOpenBadRecl,
169 handler.SignalError(IostatOpenBadRecl,
200 Convert convert, IoErrorHandler &handler) {
203 auto path{SizedNew<char>{handler}(pathMaxLen)};
206 convert, handler);
210 void ExternalFileUnit::CloseUnit(CloseStatus status, IoErrorHandler &handler) {
211 DoImpliedEndfile(handler);
212 FlushOutput(handler);
213 Close(status, handler);
247 IoErrorHandler handler{terminator};
255 handler.SignalError(out.SetDirection(Direction::Output));
263 handler.SignalError(in.SetDirection(Direction::Input));
271 handler.SignalError(error.SetDirection(Direction::Output));
278 // A back-up atexit() handler for programs that don't terminate with a main
284 IoErrorHandler handler{"Fortran program termination"};
285 ExternalFileUnit::CloseAll(handler);
303 void ExternalFileUnit::CloseAll(IoErrorHandler &handler) {
306 unitMap->CloseAll(handler);
314 void ExternalFileUnit::FlushAll(IoErrorHandler &handler) {
317 unitMap->FlushAll(handler);
321 int ExternalFileUnit::GetAsynchronousId(IoErrorHandler &handler) {
323 handler.SignalError(IostatBadAsynchronous);
332 handler.SignalError(IostatTooManyAsyncOps);