error.c File Reference

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <stdarg.h>
#include <sys/types.h>
#include "glocale.h"
#include "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 59 of file error.c.

Referenced by G_fatal_error().

#define MSG   0

Definition at line 57 of file error.c.

Referenced by G_message().

#define WARN   1

Definition at line 58 of file error.c.

Referenced by G_warning().


Function Documentation

int G_fatal_error ( char *  msg,
  ... 
)

Definition at line 92 of file error.c.

References ERR.

Referenced by G__make_mapset_element(), G_ask_ellipse_name(), G_ask_proj_name(), G_calloc(), G_get_datum_parameters(), G_get_default_window(), G_get_ellipsoid_parameters(), G_get_window(), G_getenv(), G_getenv2(), G_gisinit(), G_home(), G_location_path(), G_make_location(), G_malloc(), G_mapset(), G_open_raster_new(), G_open_raster_new_uncompressed(), G_put_map_row(), G_put_reclass(), G_readsites(), G_readsites_xyz(), G_realloc(), and G_site_new_struct().

int G_info_format ( void   ) 

Definition at line 387 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 80 of file error.c.

References MSG.

int G_set_error_routine ( int(*)()  error_routine  ) 

Definition at line 141 of file error.c.

int G_sleep_on_error ( int  flag  ) 

Definition at line 132 of file error.c.

Referenced by G_readsites().

int G_suppress_warnings ( int  flag  ) 

Definition at line 123 of file error.c.

int G_unset_error_routine (  ) 

Definition at line 147 of file error.c.

int G_warning ( char *  msg,
  ... 
)

Definition at line 108 of file error.c.

References WARN.

Referenced by G__check_for_auto_masking(), G__check_fp_type(), G__check_null_bit(), G__open_cell_old(), G__open_null_write(), G__quant_import(), G__random_d_initialize_0(), G__random_f_initialize_0(), G__read_row_ptrs(), G__write_fp_format(), G__write_null_bits(), G_ask_datum_name(), G_ask_datum_params(), G_debug(), G_get_3dview(), G_get_cellhd(), G_get_reclass(), G_is_null_value(), G_make_colors(), G_open_cell_old(), G_parser(), G_put_3dview(), G_put_cell_title(), G_put_cellhd(), G_put_reclass(), G_quantize_fp_map(), G_quantize_fp_map_range(), G_raster_map_is_fp(), G_raster_map_type(), G_read_colors(), G_read_fp_range(), G_read_histogram(), G_read_history(), G_read_range(), G_read_raster_cats(), G_read_vector_cats(), G_readsites(), G_round_fp_map(), G_set_fp_type(), G_set_null_value(), G_set_quant_rules(), G_set_window(), G_spawn(), G_spawn_ex(), G_truncate_fp_map(), G_write_fp_range(), G_write_history(), G_write_quant(), and G_write_range().

char* getenv (  ) 

Referenced by G__getenv(), G__getenv2(), G__write_colors(), G_debug(), G_info_format(), G_open_fp_cell_new(), G_open_fp_cell_new_uncompressed(), G_parser(), and G_spawn_ex().


Generated on Sat Jul 22 22:06:23 2006 for GRASS by  doxygen 1.4.7