[GRASS5] Problem compiling Grass51
Paul Kelly
paul-grass at stjohnspoint.co.uk
Wed Apr 30 09:09:08 EDT 2003
On Wed, 30 Apr 2003, Radim Blazek wrote:
> Are there G_setenv2/G__getenv2 realy available in libgrass_gis.a
> (nm libgrass_gis.a)?
No they aren't there, and I can't find any definition for them in the
source code either, just several places where they are called.
Some output below:
doom 1139% nm dist*2/lib/libgrass_gis.a | grep env2
[6] | 8| |Static |struct env* |Data | env2
doom 1140% find . -name '*.[ch]' | xargs grep env2
./lib/db/dbmi/connect.c: G_setenv2("DB_DRIVER", connection->driverName, G_VAR_MAPSET);
./lib/db/dbmi/connect.c: G_setenv2("DB_DATABASE", connection->databaseName, G_VAR_MAPSET);
./lib/db/dbmi/connect.c: connection->driverName = G__getenv2("DB_DRIVER", G_VAR_MAPSET);
./lib/db/dbmi/connect.c: connection->databaseName = G__getenv2("DB_DATABASE", G_VAR_MAPSET);
./lib/gis/env.c:static ENV *env2 = NULL;
./lib/gis/env.c:/* copy env to env2 */
./lib/gis/env.c: env2 = env;
./lib/gis/env.c: if (env2[count].name)
./lib/gis/env.c: set_env (env2[count].name, env2[count].value);
./lib/gis/env.c: env = env2;
./lib/gis/env.c: env2 = tmp;
./lib/vector/Vlib/open.c: frmt = G__getenv2 ( "GV_FORMAT", G_VAR_MAPSET );
./lib/vector/Vlib/field.c: drv = G__getenv2 ( "GV_DRIVER", G_VAR_MAPSET );
./lib/vector/Vlib/field.c: db = G__getenv2 ( "GV_DATABASE", G_VAR_MAPSET );
./lib/vector/Vlib/field.c: G_setenv2 ( "GV_DRIVER", "dbf", G_VAR_MAPSET );
./lib/vector/Vlib/field.c: G_setenv2 ( "GV_DATABASE", "$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/", G_VAR_MAPSET );
./lib/vector/Vlib/open_post.c: finfo->post.db = G__getenv2 ( "GV_PGIS_DATABASE", G_VAR_MAPSET );
./include/gisdefs.h:char *G_getenv2(char *, int);
./include/gisdefs.h:char *G__getenv2(char *, int);
./include/gisdefs.h:int G_setenv2(char *, char *, int);
./include/gisdefs.h:int G__setenv2(char *, char *, int);
./include/gisdefs.h:int G_unsetenv2(char *, int);
./vector/v.database/main.c: G_setenv2 ( "GV_DRIVER", driver->answer, G_VAR_MAPSET );
./vector/v.database/main.c: G_setenv2 ( "GV_DATABASE", database->answer, G_VAR_MAPSET );
./vector/v.database/main.c: fprintf(stdout, "driver:%s\n", G__getenv2( "GV_DRIVER", G_VAR_MAPSET) );
./vector/v.database/main.c: fprintf(stdout, "database:%s\n", G__getenv2( "GV_DATABASE", G_VAR_MAPSET) );
doom 1141%
More information about the grass-dev
mailing list