changed `gpointer struct_tm_p' parameter of g_date_to_struct_tm back to
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Wed, 2 Dec 1998 09:07:18 +0000 (09:07 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Wed, 2 Dec 1998 09:07:18 +0000 (09:07 +0000)
1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
include time.h.

12 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdate.c
glib.h
glib/gdate.c
glib/glib.h

index 7fd4d4b..b779d9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: 
+       * gdate.c: changed `gpointer struct_tm_p' parameter of
+       g_date_to_struct_tm back to `struct tm *tm' and forward declared
+       `struct tm' in glib.h; yes, this is nice, we still need not
+       include time.h.
+
 Tue Dec  1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * INSTALL:
index 7fd4d4b..b779d9e 100644 (file)
@@ -1,3 +1,11 @@
+1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: 
+       * gdate.c: changed `gpointer struct_tm_p' parameter of
+       g_date_to_struct_tm back to `struct tm *tm' and forward declared
+       `struct tm' in glib.h; yes, this is nice, we still need not
+       include time.h.
+
 Tue Dec  1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * INSTALL:
index 7fd4d4b..b779d9e 100644 (file)
@@ -1,3 +1,11 @@
+1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: 
+       * gdate.c: changed `gpointer struct_tm_p' parameter of
+       g_date_to_struct_tm back to `struct tm *tm' and forward declared
+       `struct tm' in glib.h; yes, this is nice, we still need not
+       include time.h.
+
 Tue Dec  1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * INSTALL:
index 7fd4d4b..b779d9e 100644 (file)
@@ -1,3 +1,11 @@
+1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: 
+       * gdate.c: changed `gpointer struct_tm_p' parameter of
+       g_date_to_struct_tm back to `struct tm *tm' and forward declared
+       `struct tm' in glib.h; yes, this is nice, we still need not
+       include time.h.
+
 Tue Dec  1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * INSTALL:
index 7fd4d4b..b779d9e 100644 (file)
@@ -1,3 +1,11 @@
+1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: 
+       * gdate.c: changed `gpointer struct_tm_p' parameter of
+       g_date_to_struct_tm back to `struct tm *tm' and forward declared
+       `struct tm' in glib.h; yes, this is nice, we still need not
+       include time.h.
+
 Tue Dec  1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * INSTALL:
index 7fd4d4b..b779d9e 100644 (file)
@@ -1,3 +1,11 @@
+1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: 
+       * gdate.c: changed `gpointer struct_tm_p' parameter of
+       g_date_to_struct_tm back to `struct tm *tm' and forward declared
+       `struct tm' in glib.h; yes, this is nice, we still need not
+       include time.h.
+
 Tue Dec  1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * INSTALL:
index 7fd4d4b..b779d9e 100644 (file)
@@ -1,3 +1,11 @@
+1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: 
+       * gdate.c: changed `gpointer struct_tm_p' parameter of
+       g_date_to_struct_tm back to `struct tm *tm' and forward declared
+       `struct tm' in glib.h; yes, this is nice, we still need not
+       include time.h.
+
 Tue Dec  1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * INSTALL:
index 7fd4d4b..b779d9e 100644 (file)
@@ -1,3 +1,11 @@
+1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: 
+       * gdate.c: changed `gpointer struct_tm_p' parameter of
+       g_date_to_struct_tm back to `struct tm *tm' and forward declared
+       `struct tm' in glib.h; yes, this is nice, we still need not
+       include time.h.
+
 Tue Dec  1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * INSTALL:
diff --git a/gdate.c b/gdate.c
index b14d6d3..6de541c 100644 (file)
--- a/gdate.c
+++ b/gdate.c
@@ -1212,16 +1212,13 @@ g_date_compare (GDate     *lhs,
 
 void        
 g_date_to_struct_tm (GDate      *d, 
-                     gpointer    struct_tm_p)
+                     struct tm   *tm)
 {
   GDateWeekday day;
-  struct tm *tm;
      
   g_return_if_fail (d != NULL);
   g_return_if_fail (g_date_valid (d));
-  g_return_if_fail (struct_tm_p != NULL);
-
-  tm = struct_tm_p;
+  g_return_if_fail (tm != NULL);
   
   if (!d->mdy) 
     {
diff --git a/glib.h b/glib.h
index 2c11671..3702c26 100644 (file)
--- a/glib.h
+++ b/glib.h
@@ -2218,9 +2218,11 @@ guint8       g_date_sunday_weeks_in_year  (GDateYear    year);
 gint         g_date_compare               (GDate       *lhs,
                                            GDate       *rhs);
 
+/* make struct tm known without having to include time.h */
+struct tm;
 
 void         g_date_to_struct_tm          (GDate       *d,
-                                           gpointer     struct_tm_p);
+                                           struct tm   *tm);
 
 /* Just like strftime() except you can only use date-related formats.
  *   Using a time format is undefined.
index b14d6d3..6de541c 100644 (file)
@@ -1212,16 +1212,13 @@ g_date_compare (GDate     *lhs,
 
 void        
 g_date_to_struct_tm (GDate      *d, 
-                     gpointer    struct_tm_p)
+                     struct tm   *tm)
 {
   GDateWeekday day;
-  struct tm *tm;
      
   g_return_if_fail (d != NULL);
   g_return_if_fail (g_date_valid (d));
-  g_return_if_fail (struct_tm_p != NULL);
-
-  tm = struct_tm_p;
+  g_return_if_fail (tm != NULL);
   
   if (!d->mdy) 
     {
index 2c11671..3702c26 100644 (file)
@@ -2218,9 +2218,11 @@ guint8       g_date_sunday_weeks_in_year  (GDateYear    year);
 gint         g_date_compare               (GDate       *lhs,
                                            GDate       *rhs);
 
+/* make struct tm known without having to include time.h */
+struct tm;
 
 void         g_date_to_struct_tm          (GDate       *d,
-                                           gpointer     struct_tm_p);
+                                           struct tm   *tm);
 
 /* Just like strftime() except you can only use date-related formats.
  *   Using a time format is undefined.