Permalink
Browse files

MFZE1 (Expose more C++ APIs)

  • Loading branch information...
1 parent bc068a9 commit 0450ab9462b54e8566ef6ab3c1f40629e3f981c0 @zsuraski zsuraski committed May 20, 2002
Showing with 9 additions and 0 deletions.
  1. +4 −0 Zend/zend_API.h
  2. +3 −0 Zend/zend_execute.h
  3. +2 −0 Zend/zend_list.h
View
@@ -29,6 +29,8 @@
#include "zend_variables.h"
#include "zend_execute.h"
+
+BEGIN_EXTERN_C()
#define ZEND_FN(name) zif_##name
#define ZEND_NAMED_FUNCTION(name) void name(INTERNAL_FUNCTION_PARAMETERS)
#define ZEND_FUNCTION(name) ZEND_NAMED_FUNCTION(ZEND_FN(name))
@@ -426,6 +428,8 @@ ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length,
#define ZEND_RSHUTDOWN_FUNCTION ZEND_MODULE_DEACTIVATE_D
#define ZEND_MINFO_FUNCTION ZEND_MODULE_INFO_D
+END_EXTERN_C()
+
#endif /* ZEND_API_H */
View
@@ -49,6 +49,7 @@ typedef union _temp_variable {
} temp_variable;
+BEGIN_EXTERN_C()
ZEND_API extern void (*zend_execute)(zend_op_array *op_array TSRMLS_DC);
void init_executor(TSRMLS_D);
@@ -161,4 +162,6 @@ void zend_assign_to_variable_reference(znode *result, zval **variable_ptr_ptr, z
#define IS_OVERLOADED_OBJECT 1
#define IS_STRING_OFFSET 2
+END_EXTERN_C()
+
#endif /* ZEND_EXECUTE_H */
View
@@ -24,6 +24,7 @@
#include "zend_hash.h"
#include "zend_globals.h"
+BEGIN_EXTERN_C()
#define ZEND_RESOURCE_LIST_TYPE_STD 1
#define ZEND_RESOURCE_LIST_TYPE_EX 2
@@ -105,5 +106,6 @@ extern ZEND_API int le_index_ptr; /* list entry type for index pointers */
if (le_id == 0) { \
le_id = zend_fetch_list_dtor_id(le_type_name); \
}
+END_EXTERN_C()
#endif

0 comments on commit 0450ab9

Please sign in to comment.