[GRASS-SVN] r42261 - grass/trunk/include

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 16 11:37:24 EDT 2010


Author: glynn
Date: 2010-05-16 11:37:24 -0400 (Sun, 16 May 2010)
New Revision: 42261

Modified:
   grass/trunk/include/datetime.h
   grass/trunk/include/gisdefs.h
Log:
Add tag to DateTime structure


Modified: grass/trunk/include/datetime.h
===================================================================
--- grass/trunk/include/datetime.h	2010-05-16 15:35:13 UTC (rev 42260)
+++ grass/trunk/include/datetime.h	2010-05-16 15:37:24 UTC (rev 42261)
@@ -12,7 +12,7 @@
 #define DATETIME_MINUTE 5
 #define DATETIME_SECOND 6
 
-typedef struct
+typedef struct DateTime
 {
     int mode;			/* absolute or relative */
     int from, to;

Modified: grass/trunk/include/gisdefs.h
===================================================================
--- grass/trunk/include/gisdefs.h	2010-05-16 15:35:13 UTC (rev 42260)
+++ grass/trunk/include/gisdefs.h	2010-05-16 15:37:24 UTC (rev 42261)
@@ -44,6 +44,8 @@
 # define G__freea(p) G_free(p)
 #endif
 
+#include <stdarg.h>
+#include <stdio.h>
 #include <sys/types.h>
 
 /* adj_cellhd.c */
@@ -585,12 +587,12 @@
 
 /* timestamp.c */
 void G_init_timestamp(struct TimeStamp *);
-void G_set_timestamp(struct TimeStamp *, const DateTime *);
-void G_set_timestamp_range(struct TimeStamp *, const DateTime *,
-			   const DateTime *);
+void G_set_timestamp(struct TimeStamp *, const struct DateTime *);
+void G_set_timestamp_range(struct TimeStamp *, const struct DateTime *,
+			   const struct DateTime *);
 int G__read_timestamp(FILE *, struct TimeStamp *);
 int G__write_timestamp(FILE *, const struct TimeStamp *);
-void G_get_timestamps(const struct TimeStamp *, DateTime *, DateTime *, int *);
+void G_get_timestamps(const struct TimeStamp *, struct DateTime *, struct DateTime *, int *);
 int G_read_raster_timestamp(const char *, const char *, struct TimeStamp *);
 int G_read_vector_timestamp(const char *, const char *, struct TimeStamp *);
 int G_write_raster_timestamp(const char *, const struct TimeStamp *);



More information about the grass-commit mailing list