Skip to content

Commit

Permalink
export more Zend API
Browse files Browse the repository at this point in the history
  • Loading branch information
krakjoe committed Nov 17, 2013
1 parent b93f8e6 commit f046189
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Zend/zend.c
Expand Up @@ -919,7 +919,7 @@ ZEND_API char *get_zend_version(void) /* {{{ */
}
/* }}} */

void zend_activate(TSRMLS_D) /* {{{ */
ZEND_API void zend_activate(TSRMLS_D) /* {{{ */
{
#ifdef ZTS
virtual_cwd_activate(TSRMLS_C);
Expand All @@ -939,7 +939,7 @@ void zend_call_destructors(TSRMLS_D) /* {{{ */
}
/* }}} */

void zend_deactivate(TSRMLS_D) /* {{{ */
ZEND_API void zend_deactivate(TSRMLS_D) /* {{{ */
{
/* we're no longer executing anything */
EG(opline_ptr) = NULL;
Expand Down
14 changes: 8 additions & 6 deletions Zend/zend.h
Expand Up @@ -651,12 +651,14 @@ ZEND_API void zend_print_zval_r_ex(zend_write_func_t write_func, zval *expr, int
ZEND_API void zend_output_debug_string(zend_bool trigger_break, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
END_EXTERN_C()

void zend_activate(TSRMLS_D);
void zend_deactivate(TSRMLS_D);
void zend_call_destructors(TSRMLS_D);
void zend_activate_modules(TSRMLS_D);
void zend_deactivate_modules(TSRMLS_D);
void zend_post_deactivate_modules(TSRMLS_D);
BEGIN_EXTERN_C()
ZEND_API void zend_activate(TSRMLS_D);
ZEND_API void zend_deactivate(TSRMLS_D);
ZEND_API void zend_call_destructors(TSRMLS_D);
ZEND_API void zend_activate_modules(TSRMLS_D);
ZEND_API void zend_deactivate_modules(TSRMLS_D);
ZEND_API void zend_post_deactivate_modules(TSRMLS_D);
END_EXTERN_C()

#if ZEND_DEBUG
#define Z_DBG(expr) (expr)
Expand Down
6 changes: 3 additions & 3 deletions Zend/zend_API.c
Expand Up @@ -2381,7 +2381,7 @@ void module_destructor(zend_module_entry *module) /* {{{ */
}
/* }}} */

void zend_activate_modules(TSRMLS_D) /* {{{ */
ZEND_API void zend_activate_modules(TSRMLS_D) /* {{{ */
{
zend_module_entry **p = module_request_startup_handlers;

Expand Down Expand Up @@ -2410,7 +2410,7 @@ int module_registry_cleanup(zend_module_entry *module TSRMLS_DC) /* {{{ */
}
/* }}} */

void zend_deactivate_modules(TSRMLS_D) /* {{{ */
ZEND_API void zend_deactivate_modules(TSRMLS_D) /* {{{ */
{
EG(opline_ptr) = NULL; /* we're no longer executing anything */

Expand Down Expand Up @@ -2457,7 +2457,7 @@ static int exec_done_cb(zend_module_entry *module TSRMLS_DC) /* {{{ */
}
/* }}} */

void zend_post_deactivate_modules(TSRMLS_D) /* {{{ */
ZEND_API void zend_post_deactivate_modules(TSRMLS_D) /* {{{ */
{
if (EG(full_tables_cleanup)) {
zend_hash_apply(&module_registry, (apply_func_t) exec_done_cb TSRMLS_CC);
Expand Down
2 changes: 1 addition & 1 deletion Zend/zend_execute.c
Expand Up @@ -1678,7 +1678,7 @@ static zend_always_inline zend_execute_data *i_create_execute_data_from_op_array
}
/* }}} */

zend_execute_data *zend_create_execute_data_from_op_array(zend_op_array *op_array, zend_bool nested TSRMLS_DC) /* {{{ */
ZEND_API zend_execute_data *zend_create_execute_data_from_op_array(zend_op_array *op_array, zend_bool nested TSRMLS_DC) /* {{{ */
{
return i_create_execute_data_from_op_array(op_array, nested TSRMLS_CC);
}
Expand Down
2 changes: 1 addition & 1 deletion Zend/zend_execute.h
Expand Up @@ -56,7 +56,7 @@ ZEND_API extern void (*zend_execute_internal)(zend_execute_data *execute_data_pt
void init_executor(TSRMLS_D);
void shutdown_executor(TSRMLS_D);
void shutdown_destructors(TSRMLS_D);
zend_execute_data *zend_create_execute_data_from_op_array(zend_op_array *op_array, zend_bool nested TSRMLS_DC);
ZEND_API zend_execute_data *zend_create_execute_data_from_op_array(zend_op_array *op_array, zend_bool nested TSRMLS_DC);
ZEND_API void zend_execute(zend_op_array *op_array TSRMLS_DC);
ZEND_API void execute_ex(zend_execute_data *execute_data TSRMLS_DC);
ZEND_API void execute_internal(zend_execute_data *execute_data_ptr, struct _zend_fcall_info *fci, int return_value_used TSRMLS_DC);
Expand Down

0 comments on commit f046189

Please sign in to comment.