Browse Source

libgis: G__put_window() -> G_put_element_window()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63827 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 years ago
parent
commit
b87b0b953d
4 changed files with 13 additions and 13 deletions
  1. 1 1
      include/defs/gis.h
  2. 2 2
      lib/gis/make_loc.c
  3. 1 1
      lib/gis/make_mapset.c
  4. 9 9
      lib/gis/put_window.c

+ 1 - 1
include/defs/gis.h

@@ -588,7 +588,7 @@ const char *G_database_epsg_code(void);
 
 /* put_window.c */
 int G_put_window(const struct Cell_head *);
-int G__put_window(const struct Cell_head *, const char *, const char *);
+int G_put_element_window(const struct Cell_head *, const char *, const char *);
 
 /* putenv.c */
 void G_putenv(const char *, const char *);

+ 2 - 2
lib/gis/make_loc.c

@@ -75,8 +75,8 @@ int G_make_location(const char *location_name,
     G__setenv("MAPSET", "PERMANENT");
 
     /* Create the default, and current window files */
-    G__put_window(wind, "", "DEFAULT_WIND");
-    G__put_window(wind, "", "WIND");
+    G_put_element_window(wind, "", "DEFAULT_WIND");
+    G_put_element_window(wind, "", "WIND");
 
     /* Write out the PROJ_INFO, and PROJ_UNITS if available. */
     if (proj_info != NULL) {

+ 1 - 1
lib/gis/make_mapset.c

@@ -83,7 +83,7 @@ int G_make_mapset(const char *gisdbase_name, const char *location_name,
     G__setenv("MAPSET", mapset_name);
 
     /* Copy default window/regions to new mapset */
-    G__put_window(&default_window, "", "WIND");
+    G_put_element_window(&default_window, "", "WIND");
 
     /* And switch back to original environment */
     G_switch_env();

+ 9 - 9
lib/gis/put_window.c

@@ -15,9 +15,9 @@
 #include <grass/gis.h>
 
 /*!
- * \brief Writes the database region (window)
+ * \brief Writes the region (window)
  *
- * Writes the database region file (WIND) in the user's current mapset
+ * Writes the region file (WIND) in the user's current mapset
  * or when environmental variable \c WIND_OVERRIDE is set,
  * it writes the region to file specified by \c WIND_OVERRIDE variable.
  *
@@ -26,7 +26,7 @@
  * Otherwise the whole GRASS session is affected.
  *
  * \warning When environmental variable \c WIND_OVERRIDE is not set,
- * this routine actually changes the database region.
+ * this routine actually changes the region.
  * So in this case it should only be called by modules which the user knows
  * will change the region. It is probably fair to say that only the
  * \gmod{g.region} should call this routine unless \c WIND_OVERRIDE is set.
@@ -45,17 +45,17 @@ int G_put_window(const struct Cell_head *window)
 {
     char *wind = getenv("WIND_OVERRIDE");
 
-    return wind ? G__put_window(window, "windows", wind)
-	: G__put_window(window, "", "WIND");
+    return wind ? G_put_element_window(window, "windows", wind)
+	: G_put_element_window(window, "", "WIND");
 }
 
 /*!
- * \brief Write the database region
+ * \brief Write the region
  *
- * Writes the database region file (WIND) in the user's current mapset
+ * Writes the region file (WIND) in the user's current mapset
  * from region. 
 
- * <b>Warning:</b> Since this routine actually changes the database
+ * <b>Warning:</b> Since this routine actually changes the 
  * region, it should only be called by modules which the user knows
  * will change the region. It is probably fair to say that only the
  * <tt>g.region</tt> should call this routine.
@@ -69,7 +69,7 @@ int G_put_window(const struct Cell_head *window)
  *
  * \sa G_put_window()
  */
-int G__put_window(const struct Cell_head *window, const char *dir, const char *name)
+int G_put_element_window(const struct Cell_head *window, const char *dir, const char *name)
 {
     FILE *fd;