GRASS Programmer's Manual
6.4.1(2011)
|
GIS Library - Debug functions. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include "G.h"
Go to the source code of this file.
Functions | |
int | G_debug (int level, const char *msg,...) |
Print debugging message. | |
int | G_dump (int fd) |
Dumps status of various GIS parameters. |
GIS Library - Debug functions.
(C) 2001-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file debug.c.
int G_debug | ( | int | level, |
const char * | msg, | ||
... | |||
) |
Print debugging message.
Print debugging message if environment variable GRASS_DEBUG_LEVEL is set to level equal or greater
Levels: (recommended levels)
[in] | level | level |
[in] | msg | message |
Definition at line 51 of file debug.c.
References G__getenv(), G_warning(), and NULL.
Referenced by G__create_window_mapping(), G__read_Cell_head(), G__read_Cell_head_array(), G_adjust_Cell_head(), G_adjust_Cell_head3(), G_available_mapsets(), G_get_raster_cat(), G_plot_icon(), G_read_color_rule(), G_recreate_command(), and G_str_to_color().
int G_dump | ( | int | fd | ) |
Dumps status of various GIS parameters.
Dumps status of various GIS parameters of a particular file descriptor, fd.
[in] | fd | file |
Definition at line 108 of file debug.c.
References G__::auto_mask, fileinfo::C1, fileinfo::C2, fileinfo::cellhd, fileinfo::col_map, G__::compressed_buf, G__::compressed_buf_size, fileinfo::cur_nbytes, fileinfo::cur_row, fileinfo::data, G__::fileinfo, G__::fp_nbytes, fileinfo::fp_range, G__::fp_type, G_message(), fileinfo::io_error, fileinfo::map_type, fileinfo::mapset, G__::mask_buf, G__::mask_buf_size, G__::mask_fd, fileinfo::min_null_row, fileinfo::name, fileinfo::nbytes, G__::null_buf, G__::null_buf_size, fileinfo::null_cur_row, fileinfo::null_file_exists, fileinfo::NULL_ROWS, NULL_ROWS_INMEM, fileinfo::null_temp_name, fileinfo::null_work_buf, fileinfo::open_mode, fileinfo::quant, fileinfo::range, fileinfo::reclass, fileinfo::reclass_flag, fileinfo::row_ptr, fileinfo::statf, fileinfo::temp_name, fileinfo::want_histogram, G__::want_histogram, G__::window, G__::window_set, G__::work_buf, G__::work_buf_size, and fileinfo::xdrstream.