27 #include "gis_local_proto.h"
30 #ifdef GRASS_CMAKE_BUILD
31 #include <export/grass_gis_export.h>
33 #define GRASS_GIS_EXPORT
46 static int initialized = 0;
51 static int gisinit(
void);
76 envstr = getenv(
"GRASS_COMPATIBILITY_TEST");
77 if (envstr && *envstr && strcmp(envstr, answer) == 0) {
78 G_warning(
_(
"Module built against version %s but "
79 "trying to use version %s. "
80 "In case of errors you need to rebuild the module "
81 "against GRASS GIS version %s."),
86 _(
"Module built against version %s but "
87 "trying to use version %s. "
88 "You need to rebuild GRASS GIS or untangle multiple "
127 envstr = getenv(
"GRASS_COMPATIBILITY_TEST");
128 if (envstr && *envstr && strcmp(envstr, answer) == 0) {
129 G_warning(
_(
"Module built against version %s but "
130 "trying to use version %s. "
131 "In case of errors you need to rebuild the module "
132 "against GRASS GIS version %s."),
137 _(
"Module built against version %s but "
138 "trying to use version %s. "
139 "You need to rebuild GRASS GIS or untangle multiple "
155 _(
"System not initialized. Programmer forgot to call G_gisinit()."));
160 static int gisinit(
void)
164 #if defined(_MSC_VER) || defined(__MINGW32__)
173 zlib = getenv(
"GRASS_ZLIB_LEVEL");
185 setlocale(LC_NUMERIC,
"C");
int G_mapset_permissions(const char *)
Check for user mapset permission.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
void int G_is_little_endian(void)
Tests for little ENDIAN.
const char * G_whoami(void)
Gets user's name.
const char * G_mapset(void)
Get current mapset name.
void G_read_datum_table(void)
int G_verbose(void)
Get current verbosity level.
void G_sleep(unsigned int)
void G_set_program_name(const char *)
Set program name.
char * G_location_path(void)
Get current location UNIX-like path.
void G__init_window(void)
Initialize window (region).
int G_read_ellipsoid_table(int)
Read ellipsoid table.
void G_init_env(void)
Initialize variables.
void G_init_tempfile(void)
Initialize environment for creating tempfiles.
void G_init_logging(void)
void G_init_debug(void)
Initiate debugging.
Header file for msvc/open.c and msvc/creat.c.
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)
const char * G__machine_name(void)
void G__get_list_of_mapsets(void)
Fill list of mapsets from search path (internal use only)
#define GRASS_VERSION_STRING