summaryrefslogtreecommitdiff
path: root/ext/standard/php_incomplete_class.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-06-23 16:58:30 +0000
committerSascha Schumann <sas@php.net>2000-06-23 16:58:30 +0000
commit1702067ac0adf3449e670948e81cab19f7175bc6 (patch)
tree55e6eb7049dffe675a56a8d679622db5000890c2 /ext/standard/php_incomplete_class.h
parent091dc3840d770ed3aaebea63f1af0fae06329fc1 (diff)
downloadphp-git-1702067ac0adf3449e670948e81cab19f7175bc6.tar.gz
API change: Use zval * instead of zval **
Diffstat (limited to 'ext/standard/php_incomplete_class.h')
-rw-r--r--ext/standard/php_incomplete_class.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/standard/php_incomplete_class.h b/ext/standard/php_incomplete_class.h
index b3ebb42f16..cae7d199c5 100644
--- a/ext/standard/php_incomplete_class.h
+++ b/ext/standard/php_incomplete_class.h
@@ -20,6 +20,8 @@
#ifndef PHP_INCOMPLETE_CLASS_H
#define PHP_INCOMPLETE_CLASS_H
+#include "ext/standard/basic_functions.h"
+
#define PHP_IC_ENTRY \
BG(incomplete_class)
@@ -27,13 +29,13 @@
(PHP_IC_ENTRY ? PHP_IC_ENTRY : php_create_incomplete_class(BLS_C))
-#define PHP_SET_CLASS_ATTRIBUTES() \
- if ((*struc)->value.obj.ce == BG(incomplete_class)) { \
+#define PHP_SET_CLASS_ATTRIBUTES(struc) \
+ if ((struc)->value.obj.ce == BG(incomplete_class)) { \
class_name = php_lookup_class_name(struc, &name_len, 1); \
free_class_name = 1; \
} else { \
- class_name = (*struc)->value.obj.ce->name; \
- name_len = (*struc)->value.obj.ce->name_length; \
+ class_name = (struc)->value.obj.ce->name; \
+ name_len = (struc)->value.obj.ce->name_length; \
}
#define PHP_CLEANUP_CLASS_ATTRIBUTES() \
@@ -52,8 +54,8 @@ extern "C" {
zend_class_entry *php_create_incomplete_class(BLS_D);
-char *php_lookup_class_name(zval **object, size_t *nlen, zend_bool del);
-void php_store_class_name(zval **object, const char *name, size_t len);
+char *php_lookup_class_name(zval *object, size_t *nlen, zend_bool del);
+void php_store_class_name(zval *object, const char *name, size_t len);
#ifdef __cplusplus
};