sxerr_mngr.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include <stdarg.h>
Include dependency graph for sxerr_mngr.c:

Go to the source code of this file.

Defines

#define blanks_len   (sizeof (blanks) - 1)

Functions

static charsxdelete_suffix (char *NAME)
static charsxmake_special_string_and_severity (SXINT *severity, char *format, va_list ap)
static SXBOOLEAN find_line (FILE *infile, SXUINT line_no)
static SXBOOLEAN compute_lines (FILE *infile, struct sxsource_coord source_index)
static SXBOOLEAN output_marker (void)
static SXBOOLEAN find_source (struct sxsource_coord source_index)
static SXVOID keep_message (struct sxsource_coord source_index, SXINT severity)
SXVOID sxput_error (struct sxsource_coord source_index, char *format,...)
SXVOID sxerror (struct sxsource_coord source_index, SXINT severity, char *format,...)
SXVOID sxhmsg (char *file_name, char *format,...)
SXVOID sxtmsg (char *file_name, char *format,...)
static SXBOOLEAN errlessp (SXINT i1, SXINT i2)
SXVOID sxerrsort (void)
SXVOID sxerr_mngr (SXINT sxerr_mngr_what,...)

Variables

char WHAT_SXERR_MNGR [] = "@(#)SYNTAX - $Id: sxerr_mngr.c 1724 2009-05-14 12:36:56Z garavel $" WHAT_DEBUG

Define Documentation

#define blanks_len   (sizeof (blanks) - 1)

Referenced by compute_lines().


Function Documentation

static SXBOOLEAN compute_lines ( FILE *  infile,
struct sxsource_coord  source_index 
) [static]

Definition at line 314 of file sxerr_mngr.c.

References blanks_len, find_line(), SXCHAR_TO_STRING, SXFALSE, sxtrap(), and SXTRUE.

Referenced by find_source().

static SXBOOLEAN errlessp ( SXINT  i1,
SXINT  i2 
) [static]

Definition at line 705 of file sxerr_mngr.c.

Referenced by sxerrsort().

static SXBOOLEAN find_line ( FILE *  infile,
SXUINT  line_no 
) [static]

Definition at line 286 of file sxerr_mngr.c.

References SXFALSE, and SXTRUE.

Referenced by compute_lines().

static SXBOOLEAN find_source ( struct sxsource_coord  source_index  )  [static]

Definition at line 438 of file sxerr_mngr.c.

References compute_lines(), SXBOOLEAN, SXFALSE, sxfopen(), and SXTRUE.

Referenced by sxerror(), and sxput_error().

static SXVOID keep_message ( struct sxsource_coord  source_index,
SXINT  severity 
) [static]

Definition at line 476 of file sxerr_mngr.c.

References sxstrsave().

Referenced by sxerror(), sxhmsg(), sxput_error(), and sxtmsg().

static SXBOOLEAN output_marker ( void   )  [static]

Definition at line 413 of file sxerr_mngr.c.

References SXFALSE, sxstderr, and SXTRUE.

Referenced by sxerror(), and sxput_error().

static char* sxdelete_suffix ( char NAME  )  [static]

Definition at line 35 of file sxerr_mngr.c.

Referenced by sxerror(), and sxput_error().

SXVOID sxerr_mngr ( SXINT  sxerr_mngr_what,
  ... 
)
SXVOID sxerror ( struct sxsource_coord  source_index,
SXINT  severity,
char format,
  ... 
)
SXVOID sxerrsort ( void   ) 

Definition at line 729 of file sxerr_mngr.c.

References errlessp(), sort_by_tree(), and sorted.

Referenced by sxlisting_output().

SXVOID sxhmsg ( char file_name,
char format,
  ... 
)

Definition at line 633 of file sxerr_mngr.c.

References keep_message(), and sxstderr.

Referenced by arg_nb_put_error(), and sxppopen().

static char* sxmake_special_string_and_severity ( SXINT *  severity,
char format,
va_list  ap 
) [static]

Definition at line 60 of file sxerr_mngr.c.

Referenced by sxput_error().

SXVOID sxput_error ( struct sxsource_coord  source_index,
char format,
  ... 
)
SXVOID sxtmsg ( char file_name,
char format,
  ... 
)

Definition at line 669 of file sxerr_mngr.c.

References keep_message(), and sxstderr.

Referenced by make_proper_semact(), re_smp(), and t_set2basic_item_set().


Variable Documentation

char WHAT_SXERR_MNGR[] = "@(#)SYNTAX - $Id: sxerr_mngr.c 1724 2009-05-14 12:36:56Z garavel $" WHAT_DEBUG

Definition at line 33 of file sxerr_mngr.c.


Generated on Wed Apr 21 16:39:37 2010 for syntax-6.0b7 by  doxygen 1.6.1