24#include <grass/glocale.h>
27#include "gis_local_proto.h"
31static int initialized = 0;
32static int gisinit(
void);
53 if (strcmp(version, GIS_H_VERSION) != 0) {
57 envstr = getenv(
"GRASS_COMPATIBILITY_TEST");
58 if (envstr && *envstr && strcmp(envstr, answer) == 0) {
59 G_warning(_(
"Module built against version %s but "
60 "trying to use version %s. "
61 "In case of errors you need to rebuild the module "
62 "against GRASS GIS version %s."),
63 version, GIS_H_VERSION, GRASS_VERSION_STRING);
67 _(
"Module built against version %s but "
68 "trying to use version %s. "
69 "You need to rebuild GRASS GIS or untangle multiple "
71 version, GIS_H_VERSION);
104 if (strcmp(version, GIS_H_VERSION) != 0) {
108 envstr = getenv(
"GRASS_COMPATIBILITY_TEST");
109 if (envstr && *envstr && strcmp(envstr, answer) == 0) {
110 G_warning(_(
"Module built against version %s but "
111 "trying to use version %s. "
112 "In case of errors you need to rebuild the module "
113 "against GRASS GIS version %s."),
114 version, GIS_H_VERSION, GRASS_VERSION_STRING);
118 _(
"Module built against version %s but "
119 "trying to use version %s. "
120 "You need to rebuild GRASS GIS or untangle multiple "
122 version, GIS_H_VERSION);
136 _(
"System not initialized. Programmer forgot to call G_gisinit()."));
141static int gisinit(
void)
154 zlib = getenv(
"GRASS_ZLIB_LEVEL");
166 setlocale(LC_NUMERIC,
"C");
void G_init_debug(void)
Initiate debugging.
int G_is_little_endian(void)
Tests for little ENDIAN.
void G_init_env(void)
Initialize variables.
int G_read_ellipsoid_table(int fatal)
Read ellipsoid table.
void G_read_datum_table(void)
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
void G_warning(const char *msg,...)
Print a warning message to stderr.
void G_init_logging(void)
void G__check_gisinit(void)
Checks to see if GIS engine is initialized.
void G_init_all(void)
Initialize environment.
void G__no_gisinit(const char *version)
Initialize GIS Library.
void G__gisinit(const char *version, const char *pgm)
Initialize GIS Library and ensures a valid mapset is available.
const char * G__home(void)
Get user's home directory (internal use only)
char * G_location_path(void)
Get current location UNIX-like path.
const char * G__machine_name(void)
const char * G_mapset(void)
Get current mapset name.
int G_mapset_permissions(const char *mapset)
Check for user mapset permission.
void G__get_list_of_mapsets(void)
Fill list of mapsets from search path (internal use only)
void G_set_program_name(const char *s)
Set program name.
void G_sleep(unsigned int seconds)
void G_init_tempfile(void)
Initialize environment for creating tempfiles.
int G_verbose(void)
Get current verbosity level.
const char * G_whoami(void)
Gets user's name.
void G__init_window(void)
Initialize window (region).