summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-06-04 11:44:02 +0000
committerZeev Suraski <zeev@php.net>1999-06-04 11:44:02 +0000
commit9108abc28722d7e9c779b37520c280f967059979 (patch)
treef39ff947e1e4638d8760b304225f8b1f8b377330 /Zend/zend.c
parent3cad348509b66828f421d1b843a025b555519a83 (diff)
downloadphp-git-9108abc28722d7e9c779b37520c280f967059979.tar.gz
Minor updates (mostly __declspec() stuff)
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 0ede40804b..7e5cd91775 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -32,7 +32,7 @@
#endif
/* true multithread-shared globals */
-zend_class_entry standard_class;
+ZEND_API zend_class_entry zend_standard_class_def;
ZEND_API int (*zend_printf)(const char *format, ...);
ZEND_API int (*zend_write)(const char *str, uint str_length);
ZEND_API void (*zend_error)(int type, const char *format, ...);
@@ -161,18 +161,18 @@ static FILE *zend_fopen_wrapper(const char *filename)
static void register_standard_class()
{
- standard_class.type = ZEND_INTERNAL_CLASS;
- standard_class.name_length = sizeof("stdClass") - 1;
- standard_class.name = zend_strndup("stdClass", standard_class.name_length);
- standard_class.parent = NULL;
- zend_hash_init(&standard_class.default_properties, 0, NULL, PVAL_PTR_DTOR, 1);
- zend_hash_init(&standard_class.function_table, 0, NULL, (void (*)(void *)) destroy_zend_function, 1);
- standard_class.handle_function_call = NULL;
- standard_class.handle_property_get = NULL;
- standard_class.handle_property_set = NULL;
- standard_class.refcount = (int *) malloc(sizeof(int));
- *standard_class.refcount = 1;
- zend_hash_add(GLOBAL_CLASS_TABLE, "stdClass", sizeof("stdClass"), &standard_class, sizeof(zend_class_entry), NULL);
+ zend_standard_class_def.type = ZEND_INTERNAL_CLASS;
+ zend_standard_class_def.name_length = sizeof("stdClass") - 1;
+ zend_standard_class_def.name = zend_strndup("stdClass", zend_standard_class_def.name_length);
+ zend_standard_class_def.parent = NULL;
+ zend_hash_init(&zend_standard_class_def.default_properties, 0, NULL, PVAL_PTR_DTOR, 1);
+ zend_hash_init(&zend_standard_class_def.function_table, 0, NULL, (void (*)(void *)) destroy_zend_function, 1);
+ zend_standard_class_def.handle_function_call = NULL;
+ zend_standard_class_def.handle_property_get = NULL;
+ zend_standard_class_def.handle_property_set = NULL;
+ zend_standard_class_def.refcount = (int *) malloc(sizeof(int));
+ *zend_standard_class_def.refcount = 1;
+ zend_hash_add(GLOBAL_CLASS_TABLE, "stdClass", sizeof("stdClass"), &zend_standard_class_def, sizeof(zend_class_entry), NULL);
}