cvs: /php4/ext/mcal php_mcal.c
| From: | Charles Hagenbuch | Date: | Sat, 11 Mar 2000 05:40:51 +0000 |
| Subject: | cvs: /php4/ext/mcal php_mcal.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-11908@lists.php.net to get a copy of this message | ||
chagenbu Fri Mar 10 21:40:51 2000 EDT
Modified files:
/php4/ext/mcal php_mcal.c
Log:
switching the order of arguments of mcal_week_of_day() to be more flexible -
day, month, year now so that month and year can be defaulted at some point.
this is also consistent with the library function.
Index: php4/ext/mcal/php_mcal.c
diff -u php4/ext/mcal/php_mcal.c:1.12 php4/ext/mcal/php_mcal.c:1.13
--- php4/ext/mcal/php_mcal.c:1.12 Fri Mar 10 18:15:13 2000
+++ php4/ext/mcal/php_mcal.c Fri Mar 10 21:40:21 2000
@@ -1256,7 +1256,7 @@
}
/* }}} */
-/* {{{ proto int mcal_week_of_year(int year, int month, int day)
+/* {{{ proto int mcal_week_of_year(int day, int month, int year)
Returns the week number of the given date */
PHP_FUNCTION(mcal_week_of_year)
{
@@ -1264,7 +1264,7 @@
int myargc;
myargc = ARG_COUNT(ht);
- if (myargc != 3 || getParameters(ht,myargc,&year,&month,&day) == FAILURE) {
+ if (myargc != 3 || getParameters(ht,myargc,&day,&month,&year) == FAILURE) {
WRONG_PARAM_COUNT;
}