New gcompat.h header file as recommended by Havoc.

2000-12-24  Ali Abdin  <aliabdin@aucegypt.edu>

        * Makefile.am, gcompat.h, glib.h: New gcompat.h header file
          as recommended by Havoc.

        * gdate.c, gdate.h, testgdate.c,
          docs/reference/glib/glib-sections.txt,
          docs/reference/glib/tmpl/date.sgml, tests/date-test.c: Rename some
          of the gdate functions to use the '_get' in their name. Patch
          reviewed by Havoc.
This commit is contained in:
Ali Abdin
2000-12-24 12:11:06 +00:00
committed by Ali Abdin
parent 57a7a2b010
commit 855e230f31
22 changed files with 378 additions and 239 deletions

View File

@@ -879,22 +879,22 @@ g_date_subtract_years
g_date_compare
<SUBSECTION>
g_date_day
g_date_month
g_date_year
g_date_julian
g_date_weekday
g_date_day_of_year
g_date_get_day
g_date_get_month
g_date_get_year
g_date_get_julian
g_date_get_weekday
g_date_get_day_of_year
<SUBSECTION>
g_date_days_in_month
g_date_get_days_in_month
g_date_is_first_of_month
g_date_is_last_of_month
g_date_is_leap_year
g_date_monday_week_of_year
g_date_monday_weeks_in_year
g_date_sunday_week_of_year
g_date_sunday_weeks_in_year
g_date_get_monday_week_of_year
g_date_get_monday_weeks_in_year
g_date_get_sunday_week_of_year
g_date_get_sunday_weeks_in_year
<SUBSECTION>
g_date_strftime

View File

@@ -422,7 +422,7 @@ dates must be valid.
greater than zero if @lhs is greater than @rhs
<!-- ##### FUNCTION g_date_day ##### -->
<!-- ##### FUNCTION g_date_get_day ##### -->
<para>
Return the day of the month; the #GDate must be valid.
</para>
@@ -431,7 +431,7 @@ Return the day of the month; the #GDate must be valid.
@Returns: Day of the month
<!-- ##### FUNCTION g_date_month ##### -->
<!-- ##### FUNCTION g_date_get_month ##### -->
<para>
Accessor for the month of the year. Date must be valid.
</para>
@@ -440,7 +440,7 @@ Accessor for the month of the year. Date must be valid.
@Returns: A #GDateMonth
<!-- ##### FUNCTION g_date_year ##### -->
<!-- ##### FUNCTION g_date_get_year ##### -->
<para>
Accessor; returns the year of a #GDate. The date must be valid.
</para>
@@ -449,7 +449,7 @@ Accessor; returns the year of a #GDate. The date must be valid.
@Returns: Year in which the date falls
<!-- ##### FUNCTION g_date_julian ##### -->
<!-- ##### FUNCTION g_date_get_julian ##### -->
<para>
Accessor, returns the Julian day or "serial number" of the #GDate. The
Julian day is simply the number of days since January 1, Year 1; i.e.,
@@ -461,7 +461,7 @@ etc. Date must be valid.
@Returns: Julian day
<!-- ##### FUNCTION g_date_weekday ##### -->
<!-- ##### FUNCTION g_date_get_weekday ##### -->
<para>
Returns the day of the week for a #GDate. The date must be valid.
</para>
@@ -470,7 +470,7 @@ Returns the day of the week for a #GDate. The date must be valid.
@Returns: Day of the week as a #GDateWeekday
<!-- ##### FUNCTION g_date_day_of_year ##### -->
<!-- ##### FUNCTION g_date_get_day_of_year ##### -->
<para>
Return the day of the year, where Jan 1 is the first day of the
year. Date must be valid.
@@ -480,7 +480,7 @@ year. Date must be valid.
@Returns: Day of the year
<!-- ##### FUNCTION g_date_days_in_month ##### -->
<!-- ##### FUNCTION g_date_get_days_in_month ##### -->
<para>
Return the number of days in a month, taking leap years into account.
</para>
@@ -517,7 +517,7 @@ Returns TRUE if the year is a leap year
@Returns: Boolean, if the year is a leap year
<!-- ##### FUNCTION g_date_monday_week_of_year ##### -->
<!-- ##### FUNCTION g_date_get_monday_week_of_year ##### -->
<para>
Return the week of the year, where weeks are understood to start on
Monday. If the date is before the first Monday of the year, return
@@ -528,7 +528,7 @@ Monday. If the date is before the first Monday of the year, return
@Returns: Week of the year
<!-- ##### FUNCTION g_date_monday_weeks_in_year ##### -->
<!-- ##### FUNCTION g_date_get_monday_weeks_in_year ##### -->
<para>
Return the number of weeks in the year, where weeks are taken to start
on Monday. Will be 52 or 53. Date must be valid. (Years always have 52
@@ -542,7 +542,7 @@ to be a Monday.)
@Returns: Number of Mondays in the year
<!-- ##### FUNCTION g_date_sunday_week_of_year ##### -->
<!-- ##### FUNCTION g_date_get_sunday_week_of_year ##### -->
<para>
Week of the year during which this date falls, if weeks are understood
to being on Sunday. Date must be valid. Can return 0 if the day is
@@ -553,7 +553,7 @@ before the first Sunday of the year.
@Returns: Week number
<!-- ##### FUNCTION g_date_sunday_weeks_in_year ##### -->
<!-- ##### FUNCTION g_date_get_sunday_weeks_in_year ##### -->
<para>
Return the number of weeks in the year, where weeks are taken to start
on Sunday. Will be 52 or 53. Date must be valid. (Years always have 52