On Fri, 2002-01-18 at 14:34, Andi Gutmans wrote:
> No good reason. If you need to add it in someplaces go ahead and send in a
> patch.
>
There are probably more places this can be needed, but these where
enought for me to get my extension to compile and run.
> On 18 Jan 2002, Robin Ericsson wrote:
>
> > Is there any reason that only parts of Zend is using BEGIN_EXTERN_C()?
> >
regards
robin
Index: zend_API.c
===================================================================
RCS file: /repository/Zend/zend_API.c,v
retrieving revision 1.107
diff -u -r1.107 zend_API.c
--- zend_API.c 2002/01/06 15:21:08 1.107
+++ zend_API.c 2002/01/22 10:37:49
@@ -33,6 +33,8 @@
static int module_count=0;
ZEND_API HashTable module_registry;
+BEGIN_EXTERN_C()
+
/* this function doesn't check for too many parameters */
ZEND_API int zend_get_parameters(int ht, int param_count, ...)
{
@@ -1397,3 +1399,5 @@
}
return module->version;
}
+
+END_EXTERN_C()
Index: zend_API.h
===================================================================
RCS file: /repository/Zend/zend_API.h,v
retrieving revision 1.111
diff -u -r1.111 zend_API.h
--- zend_API.h 2002/01/06 15:21:08 1.111
+++ zend_API.h 2002/01/22 10:37:49
@@ -102,8 +102,8 @@
class_container.handle_property_set = handle_propset; \
}
+BEGIN_EXTERN_C()
-
int zend_next_free_module(void);
ZEND_API int zend_get_parameters(int ht, int param_count, ...);
@@ -243,6 +243,8 @@
ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length,
int is_ref, int num_symbol_tables, ...);
+
+END_EXTERN_C()
#define add_method(arg, key, method) add_assoc_function((arg), (key), (method))
Index: zend_list.h
===================================================================
RCS file: /repository/Zend/zend_list.h,v
retrieving revision 1.39
diff -u -r1.39 zend_list.h
--- zend_list.h 2002/01/06 15:21:09 1.39
+++ zend_list.h 2002/01/22 10:37:49
@@ -53,6 +53,7 @@
unsigned char type;
} zend_rsrc_list_dtors_entry;
+BEGIN_EXTERN_C()
#define register_list_destructors(ld, pld) zend_register_list_destructors((void
(*)(void *))ld, (void (*)(void *))pld, module_number);
ZEND_API int zend_register_list_destructors(void (*ld)(void *), void (*pld)(void *),
int module_number);
@@ -84,6 +85,8 @@
ZEND_API int zend_fetch_list_dtor_id(char *type_name);
extern ZEND_API int le_index_ptr; /* list entry type for index pointers */
+
+END_EXTERN_C()
#define ZEND_VERIFY_RESOURCE(rsrc) \
if (!rsrc) { \
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]