15 #include <grass/gis.h> 
   16 #include <grass/glocale.h> 
   39         struct Cell_head window;
 
   43                             window.rows, window.cols);
 
   45         G_fatal_error(_(
"G_malloc: unable to allocate %lu bytes of memory at %s:%d"),
 
   46                       (
unsigned long) n, file, line);
 
   79         struct Cell_head window;
 
   83                             window.rows, window.cols);
 
   85         G_fatal_error(_(
"G_calloc: unable to allocate %lu * %lu bytes of memory at %s:%d"),
 
   86                       (
unsigned long) m, (
unsigned long) n, file, line);
 
  119         buf = realloc(buf, n);
 
  122         struct Cell_head window;
 
  126                             window.rows, window.cols);
 
  128         G_fatal_error(_(
"G_realloc: unable to allocate %lu bytes of memory at %s:%d"),
 
  129                       (
unsigned long) n, file, line);
 
void G_free(void *buf)
Free allocated memory. 
 
void G_important_message(const char *msg,...)
Print a message to stderr even in brief mode (verbosity=1) 
 
void * G__realloc(const char *file, int line, void *buf, size_t n)
Memory reallocation. 
 
void * G__malloc(const char *file, int line, size_t n)
Memory allocation. 
 
int G_get_window(struct Cell_head *window)
read the database region 
 
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
 
void * G__calloc(const char *file, int line, size_t m, size_t n)
Memory allocation. 
 
int G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.