mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-02 02:40:07 +02:00
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:
parent
e37b4d00a4
commit
c8477277fe
@ -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>
|
Tue Dec 1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* INSTALL:
|
* INSTALL:
|
||||||
|
@ -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>
|
Tue Dec 1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* INSTALL:
|
* INSTALL:
|
||||||
|
@ -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>
|
Tue Dec 1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* INSTALL:
|
* INSTALL:
|
||||||
|
@ -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>
|
Tue Dec 1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* INSTALL:
|
* INSTALL:
|
||||||
|
@ -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>
|
Tue Dec 1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* INSTALL:
|
* INSTALL:
|
||||||
|
@ -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>
|
Tue Dec 1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* INSTALL:
|
* INSTALL:
|
||||||
|
@ -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>
|
Tue Dec 1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* INSTALL:
|
* INSTALL:
|
||||||
|
@ -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>
|
Tue Dec 1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* INSTALL:
|
* INSTALL:
|
||||||
|
7
gdate.c
7
gdate.c
@ -1212,16 +1212,13 @@ g_date_compare (GDate *lhs,
|
|||||||
|
|
||||||
void
|
void
|
||||||
g_date_to_struct_tm (GDate *d,
|
g_date_to_struct_tm (GDate *d,
|
||||||
gpointer struct_tm_p)
|
struct tm *tm)
|
||||||
{
|
{
|
||||||
GDateWeekday day;
|
GDateWeekday day;
|
||||||
struct tm *tm;
|
|
||||||
|
|
||||||
g_return_if_fail (d != NULL);
|
g_return_if_fail (d != NULL);
|
||||||
g_return_if_fail (g_date_valid (d));
|
g_return_if_fail (g_date_valid (d));
|
||||||
g_return_if_fail (struct_tm_p != NULL);
|
g_return_if_fail (tm != NULL);
|
||||||
|
|
||||||
tm = struct_tm_p;
|
|
||||||
|
|
||||||
if (!d->mdy)
|
if (!d->mdy)
|
||||||
{
|
{
|
||||||
|
4
glib.h
4
glib.h
@ -2218,9 +2218,11 @@ guint8 g_date_sunday_weeks_in_year (GDateYear year);
|
|||||||
gint g_date_compare (GDate *lhs,
|
gint g_date_compare (GDate *lhs,
|
||||||
GDate *rhs);
|
GDate *rhs);
|
||||||
|
|
||||||
|
/* make struct tm known without having to include time.h */
|
||||||
|
struct tm;
|
||||||
|
|
||||||
void g_date_to_struct_tm (GDate *d,
|
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.
|
/* Just like strftime() except you can only use date-related formats.
|
||||||
* Using a time format is undefined.
|
* Using a time format is undefined.
|
||||||
|
@ -1212,16 +1212,13 @@ g_date_compare (GDate *lhs,
|
|||||||
|
|
||||||
void
|
void
|
||||||
g_date_to_struct_tm (GDate *d,
|
g_date_to_struct_tm (GDate *d,
|
||||||
gpointer struct_tm_p)
|
struct tm *tm)
|
||||||
{
|
{
|
||||||
GDateWeekday day;
|
GDateWeekday day;
|
||||||
struct tm *tm;
|
|
||||||
|
|
||||||
g_return_if_fail (d != NULL);
|
g_return_if_fail (d != NULL);
|
||||||
g_return_if_fail (g_date_valid (d));
|
g_return_if_fail (g_date_valid (d));
|
||||||
g_return_if_fail (struct_tm_p != NULL);
|
g_return_if_fail (tm != NULL);
|
||||||
|
|
||||||
tm = struct_tm_p;
|
|
||||||
|
|
||||||
if (!d->mdy)
|
if (!d->mdy)
|
||||||
{
|
{
|
||||||
|
@ -2218,9 +2218,11 @@ guint8 g_date_sunday_weeks_in_year (GDateYear year);
|
|||||||
gint g_date_compare (GDate *lhs,
|
gint g_date_compare (GDate *lhs,
|
||||||
GDate *rhs);
|
GDate *rhs);
|
||||||
|
|
||||||
|
/* make struct tm known without having to include time.h */
|
||||||
|
struct tm;
|
||||||
|
|
||||||
void g_date_to_struct_tm (GDate *d,
|
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.
|
/* Just like strftime() except you can only use date-related formats.
|
||||||
* Using a time format is undefined.
|
* Using a time format is undefined.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user