error.c File Reference

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <stdarg.h>
#include <sys/types.h>
#include <grass/glocale.h>
#include <grass/gis.h>

Include dependency graph for error.c:

Go to the source code of this file.

Defines

#define MSG   0
#define WARN   1
#define ERR   2

Functions

char * getenv ()
void G_message (char *msg,...)
 Print a message to stderr.
int G_fatal_error (char *msg,...)
int G_warning (char *msg,...)
int G_suppress_warnings (int flag)
int G_sleep_on_error (int flag)
int G_set_error_routine (int(*error_routine)())
int G_unset_error_routine ()
int G_info_format (void)


Define Documentation

#define ERR   2

Definition at line 60 of file error.c.

Referenced by G_fatal_error().

#define MSG   0

Definition at line 58 of file error.c.

Referenced by G_message().

#define WARN   1

Definition at line 59 of file error.c.

Referenced by G_warning().


Function Documentation

int G_fatal_error ( char *  msg,
  ... 
)

int G_info_format ( void   ) 

Definition at line 393 of file error.c.

References G_strcasecmp(), and getenv().

Referenced by G_percent2().

void G_message ( char *  msg,
  ... 
)

Print a message to stderr.

The output format depends on enviroment variable GRASS_MESSAGE_FORMAT

Definition at line 82 of file error.c.

References MSG.

Referenced by G_done_msg(), and G_dump().

int G_set_error_routine ( int(*)()  error_routine  ) 

Definition at line 143 of file error.c.

int G_sleep_on_error ( int  flag  ) 

Definition at line 134 of file error.c.

int G_suppress_warnings ( int  flag  ) 

Definition at line 125 of file error.c.

int G_unset_error_routine (  ) 

Definition at line 149 of file error.c.

int G_warning ( char *  msg,
  ... 
)

char* getenv (  ) 


Generated on Sun Apr 6 17:32:18 2008 for GRASS by  doxygen 1.5.5