changed `gpointer struct_tm_p' parameter of g_date_to_struct_tm back to

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.
This commit is contained in:
Sebastian Wilhelmi 1998-12-02 09:07:18 +00:00 committed by Sebastian Wilhelmi
parent e37b4d00a4
commit c8477277fe
12 changed files with 74 additions and 12 deletions

View 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:

View 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:

View 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:

View 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:

View 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:

View 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:

View 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:

View 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:

View 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)
{

4
glib.h
View 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.

View 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)
{

View 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.