[GRASS-SVN] r62903 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 25 00:15:33 PST 2014


Author: martinl
Date: 2014-11-25 00:15:33 -0800 (Tue, 25 Nov 2014)
New Revision: 62903

Modified:
   grass/trunk/lib/gis/basename.c
   grass/trunk/lib/gis/progrm_nme.c
Log:
libgis: doxygen cosmetics


Modified: grass/trunk/lib/gis/basename.c
===================================================================
--- grass/trunk/lib/gis/basename.c	2014-11-24 23:39:09 UTC (rev 62902)
+++ grass/trunk/lib/gis/basename.c	2014-11-25 08:15:33 UTC (rev 62903)
@@ -1,17 +1,15 @@
 
-/**
- * \file basename.c
+/*!
+ * \file lib/gis/basename.c
  *
  * \brief GIS Library - Program basename routines.
  *
- * (C) 2001-2008 by the GRASS Development Team
+ * (C) 2001-2014 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 GRASS GIS Development Team
- *
- * \date 1999-2007
  */
 
 #include <grass/gis.h>
@@ -23,7 +21,7 @@
 #include <stdlib.h>
 
 
-/**
+/*!
  * \brief Truncates filename to the base part (before the last '.')
  * if it matches the extension, otherwise leaves it unchanged.
  * 
@@ -31,12 +29,12 @@
  * (case insensitive) and if so, truncates the string to the
  * base file name (cf. basename Unix command)
  *
- * \param[in] filename string containing filename
- * \param[in] desired_ext string containing extension to look for (case
+ * \param filename string containing filename
+ * \param desired_ext string containing extension to look for (case
  * insensitive)
- * \return Pointer to filename
+ *
+ * \return pointer to filename
  */
-
 char *G_basename(char *filename, const char *desired_ext)
 {
     /* Find the last . in the filename */
@@ -106,9 +104,13 @@
 
 
 /*!
- * \brief Return the environmental basename variable or the default value
+ * \brief Return the environmental basename variable or the default
+ * value
+ *
+ * return pointer to basename separator
  */
-char *G_get_basename_separator(){
+char *G_get_basename_separator()
+{
     char *envvar = "GRASS_BASENAME_SEPARATOR";
     char *envsep;
 

Modified: grass/trunk/lib/gis/progrm_nme.c
===================================================================
--- grass/trunk/lib/gis/progrm_nme.c	2014-11-24 23:39:09 UTC (rev 62902)
+++ grass/trunk/lib/gis/progrm_nme.c	2014-11-25 08:15:33 UTC (rev 62903)
@@ -1,9 +1,9 @@
 /*!
- * \file gis/progrm_nme.c
+ * \file lib/gis/progrm_nme.c
  *
  * \brief GIS Library - Program name
  *
- * (C) 2001-2009 by the GRASS Development Team
+ * (C) 2001-2014 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.
@@ -49,8 +49,13 @@
 	    break;
 	}
     }
+
+    /* strip extension from program name */
     temp = G_store(s);
     G_basename(temp, "exe");
     name = G_store(temp);
+
+    G_debug(1, "G_set_program_name(): %s", name);
+    
     G_free(temp);
 }



More information about the grass-commit mailing list