Skip to content

Commit

Permalink
- Make usage of new PHP_FE_END macro
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jul 25, 2011
1 parent f1f2a64 commit 4b30846
Show file tree
Hide file tree
Showing 112 changed files with 174 additions and 176 deletions.
2 changes: 1 addition & 1 deletion ext/bcmath/bcmath.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const zend_function_entry bcmath_functions[] = {
PHP_FE(bcscale, arginfo_bcscale)
PHP_FE(bccomp, arginfo_bccomp)
PHP_FE(bcpowmod, arginfo_bcpowmod)
{NULL, NULL, NULL}
PHP_FE_END
};

zend_module_entry bcmath_module_entry = {
Expand Down
2 changes: 1 addition & 1 deletion ext/bz2/bz2.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static const zend_function_entry bz2_functions[] = {
PHP_FE(bzerror, arginfo_bzerror)
PHP_FE(bzcompress, arginfo_bzcompress)
PHP_FE(bzdecompress, arginfo_bzdecompress)
{NULL, NULL, NULL}
PHP_FE_END
};

zend_module_entry bz2_module_entry = {
Expand Down
2 changes: 1 addition & 1 deletion ext/calendar/calendar.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const zend_function_entry calendar_functions[] = {
PHP_FE(cal_from_jd, arginfo_cal_from_jd)
PHP_FE(cal_days_in_month, arginfo_cal_days_in_month)
PHP_FE(cal_info, arginfo_cal_info)
{NULL, NULL, NULL}
PHP_FE_END
};


Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const zend_function_entry com_dotnet_functions[] = {
PHP_FE(com_message_pump, arginfo_com_message_pump)
PHP_FE(com_load_typelib, arginfo_com_load_typelib)
PHP_FE(com_get_active_object, arginfo_com_get_active_object)
{ NULL, NULL, NULL }
PHP_FE_END
};

/* {{{ com_dotnet_module_entry
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_persist.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ static const zend_function_entry com_persist_helper_methods[] = {
CPH_ME(InitNew, NULL)
CPH_ME(LoadFromStream, NULL)
CPH_ME(SaveToStream, NULL)
{NULL, NULL, NULL}
PHP_FE_END
};

static void helper_free_storage(void *obj TSRMLS_DC)
Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/ctype.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static const zend_function_entry ctype_functions[] = {
PHP_FE(ctype_space, arginfo_ctype_space)
PHP_FE(ctype_upper, arginfo_ctype_upper)
PHP_FE(ctype_xdigit, arginfo_ctype_xdigit)
{NULL, NULL, NULL} /* Must be the last line in ctype_functions[] */
PHP_FE_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/curl/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ const zend_function_entry curl_functions[] = {
PHP_FE(curl_multi_getcontent, arginfo_curl_multi_getcontent)
PHP_FE(curl_multi_info_read, arginfo_curl_multi_info_read)
PHP_FE(curl_multi_close, arginfo_curl_multi_close)
{NULL, NULL, NULL}
PHP_FE_END
};
/* }}} */

Expand Down
10 changes: 5 additions & 5 deletions ext/date/php_date.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ const zend_function_entry date_functions[] = {
PHP_FE(date_sunrise, arginfo_date_sunrise)
PHP_FE(date_sunset, arginfo_date_sunset)
PHP_FE(date_sun_info, arginfo_date_sun_info)
{NULL, NULL, NULL}
PHP_FE_END
};

const zend_function_entry date_funcs_date[] = {
Expand All @@ -447,7 +447,7 @@ const zend_function_entry date_funcs_date[] = {
PHP_ME_MAPPING(setTimestamp, date_timestamp_set, arginfo_date_method_timestamp_set, 0)
PHP_ME_MAPPING(getTimestamp, date_timestamp_get, arginfo_date_method_timestamp_get, 0)
PHP_ME_MAPPING(diff, date_diff, arginfo_date_method_diff, 0)
{NULL, NULL, NULL}
PHP_FE_END
};

const zend_function_entry date_funcs_timezone[] = {
Expand All @@ -458,19 +458,19 @@ const zend_function_entry date_funcs_timezone[] = {
PHP_ME_MAPPING(getLocation, timezone_location_get, arginfo_timezone_method_location_get, 0)
PHP_ME_MAPPING(listAbbreviations, timezone_abbreviations_list, arginfo_timezone_abbreviations_list, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
PHP_ME_MAPPING(listIdentifiers, timezone_identifiers_list, arginfo_timezone_identifiers_list, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
{NULL, NULL, NULL}
PHP_FE_END
};

const zend_function_entry date_funcs_interval[] = {
PHP_ME(DateInterval, __construct, arginfo_date_interval_construct, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
PHP_ME_MAPPING(format, date_interval_format, arginfo_date_method_interval_format, 0)
PHP_ME_MAPPING(createFromDateString, date_interval_create_from_date_string, arginfo_date_interval_create_from_date_string, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
{NULL, NULL, NULL}
PHP_FE_END
};

const zend_function_entry date_funcs_period[] = {
PHP_ME(DatePeriod, __construct, arginfo_date_period_construct, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};

static char* guess_timezone(const timelib_tzdb *tzdb TSRMLS_DC);
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const zend_function_entry dba_functions[] = {
PHP_FE(dba_handlers, arginfo_dba_handlers)
PHP_FE(dba_list, arginfo_dba_list)
PHP_FE(dba_key_split, arginfo_dba_key_split)
{NULL, NULL, NULL}
PHP_FE_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/dom/attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ZEND_END_ARG_INFO();
const zend_function_entry php_dom_attr_class_functions[] = {
PHP_FALIAS(isId, dom_attr_is_id, arginfo_dom_attr_is_id)
PHP_ME(domattr, __construct, arginfo_dom_attr_construct, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ proto void DOMAttr::__construct(string name, [string value]); */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/cdatasection.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ZEND_END_ARG_INFO();

const zend_function_entry php_dom_cdatasection_class_functions[] = {
PHP_ME(domcdatasection, __construct, arginfo_dom_cdatasection_construct, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ proto void DOMCdataSection::__construct(string value); */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/characterdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const zend_function_entry php_dom_characterdata_class_functions[] = {
PHP_FALIAS(insertData, dom_characterdata_insert_data, arginfo_dom_characterdata_insert_data)
PHP_FALIAS(deleteData, dom_characterdata_delete_data, arginfo_dom_characterdata_delete_data)
PHP_FALIAS(replaceData, dom_characterdata_replace_data, arginfo_dom_characterdata_replace_data)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ data string
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const zend_function_entry php_dom_document_class_functions[] = { /* {{{ */
PHP_FALIAS(relaxNGValidateSource, dom_document_relaxNG_validate_xml, arginfo_dom_document_relaxNG_validate_xml)
#endif
PHP_ME(domdocument, registerNodeClass, arginfo_dom_document_registernodeclass, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/dom/documentfragment.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ZEND_END_ARG_INFO();
const zend_function_entry php_dom_documentfragment_class_functions[] = {
PHP_ME(domdocumentfragment, __construct, arginfo_dom_documentfragement_construct, ZEND_ACC_PUBLIC)
PHP_ME(domdocumentfragment, appendXML, arginfo_dom_documentfragement_appendXML, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ proto void DOMDocumentFragment::__construct(); */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/documenttype.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/

const zend_function_entry php_dom_documenttype_class_functions[] = {
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ name string
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/domconfiguration.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const zend_function_entry php_dom_domconfiguration_class_functions[] = {
PHP_FALIAS(setParameter, dom_domconfiguration_set_parameter, arginfo_dom_configuration_set_parameter)
PHP_FALIAS(getParameter, dom_domconfiguration_get_parameter, arginfo_dom_configuration_get_parameter)
PHP_FALIAS(canSetParameter, dom_domconfiguration_can_set_parameter, arginfo_dom_configuration_can_set_parameter)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/domerror.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/

const zend_function_entry php_dom_domerror_class_functions[] = {
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/domerrorhandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ZEND_END_ARG_INFO();

const zend_function_entry php_dom_domerrorhandler_class_functions[] = {
PHP_FALIAS(handleError, dom_domerrorhandler_handle_error, arginfo_dom_domerrorhandler_handle_error)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/domexception.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
extern zend_class_entry *dom_domexception_class_entry;

const zend_function_entry php_dom_domexception_class_functions[] = {
{NULL, NULL, NULL}
PHP_FE_END
};

void php_dom_throw_error_with_message(int error_code, char *error_message, int strict_error TSRMLS_DC) /* {{{ */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/domimplementation.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const zend_function_entry php_dom_domimplementation_class_functions[] = {
PHP_ME(domimplementation, hasFeature, arginfo_dom_implementation_has_feature, ZEND_ACC_PUBLIC|ZEND_ACC_ALLOW_STATIC)
PHP_ME(domimplementation, createDocumentType, arginfo_dom_implementation_create_documenttype, ZEND_ACC_PUBLIC|ZEND_ACC_ALLOW_STATIC)
PHP_ME(domimplementation, createDocument, arginfo_dom_implementation_create_document, ZEND_ACC_PUBLIC|ZEND_ACC_ALLOW_STATIC)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ proto boolean dom_domimplementation_has_feature(string feature, string version);
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/domimplementationsource.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ZEND_END_ARG_INFO();
const zend_function_entry php_dom_domimplementationsource_class_functions[] = {
PHP_FALIAS(getDomimplementation, dom_domimplementationsource_get_domimplementation, arginfo_dom_implementationsource_getdomimplementation)
PHP_FALIAS(getDomimplementations, dom_domimplementationsource_get_domimplementations, arginfo_dom_implementationsource_getdomimplementations)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/domlocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/

const zend_function_entry php_dom_domlocator_class_functions[] = {
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/domstringlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ZEND_END_ARG_INFO();

const zend_function_entry php_dom_domstringlist_class_functions[] = {
PHP_FALIAS(item, dom_domstringlist_item, arginfo_dom_stringlist_item)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/element.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const zend_function_entry php_dom_element_class_functions[] = { /* {{{ */
PHP_FALIAS(setIdAttributeNS, dom_element_set_id_attribute_ns, arginfo_dom_element_set_id_attribute_ns)
PHP_FALIAS(setIdAttributeNode, dom_element_set_id_attribute_node, arginfo_dom_element_set_id_attribute_node)
PHP_ME(domelement, __construct, arginfo_dom_element_construct, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/dom/entity.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/

const zend_function_entry php_dom_entity_class_functions[] = {
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ publicId string
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/entityreference.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ZEND_END_ARG_INFO();

const zend_function_entry php_dom_entityreference_class_functions[] = {
PHP_ME(domentityreference, __construct, arginfo_dom_entityreference_construct, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ proto void DOMEntityReference::__construct(string name); */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/namednodemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const zend_function_entry php_dom_namednodemap_class_functions[] = { /* {{{ */
PHP_FALIAS(getNamedItemNS, dom_namednodemap_get_named_item_ns, arginfo_dom_namednodemap_get_named_item_ns)
PHP_FALIAS(setNamedItemNS, dom_namednodemap_set_named_item_ns, arginfo_dom_namednodemap_set_named_item_ns)
PHP_FALIAS(removeNamedItemNS, dom_namednodemap_remove_named_item_ns, arginfo_dom_namednodemap_remove_named_item_ns)
{NULL, NULL, NULL}
PHP_FE_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/dom/namelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ZEND_END_ARG_INFO();
const zend_function_entry php_dom_namelist_class_functions[] = {
PHP_FALIAS(getName, dom_namelist_get_name, arginfo_dom_namelist_get_name)
PHP_FALIAS(getNamespaceURI, dom_namelist_get_namespace_uri, arginfo_dom_namelist_get_namespace_uri)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ length int
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const zend_function_entry php_dom_node_class_functions[] = { /* {{{ */
PHP_ME(domnode, getLineNo, arginfo_dom_node_getLineNo, ZEND_ACC_PUBLIC)
PHP_ME(domnode, C14N, arginfo_dom_node_C14N, ZEND_ACC_PUBLIC)
PHP_ME(domnode, C14NFile, arginfo_dom_node_C14NFile, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/dom/nodelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ZEND_END_ARG_INFO();

const zend_function_entry php_dom_nodelist_class_functions[] = {
PHP_FALIAS(item, dom_nodelist_item, arginfo_dom_nodelist_item)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ length int
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/notation.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/

const zend_function_entry php_dom_notation_class_functions[] = {
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/php_dom.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ ZEND_END_ARG_INFO()

static const zend_function_entry dom_functions[] = {
PHP_FE(dom_import_simplexml, arginfo_dom_import_simplexml)
{NULL, NULL, NULL}
PHP_FE_END
};

static zend_object_handlers* dom_get_obj_handlers(TSRMLS_D) {
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/processinginstruction.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ZEND_END_ARG_INFO();

const zend_function_entry php_dom_processinginstruction_class_functions[] = {
PHP_ME(domprocessinginstruction, __construct, arginfo_dom_processinginstruction_construct, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ proto void DOMProcessingInstruction::__construct(string name, [string value]); */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/string_extend.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ZEND_END_ARG_INFO();
const zend_function_entry php_dom_string_extend_class_functions[] = {
PHP_FALIAS(findOffset16, dom_string_extend_find_offset16, arginfo_dom_string_extend_find_offset16)
PHP_FALIAS(findOffset32, dom_string_extend_find_offset32, arginfo_dom_string_extend_find_offset32)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const zend_function_entry php_dom_text_class_functions[] = {
PHP_FALIAS(isElementContentWhitespace, dom_text_is_whitespace_in_element_content, arginfo_dom_text_is_whitespace_in_element_content)
PHP_FALIAS(replaceWholeText, dom_text_replace_whole_text, arginfo_dom_text_replace_whole_text)
PHP_ME(domtext, __construct, arginfo_dom_text_construct, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ proto void DOMText::__construct([string value]); */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/typeinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/

const zend_function_entry php_dom_typeinfo_class_functions[] = {
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/userdatahandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

const zend_function_entry php_dom_userdatahandler_class_functions[] = {
PHP_FALIAS(handle, dom_userdatahandler_handle, NULL)
{NULL, NULL, NULL}
PHP_FE_END
};

/* {{{ attribute protos, not implemented yet */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const zend_function_entry php_dom_xpath_class_functions[] = {
PHP_FALIAS(query, dom_xpath_query, arginfo_dom_xpath_query)
PHP_FALIAS(evaluate, dom_xpath_evaluate, arginfo_dom_xpath_evaluate)
PHP_FALIAS(registerPhpFunctions, dom_xpath_register_php_functions, arginfo_dom_xpath_register_php_functions)
{NULL, NULL, NULL}
PHP_FE_END
};


Expand Down
3 changes: 1 addition & 2 deletions ext/enchant/enchant.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ zend_function_entry enchant_functions[] = {
PHP_FE(enchant_dict_get_error, arginfo_enchant_broker_free_dict)
PHP_FE(enchant_dict_describe, arginfo_enchant_broker_free_dict)
PHP_FE(enchant_dict_quick_check, arginfo_enchant_dict_quick_check)

{NULL, NULL, NULL} /* Must be the last line in enchant_functions[] */
PHP_FE_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/ereg/ereg.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const zend_function_entry ereg_functions[] = {
PHP_DEP_FE(split, arginfo_split)
PHP_DEP_FE(spliti, arginfo_split)
PHP_DEP_FE(sql_regcase, arginfo_sql_regcase)
{NULL, NULL, NULL}
PHP_FE_END
};
/* }}} */

Expand Down
Loading

0 comments on commit 4b30846

Please sign in to comment.