Skip to content

Commit

Permalink
- Move zend_object_value definition to zend_type.h
Browse files Browse the repository at this point in the history
# Types declared there can be used in configure stuff already. zend.h is
# being created by configure...
  • Loading branch information
helly25 committed Dec 20, 2005
1 parent e072c3e commit c80e822
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 0 additions & 8 deletions Zend/zend.h
Expand Up @@ -283,16 +283,8 @@ typedef struct _zend_object {
HashTable *guards; /* protects from __get/__set ... recursion */ HashTable *guards; /* protects from __get/__set ... recursion */
} zend_object; } zend_object;


typedef unsigned int zend_object_handle;
typedef struct _zend_object_value zend_object_value;

#include "zend_object_handlers.h" #include "zend_object_handlers.h"


struct _zend_object_value {
zend_object_handle handle;
zend_object_handlers *handlers;
};

typedef union _zvalue_value { typedef union _zvalue_value {
long lval; /* long value */ long lval; /* long value */
double dval; /* double value */ double dval; /* double value */
Expand Down
5 changes: 3 additions & 2 deletions Zend/zend_object_handlers.h
Expand Up @@ -106,7 +106,7 @@ typedef int (*zend_object_cast_t)(zval *readobj, zval *retval, int type TSRMLS_D
* Returns FAILURE if the object does not have any sense of overloaded dimensions */ * Returns FAILURE if the object does not have any sense of overloaded dimensions */
typedef int (*zend_object_count_elements_t)(zval *object, long *count TSRMLS_DC); typedef int (*zend_object_count_elements_t)(zval *object, long *count TSRMLS_DC);


typedef struct _zend_object_handlers { struct _zend_object_handlers {
/* general object functions */ /* general object functions */
zend_object_add_ref_t add_ref; zend_object_add_ref_t add_ref;
zend_object_del_ref_t del_ref; zend_object_del_ref_t del_ref;
Expand All @@ -132,9 +132,10 @@ typedef struct _zend_object_handlers {
zend_object_compare_t compare_objects; zend_object_compare_t compare_objects;
zend_object_cast_t cast_object; zend_object_cast_t cast_object;
zend_object_count_elements_t count_elements; zend_object_count_elements_t count_elements;
} zend_object_handlers; };


extern ZEND_API zend_object_handlers std_object_handlers; extern ZEND_API zend_object_handlers std_object_handlers;

BEGIN_EXTERN_C() BEGIN_EXTERN_C()
ZEND_API union _zend_function *zend_std_get_static_method(zend_class_entry *ce, char *function_name_strval, int function_name_strlen TSRMLS_DC); ZEND_API union _zend_function *zend_std_get_static_method(zend_class_entry *ce, char *function_name_strval, int function_name_strlen TSRMLS_DC);
ZEND_API zval **zend_std_get_static_property(zend_class_entry *ce, zend_uchar type, void *property_name, int property_name_len, zend_bool silent TSRMLS_DC); ZEND_API zval **zend_std_get_static_property(zend_class_entry *ce, zend_uchar type, void *property_name, int property_name_len, zend_bool silent TSRMLS_DC);
Expand Down
8 changes: 8 additions & 0 deletions Zend/zend_types.h
Expand Up @@ -28,6 +28,14 @@ typedef unsigned int zend_uint;
typedef unsigned long zend_ulong; typedef unsigned long zend_ulong;
typedef unsigned short zend_ushort; typedef unsigned short zend_ushort;


typedef unsigned int zend_object_handle;
typedef struct _zend_object_handlers zend_object_handlers;

typedef struct _zend_object_value {
zend_object_handle handle;
zend_object_handlers *handlers;
} zend_object_value;

#endif /* ZEND_TYPES_H */ #endif /* ZEND_TYPES_H */


/* /*
Expand Down

0 comments on commit c80e822

Please sign in to comment.