dis_sql/src/sql_iff.cxx
//
// iff_error_standard - Actual output of error message
// (emacs clickable version)
//
Actual output of error message
(emacs clickable version)
Actual output of error message ( emacs clickable version )
static int iff_error_standard (
	FILE *fp,
	unsigned int lineno,
	unsigned int column,
	const char * fname,
	const char * text,
	const char * msg)
{
   int ret_val = 0;
   if (fname && *fname) {
      ret_val = fprintf (fp, "\"%s\", ", fname);
   }
   if ((ret_val >= 0) && (lineno > 0)) {
      ret_val = fprintf (fp, "line %d: ", lineno);
   }
   if ((ret_val >= 0) && (lineno > 0) && (column > 0)) {
      ret_val = fprintf (fp, "column %d: ", column);
   }
   if ((ret_val >= 0) && text && *text) {
      ret_val = fprintf (fp, "%s: ", text);
   }
   if (ret_val >= 0) {
      ret_val = fprintf (fp, "%s\n", msg);
   }
   if (ret_val < 0) {
      ret_val = iff_io_error ();
   } else {
      fflush (fp);
   }
   return (ret_val);
}
static int iff_error_standard ( FILE * fp , unsigned int lineno , unsigned int column , const char * fname , const char * text , const char * msg ) { int ret_val = 0 ; if ( fname && * fname ) { ret_val = fprintf ( fp , " \" \" " , fname ) ; } if ( ( ret_val >= 0 ) && ( lineno > 0 ) ) { ret_val = fprintf ( fp , " " , lineno ) ; } if ( ( ret_val >= 0 ) && ( lineno > 0 ) && ( column > 0 ) ) { ret_val = fprintf ( fp , " " , column ) ; } if ( ( ret_val >= 0 ) && text && * text ) { ret_val = fprintf ( fp , " " , text ) ; } if ( ret_val >= 0 ) { ret_val = fprintf ( fp , " \n " , msg ) ; } if ( ret_val < 0 ) { ret_val = iff_io_error ( ) ; } else { fflush ( fp ) ; } return ( ret_val ) ; }
iff_error_standard - Actual output of error message
(emacs clickable version)
iff_error_standard - Actual output of error message ( emacs clickable version )
// start to output error // line and column // optional token text