src/parser/Parallel_File_Token_Stream.cc
void Parallel_File_Token_Stream::report(string const &message) {
  Require(check_class_invariants());

  Token token = lookahead();
  // The lookahead must be done on all processors to avoid a potential lockup
  // condition.
  if (rtt_c4::node() == 0) {
    cerr << token.location() << ": " << message << endl;
  }

  Ensure(check_class_invariants());
}
//------------------------------------------------------------------------------------------------//
/*!
 * This function sends a message by writing it to the error console stream.
 * Only processor 0 writes the message, to avoid many (possibly thousands) of
 * duplicate messages.
 *
 * This version assumes that the cursor is the message location.
 */
This function sends a message by writing it to the error console stream.
Only processor 0 writes the message, to avoid many (possibly thousands) of
duplicate messages.

This version assumes that the cursor is the message location.
This function sends a message by writing it to the error console stream . Only processor 0 writes the message to avoid many ( possibly thousands ) of duplicate messages . This version assumes that the cursor is the message location .
void Parallel_File_Token_Stream::report(string const &message) {
  Require(check_class_invariants());
  Token token = lookahead();
  if (rtt_c4::node() == 0) {
    cerr << token.location() << ": " << message << endl;
  }
  Ensure(check_class_invariants());
}
void Parallel_File_Token_Stream :: report ( string const & message ) { Require ( check_class_invariants ( ) ) ; Token token = lookahead ( ) ; if ( rtt_c4 :: node ( ) == 0 ) { cerr << token . location ( ) << " " << message << endl ; } Ensure ( check_class_invariants ( ) ) ; }
This function sends a message by writing it to the error console stream.
This function sends a message by writing it to the error console stream .
// The lookahead must be done on all processors to avoid a potential lockup // condition.