21 #include <grass/gis.h>
22 #include <grass/glocale.h>
26 static int grass_debug_level = -1;
58 if (grass_debug_level < 0) {
62 grass_debug_level = atoi(lstr);
64 grass_debug_level = 0;
67 if (grass_debug_level >= level) {
70 filen =
getenv(
"GRASS_DEBUG_FILE");
72 fd = fopen(filen,
"a");
74 G_warning(_(
"Cannot open debug file '%s'"), filen);
82 fprintf(fd,
"D%d/%d: ", level, grass_debug_level);
83 vfprintf(fd, msg, ap);
112 G_message(
"G_dump: memory allocated to G__");
140 G_message(
"Data to window row constants %f,%f", fcb->
C1, fcb->
C2);
char * G__getenv(const char *name)
Get environment variable.
unsigned char * null_work_buf
int G_dump(int fd)
Dumps status of various GIS parameters.
void G_message(const char *msg,...)
Print a message to stderr.
struct fileinfo * fileinfo
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
unsigned char * compressed_buf
int G_debug(int level, const char *msg,...)
Print debugging message.
unsigned char * NULL_ROWS[NULL_ROWS_INMEM]