bjori           Tue Oct  3 14:55:42 2006 UTC

  Modified files:              
    /php-src/ext/date   php_date.c 
  Log:
  use PHP_ME_MAPPING rather than ZEND_NAMED_FE/ZEND_FENTRY
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.120&r2=1.121&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.120 php-src/ext/date/php_date.c:1.121
--- php-src/ext/date/php_date.c:1.120   Mon Oct  2 07:32:16 2006
+++ php-src/ext/date/php_date.c Tue Oct  3 14:55:42 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_date.c,v 1.120 2006/10/02 07:32:16 bjori Exp $ */
+/* $Id: php_date.c,v 1.121 2006/10/03 14:55:42 bjori Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -201,25 +201,25 @@
 
 
 zend_function_entry date_funcs_date[] = {
-       PHP_ME(DateTime, __construct, NULL, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
-       ZEND_NAMED_FE(format, ZEND_FN(date_format), NULL)
-       ZEND_NAMED_FE(modify, ZEND_FN(date_modify), NULL)
-       ZEND_NAMED_FE(getTimezone, ZEND_FN(date_timezone_get), NULL)
-       ZEND_NAMED_FE(setTimezone, ZEND_FN(date_timezone_set), NULL)
-       ZEND_NAMED_FE(getOffset, ZEND_FN(date_offset_get), NULL)
-       ZEND_NAMED_FE(setTime, ZEND_FN(date_time_set), NULL)
-       ZEND_NAMED_FE(setDate, ZEND_FN(date_date_set), NULL)
-       ZEND_NAMED_FE(setISODate, ZEND_FN(date_isodate_set), NULL)
+       PHP_ME(DateTime,            __construct,       NULL, 
ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
+       PHP_ME_MAPPING(format,      date_format,       NULL, 0)
+       PHP_ME_MAPPING(modify,      date_modify,       NULL, 0)
+       PHP_ME_MAPPING(getTimezone, date_timezone_get, NULL, 0)
+       PHP_ME_MAPPING(setTimezone, date_timezone_set, NULL, 0)
+       PHP_ME_MAPPING(getOffset,   date_offset_get,   NULL, 0)
+       PHP_ME_MAPPING(setTime,     date_time_set,     NULL, 0)
+       PHP_ME_MAPPING(setDate,     date_date_set,     NULL, 0)
+       PHP_ME_MAPPING(setISODate,  date_isodate_set,  NULL, 0)
        {NULL, NULL, NULL}
 };
 
 zend_function_entry date_funcs_timezone[] = {
-       PHP_ME(DateTimeZone, __construct, NULL, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
-       ZEND_NAMED_FE(getName, ZEND_FN(timezone_name_get), NULL)
-       ZEND_NAMED_FE(getOffset, ZEND_FN(timezone_offset_get), NULL)
-       ZEND_NAMED_FE(getTransitions, ZEND_FN(timezone_transitions_get), NULL)
-       ZEND_FENTRY(listAbbreviations, zif_timezone_abbreviations_list, NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
-       ZEND_FENTRY(listIdentifiers, zif_timezone_identifiers_list, NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+       PHP_ME(DateTimeZone,              __construct,                 NULL, 
ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
+       PHP_ME_MAPPING(getName,           timezone_name_get,           NULL, 0)
+       PHP_ME_MAPPING(getOffset,         timezone_offset_get,         NULL, 0)
+       PHP_ME_MAPPING(getTransitions,    timezone_transitions_get,    NULL, 0)
+       PHP_ME_MAPPING(listAbbreviations, timezone_abbreviations_list, NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+       PHP_ME_MAPPING(listIdentifiers,   timezone_identifiers_list,   NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
        {NULL, NULL, NULL}
 };
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to