]> granicus.if.org Git - php/commitdiff
more const kewywording
authorNuno Lopes <nlopess@php.net>
Fri, 25 Jan 2008 20:29:48 +0000 (20:29 +0000)
committerNuno Lopes <nlopess@php.net>
Fri, 25 Jan 2008 20:29:48 +0000 (20:29 +0000)
remove spl_functions_none var (wast used anywhere

ext/spl/php_spl.c
ext/spl/php_spl.h
ext/tidy/php_tidy.h
ext/tidy/tidy.c

index 30e4d7814df5a68cd54dd326585ee854e598dc4b..4121c2b0ed9fc4d23c9cd952040bd4ee1d79e812 100755 (executable)
@@ -48,13 +48,6 @@ ZEND_DECLARE_MODULE_GLOBALS(spl)
 
 #define SPL_DEFAULT_FILE_EXTENSIONS ".inc,.php"
 
-/* {{{ spl_functions_none
- */
-const zend_function_entry spl_functions_none[] = {
-       {NULL, NULL, NULL}
-};
-/* }}} */
-
 /* {{{ PHP_GINIT_FUNCTION
  */
 static PHP_GINIT_FUNCTION(spl)
@@ -771,7 +764,7 @@ static const zend_module_dep spl_deps[] = {
 
 /* {{{ spl_module_entry
  */
-zend_module_entry spl_module_entry = {
+const zend_module_entry spl_module_entry = {
 #ifdef HAVE_SIMPLEXML
        STANDARD_MODULE_HEADER_EX, NULL,
        spl_deps,
index 75ec338285feb3d515f1636474899bf6c89bd5f6..e4e3c12d533296ab1e5574a06577fd4ddc9fd56a 100755 (executable)
@@ -28,7 +28,7 @@
 #define SPL_DEBUG(x)
 #endif
 
-extern zend_module_entry spl_module_entry;
+extern const zend_module_entry spl_module_entry;
 #define phpext_spl_ptr &spl_module_entry
 
 #ifdef PHP_WIN32
index 12226743ecee112a8fe8e45e0d269dd98b0c7583..60b8136ce0200b5bfa8d89a9d43c73ac81b4b87f 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef PHP_TIDY_H
 #define PHP_TIDY_H
 
-extern zend_module_entry tidy_module_entry;
+extern const zend_module_entry tidy_module_entry;
 #define phpext_tidy_ptr &tidy_module_entry
 
 #define TIDY_METHOD_MAP(name, func_name, arg_types) \
index c259ec7ddd344b58eef3bca179d47cd6b059fe0d..5c51940d52f5073ac734c69b196c9eb3bb752aee 100644 (file)
@@ -351,7 +351,7 @@ static zend_class_entry *tidy_ce_doc, *tidy_ce_node;
 static zend_object_handlers tidy_object_handlers_doc;
 static zend_object_handlers tidy_object_handlers_node;
 
-zend_module_entry tidy_module_entry = {
+const zend_module_entry tidy_module_entry = {
        STANDARD_MODULE_HEADER,
        "tidy",
        tidy_functions,