Skip to content

Commit

Permalink
Make SPL_DS_ME use ZEND_ACC_PUBLIC implicitely
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Dec 30, 2011
1 parent f02bf2c commit dae0ae9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions php_spl_ds.h
Expand Up @@ -37,8 +37,8 @@ extern zend_module_entry spl_datastructures_module_entry;
dst_ce = zend_register_internal_interface(&ce TSRMLS_CC); \
} while(0)

#define SPL_DS_ME(class, method, arg_info, flags) \
PHP_ME(spl_ds_ ## class, method, arg_info, flags)
#define SPL_DS_ME(class, method, arg_info) \
PHP_ME(spl_ds_ ## class, method, arg_info, ZEND_ACC_PUBLIC)

#define SPL_DS_ABSTRACT_ME(class, method, arg_info) \
PHP_ABSTRACT_ME(spl_ds_ ## class, method, arg_info)
Expand Down
12 changes: 6 additions & 6 deletions spl_ds_stack.c
Expand Up @@ -133,12 +133,12 @@ ZEND_BEGIN_ARG_INFO_EX(spl_ds_arg_info_Stack_push, 0, 0, 1)
ZEND_END_ARG_INFO()

const zend_function_entry spl_ds_methods_Stack[] = {
SPL_DS_ME(Stack, peek, spl_ds_arg_info_Stack_void, ZEND_ACC_PUBLIC)
SPL_DS_ME(Stack, pop, spl_ds_arg_info_Stack_void, ZEND_ACC_PUBLIC)
SPL_DS_ME(Stack, push, spl_ds_arg_info_Stack_push, ZEND_ACC_PUBLIC)
SPL_DS_ME(Stack, clear, spl_ds_arg_info_Stack_void, ZEND_ACC_PUBLIC)
SPL_DS_ME(Stack, isEmpty, spl_ds_arg_info_Stack_void, ZEND_ACC_PUBLIC)
SPL_DS_ME(Stack, toArray, spl_ds_arg_info_Stack_void, ZEND_ACC_PUBLIC)
SPL_DS_ME(Stack, peek, spl_ds_arg_info_Stack_void)
SPL_DS_ME(Stack, pop, spl_ds_arg_info_Stack_void)
SPL_DS_ME(Stack, push, spl_ds_arg_info_Stack_push)
SPL_DS_ME(Stack, clear, spl_ds_arg_info_Stack_void)
SPL_DS_ME(Stack, isEmpty, spl_ds_arg_info_Stack_void)
SPL_DS_ME(Stack, toArray, spl_ds_arg_info_Stack_void)
PHP_FE_END
};

Expand Down

0 comments on commit dae0ae9

Please sign in to comment.