]> granicus.if.org Git - php/commitdiff
export these symbols for use by SPL as a shared extension
authorWez Furlong <wez@php.net>
Mon, 22 Dec 2003 13:09:15 +0000 (13:09 +0000)
committerWez Furlong <wez@php.net>
Mon, 22 Dec 2003 13:09:15 +0000 (13:09 +0000)
Zend/zend_API.c
Zend/zend_API.h
Zend/zend_object_handlers.c
Zend/zend_object_handlers.h

index 00ed8abb2e9e3657daf26e45f010f5cc259215ce..196399dc652d1ebe1d92d3216c8feadbf4e45e11 100644 (file)
@@ -1189,7 +1189,7 @@ ZEND_API int zend_startup_module(zend_module_entry *module)
 
 
 /* registers all functions in *library_functions in the function hash */
-int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC)
+ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC)
 {
        zend_function_entry *ptr = functions;
        zend_function function, *reg_function;
@@ -1311,7 +1311,7 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
 /* count=-1 means erase all functions, otherwise, 
  * erase the first count functions
  */
-void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC)
+ZEND_API void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC)
 {
        zend_function_entry *ptr = functions;
        int i=0;
index a52ee0bfa40557c52ccb57f214ec03325cbc635b..67818b860a9d4e0923e736c54a882ffe22f88909 100644 (file)
@@ -157,8 +157,8 @@ ZEND_API int zend_parse_method_parameters_ex(int flags, int num_args TSRMLS_DC,
 
 /* End of parameter parsing API -- andrei */
 
-int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC);
-void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC);
+ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC);
+ZEND_API void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC);
 ZEND_API int zend_register_module(zend_module_entry *module_entry);
 
 ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *class_entry TSRMLS_DC);
index 1e9e35f4a4c366329b5d2d55acb907566e52290f..bc4bf48535f084cfb5643cdb9fbbeb7b51d822e2 100644 (file)
@@ -949,7 +949,7 @@ int zend_std_cast_object(zval *readobj, zval *writeobj, int type, int should_fre
        return FAILURE;
 }
 
-zend_object_handlers std_object_handlers = {
+ZEND_API zend_object_handlers std_object_handlers = {
        zend_objects_store_add_ref,                             /* add_ref */
        zend_objects_store_del_ref,                             /* del_ref */
        zend_objects_store_delete_obj,                  /* delete_obj */
index d1478af8889ab39dda2a7dca05dc19b42c0b1f9e..9e7c6fe1c7b78090deed6b9fdc5135388111c7d6 100644 (file)
@@ -113,7 +113,7 @@ typedef struct _zend_object_handlers {
        zend_object_cast_t                                              cast_object;
 } zend_object_handlers;
 
-extern zend_object_handlers std_object_handlers;
+ZEND_API zend_object_handlers std_object_handlers;
 ZEND_API union _zend_function *zend_std_get_static_method(zend_class_entry *ce, char *function_name_strval, int function_name_strlen TSRMLS_DC);
 ZEND_API zval **zend_std_get_static_property(zend_class_entry *ce, char *property_name, int property_name_len, zend_bool silent TSRMLS_DC);
 ZEND_API zend_bool zend_std_unset_static_property(zend_class_entry *ce, char *property_name, int property_name_len TSRMLS_DC);