dis_sql/src/sql_iff.cxx
//
// iff_error_log - Handle output of error messages
//
//
// Called by above external routinues.  Increments error count.
// Adds input filename.  Sends message to both standard error
// and error log.
Handle output of error messages
Called by above external routinues.  Increments error count.
Adds input filename.  Sends message to both standard error
and error log.
Handle output of error messages Called by above external routinues . Increments error count . Adds input filename . Sends message to both standard error and error log .
static int iff_error_log (
	unsigned int lineno,
	unsigned int column,
	const char * text,
	const char * msg)
{
   int ret_val = 0;
   const char * fname;
   sql_errcount++;
   if ((column == 0) && (lineno > 1)) {
      --lineno;
   }
   ret_val = iff_error_standard (stderr, lineno, column,
				 sql_infilename, text, msg);
   if (iff_fp) {
      fname = sql_infilename;
      if (! symbol_specification_phase ) {
	 fname = 0;
      }
      ret_val = iff_error_output (iff_fp, lineno, column, fname, text, msg);
   }
   return (ret_val);
}
static int iff_error_log ( unsigned int lineno , unsigned int column , const char * text , const char * msg ) { int ret_val = 0 ; const char * fname ; sql_errcount ++ ; if ( ( column == 0 ) && ( lineno > 1 ) ) { -- lineno ; } ret_val = iff_error_standard ( stderr , lineno , column , sql_infilename , text , msg ) ; if ( iff_fp ) { fname = sql_infilename ; if ( ! symbol_specification_phase ) { fname = 0 ; } ret_val = iff_error_output ( iff_fp , lineno , column , fname , text , msg ) ; } return ( ret_val ) ; }
iff_error_log - Handle output of error messages
Called by above external routinues.
iff_error_log - Handle output of error messages Called by above external routinues .
// increment global error count // correct line number if at EOL // Output error to stderr // same message to if file // produce a cleaner error log by not printing main source filename