error.c File Reference


Functions

char * basename (const char *)
static void error (int exit_status, const char *mode, const char *message)
void pocc_set_program_name (const char *path)
void pocc_warning (const char *message)
void pocc_error (const char *message)
void pocc_fatal (const char *message)

Variables

static const char * program_name = NULL

Function Documentation

char* basename ( const char *   ) 

Referenced by pocc_set_program_name().

static void error ( int  exit_status,
const char *  mode,
const char *  message 
) [static]

References program_name.

Referenced by pocc_error(), pocc_fatal(), and pocc_warning().

void pocc_set_program_name ( const char *  path  ) 

References basename(), program_name, and xstrdup().

void pocc_warning ( const char *  message  ) 

References error().

void pocc_error ( const char *  message  ) 

void pocc_fatal ( const char *  message  ) 

References error(), and EXIT_FAILURE.

Referenced by xmalloc(), and xrealloc().


Variable Documentation

const char* program_name = NULL [static]

Referenced by error(), and pocc_set_program_name().


Generated on Mon Jul 18 03:11:41 2011 for PoCC by  doxygen 1.5.6