cvs: /php3/functions php3_mcal.c
| From: | Mark Musone | Date: | Tue, 07 Sep 1999 16:19:36 +0000 |
| Subject: | cvs: /php3/functions php3_mcal.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10669@lists.php.net to get a copy of this message | ||
musone Tue Sep 7 12:19:36 1999 EDT
Modified files:
/php3/functions php3_mcal.c
Log:
sorry egon..added funtion prototypes
Index: php3/functions/php3_mcal.c
diff -u php3/functions/php3_mcal.c:1.14 php3/functions/php3_mcal.c:1.15
--- php3/functions/php3_mcal.c:1.14 Tue Sep 7 11:36:13 1999
+++ php3/functions/php3_mcal.c Tue Sep 7 12:19:05 1999
@@ -1121,6 +1121,8 @@
}
/* }}} */
+/* {{{ proto int mcal_event_add_alarm(int stream_id, int alarm)
+ add an alarm to the streams global event */
void php3_mcal_event_add_alarm(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind,*alarm;
@@ -1155,6 +1157,8 @@
}
/* }}} */
+/* {{{ proto int mcal_event_add_alarm(int stream_id)
+ initialize a streams global event */
void php3_mcal_init_event(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
@@ -1217,6 +1221,8 @@
}
+/* {{{ proto int mcal_event_add_class(int stream_id, int class)
+ add an class to the streams global event */
void php3_mcal_event_add_class(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind,*class;
@@ -1253,6 +1259,8 @@
+/* {{{ proto bool mcal_is_leap_year(int year)
+ returns true if year is a leap year, false if not */
void php3_mcal_is_leap_year(INTERNAL_FUNCTION_PARAMETERS)
{
pval *year;
@@ -1281,7 +1289,10 @@
RETURN_FALSE;
}
}
+/* }}} */
+/* {{{ proto int mcal_days_in_month(int month,bool leap_year)
+ returns the number of days in the given month, needs to know if the year is a leap year or not
*/
void php3_mcal_days_in_month(INTERNAL_FUNCTION_PARAMETERS)
{
pval *month,*leap;
@@ -1305,7 +1316,11 @@
convert_to_boolean_long(leap);
RETURN_LONG(daysinmonth(month->value.lval,leap->value.lval));
}
+/* }}} */
+
+/* {{{ proto bool mcal_date_valid(int year,int month,int day)
+ returns true if the date is a valid date */
void php3_mcal_date_valid(INTERNAL_FUNCTION_PARAMETERS)
{
pval *year,*month,*day;
@@ -1337,7 +1352,11 @@
}
}
+/* }}} */
+
+/* {{{ proto bool mcal_time_valid(int hour,int min,int sec)
+ returns true if the time is a valid time */
void php3_mcal_time_valid(INTERNAL_FUNCTION_PARAMETERS)
{
pval *hour,*min,*sec;
@@ -1368,7 +1387,10 @@
RETURN_FALSE;
}
}
+/* }}} */
+/* {{{ proto int mcal_day_of_week(int year,int month,int day)
+ returns the day of the week of the given date */
void php3_mcal_day_of_week(INTERNAL_FUNCTION_PARAMETERS)
{
pval *year,*month,*day;
@@ -1396,7 +1418,10 @@
RETURN_LONG(dt_dayofweek(&mydate));
}
+/* }}} */
+/* {{{ proto int mcal_day_of_year(int year,int month,int day)
+ returns the day of the year of the given date */
void php3_mcal_day_of_year(INTERNAL_FUNCTION_PARAMETERS)
{
pval *year,*month,*day;
@@ -1428,7 +1453,8 @@
-/* returns <0, 0, >0 if a<b, a==b, a>b respectively */
+/* {{{ proto int mcal_day_of_week(int ayear,int amonth,int aday,int byear,int bmonth,int bday)
+ returns <0, 0, >0 if a<b, a==b, a>b respectively */
void php3_mcal_date_compare(INTERNAL_FUNCTION_PARAMETERS)
{
pval *ayear,*amonth,*aday;
@@ -1463,8 +1489,8 @@
RETURN_LONG(dt_compare(&myadate,&mybdate));
}
-
+/* }}} */
/* Interfaces to callbacks */