Ver código fonte

Rename Rast__init() to Rast_init()
Call Rast_init() in r.mapcalc


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38425 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 anos atrás
pai
commit
bf18ac9701
3 arquivos alterados com 3 adições e 2 exclusões
  1. 1 1
      include/rasterdefs.h
  2. 1 1
      lib/raster/init.c
  3. 1 0
      raster/r.mapcalc/main.c

+ 1 - 1
include/rasterdefs.h

@@ -340,7 +340,7 @@ void Rast_short_history(const char *, const char *, struct History *);
 int Rast_command_history(struct History *);
 
 /* init.c */
-void Rast__init(void);
+void Rast_init(void);
 void Rast__check_init(void);
 void Rast_init_all(void);
 

+ 1 - 1
lib/raster/init.c

@@ -42,7 +42,7 @@ static int init(void);
  * \return exit() is called on error
  */
 
-void Rast__init(void)
+void Rast_init(void)
 {
     if (initialized)
 	return;

+ 1 - 0
raster/r.mapcalc/main.c

@@ -106,6 +106,7 @@ int main(int argc, char **argv)
     int all_ok;
 
     G_gisinit(argv[0]);
+    Rast_init();
 
     module = G_define_module();
     G_add_keyword(_("raster"));