[GRASS-dev] gisinit.c

Hey

I’ve been compiling a few functions and they are working just fine altough there is a reference to a gisinit.c file in programmers manual and also in my functions, where it initializes GIS environment (G_gisinit(argv[0]).

question: In which file is this compiled or where can I change this function (in case I want)?

Thanks

Luis Lisboa

Luis Lisboa wrote:

I've been compiling a few functions and they are working just fine altough
there is a reference to a gisinit.c file in programmers manual and also in
my functions, where it initializes GIS environment (G_gisinit(argv[0]).

question: In which file is this compiled or where can I change this function
(in case I want)?

The function is in lib/gis/gisinit.c. But the function is named
G__gisinit(), with two underscores. G_gisinit() is a macro which
passes the SVN revision of gis.h as an argument (to detect the case
where a module uses a version of libgis other than the one for which
it was compiled).

--
Glynn Clements <glynn@gclements.plus.com>