Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way

This commit is contained in:
Zeev Suraski 2001-07-30 01:56:43 +00:00
parent b57703825b
commit 1c25b8dd53
72 changed files with 211 additions and 223 deletions

View file

@ -184,14 +184,16 @@ void php_DOTNET_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, zend_propert
}
}
void php_register_DOTNET_class()
void php_register_DOTNET_class(void)
{
TSRMLS_FETCH();
INIT_OVERLOADED_CLASS_ENTRY(dotnet_class_entry, "DOTNET", NULL,
php_DOTNET_call_function_handler,
php_COM_get_property_handler,
php_COM_set_property_handler);
zend_register_internal_class(&dotnet_class_entry);
zend_register_internal_class(&dotnet_class_entry TSRMLS_CC);
}
function_entry DOTNET_functions[] = {
@ -207,7 +209,6 @@ static PHP_MINFO_FUNCTION(DOTNET)
PHP_MINIT_FUNCTION(DOTNET)
{
HRESULT hr;
CoInitialize(0);
hr = dotnet_init();