Explorar o código

Add tag to DateTime structure

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42261 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements %!s(int64=15) %!d(string=hai) anos
pai
achega
37924a962d
Modificáronse 2 ficheiros con 7 adicións e 5 borrados
  1. 1 1
      include/datetime.h
  2. 6 4
      include/gisdefs.h

+ 1 - 1
include/datetime.h

@@ -12,7 +12,7 @@
 #define DATETIME_MINUTE 5
 #define DATETIME_MINUTE 5
 #define DATETIME_SECOND 6
 #define DATETIME_SECOND 6
 
 
-typedef struct
+typedef struct DateTime
 {
 {
     int mode;			/* absolute or relative */
     int mode;			/* absolute or relative */
     int from, to;
     int from, to;

+ 6 - 4
include/gisdefs.h

@@ -44,6 +44,8 @@
 # define G__freea(p) G_free(p)
 # define G__freea(p) G_free(p)
 #endif
 #endif
 
 
+#include <stdarg.h>
+#include <stdio.h>
 #include <sys/types.h>
 #include <sys/types.h>
 
 
 /* adj_cellhd.c */
 /* adj_cellhd.c */
@@ -585,12 +587,12 @@ void G__temp_element(char *);
 
 
 /* timestamp.c */
 /* timestamp.c */
 void G_init_timestamp(struct TimeStamp *);
 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__read_timestamp(FILE *, struct TimeStamp *);
 int G__write_timestamp(FILE *, const 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_raster_timestamp(const char *, const char *, struct TimeStamp *);
 int G_read_vector_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 *);
 int G_write_raster_timestamp(const char *, const struct TimeStamp *);