[GRASS-SVN] r46977 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 5 06:07:39 EDT 2011
Author: martinl
Date: 2011-07-05 03:07:39 -0700 (Tue, 05 Jul 2011)
New Revision: 46977
Modified:
grass/trunk/lib/gis/env.c
grass/trunk/lib/gis/parser.c
grass/trunk/lib/gis/putenv.c
Log:
gislib: cosmetics in doxygen documentation
Modified: grass/trunk/lib/gis/env.c
===================================================================
--- grass/trunk/lib/gis/env.c 2011-07-05 10:05:31 UTC (rev 46976)
+++ grass/trunk/lib/gis/env.c 2011-07-05 10:07:39 UTC (rev 46977)
@@ -1,9 +1,9 @@
/*!
- \file gis/env.c
+ \file lib/gis/env.c
\brief GIS library - environment routines
- (C) 2001-2009 by the GRASS Development Team
+ (C) 2001-2009, 2011 by the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
@@ -377,10 +377,12 @@
If value is NULL, becomes an G_unsetenv().
Updates .gisrc
+
\param name variable name
\param value variable value
- \param loc location id
+ \param loc location (G_VAR_GISRC, G_VAR_MAPSET)
+
*/
void G_setenv2(const char *name, const char *value, int loc)
{
Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c 2011-07-05 10:05:31 UTC (rev 46976)
+++ grass/trunk/lib/gis/parser.c 2011-07-05 10:07:39 UTC (rev 46977)
@@ -687,7 +687,7 @@
opt = opt->next_opt;
}
- return (buff);
+ return buff;
}
/*!
Modified: grass/trunk/lib/gis/putenv.c
===================================================================
--- grass/trunk/lib/gis/putenv.c 2011-07-05 10:05:31 UTC (rev 46976)
+++ grass/trunk/lib/gis/putenv.c 2011-07-05 10:07:39 UTC (rev 46977)
@@ -1,3 +1,17 @@
+/*!
+ \file lib/gis/putenv.c
+
+ \brief GIS library - environment routines
+
+ (C) 2001-2009, 2011 by the GRASS Development Team
+
+ This program is free software under the GNU General Public License
+ (>=v2). Read the file COPYING that comes with GRASS for details.
+
+ \author Original author CERL
+ \author Updated for GRASS7 by Glynn Clements
+*/
+
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
@@ -4,17 +18,16 @@
#include <grass/config.h>
#include <grass/gis.h>
-/*******************************************************************
- * G_putenv (name, value)
- * const char *name, *value
- *
- * this routine sets the UNIX environment variable name to value
- ******************************************************************/
-
#if !defined(HAVE_PUTENV) && !defined(HAVE_SETENV)
extern char **environ;
#endif
+/*!
+ \brief Sets the UNIX environment variable name to value
+
+ \param name env name
+ \param value env value
+*/
void G_putenv(const char *name, const char *value)
{
char buf[1024];
More information about the grass-commit
mailing list