cvs: ZendEngine2 / zend_reflection_api.c
| From: | Marcus Boerger | Date: | Thu, 10 Jun 2004 12:11:16 +0000 |
| Subject: | cvs: ZendEngine2 / zend_reflection_api.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2688@lists.php.net to get a copy of this message | ||
helly Thu Jun 10 08:11:16 2004 EDT
Modified files:
/ZendEngine2 zend_reflection_api.c
Log:
Small code layout change
http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.108&r2=1.109&ty=u
Index: ZendEngine2/zend_reflection_api.c
diff -u ZendEngine2/zend_reflection_api.c:1.108 ZendEngine2/zend_reflection_api.c:1.109
--- ZendEngine2/zend_reflection_api.c:1.108 Thu Jun 10 07:28:29 2004
+++ ZendEngine2/zend_reflection_api.c Thu Jun 10 08:11:16 2004
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_reflection_api.c,v 1.108 2004/06/10 11:28:29 helly Exp $ */
+/* $Id: zend_reflection_api.c,v 1.109 2004/06/10 12:11:16 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
#include "zend_exceptions.h"
@@ -243,6 +243,7 @@
return object;
}
+static void _const_string(string *str, char *name, zval *value, char *indent TSRMLS_DC);
static void _function_string(string *str, zend_function *fptr, char *indent TSRMLS_DC);
static void _property_string(string *str, zend_property_info *prop, char *prop_name, char* indent
TSRMLS_DC);
static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *indent TSRMLS_DC);
@@ -324,11 +325,8 @@
while (zend_hash_get_current_data_ex(&ce->constants_table, (void **) &value,
&pos) == SUCCESS) {
zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len,
&num_index, 0, &pos);
-
- string_printf(str, "%s Constant [ %s %s ] { }\n",
- indent,
- zend_zval_type_name(*value),
- key);
+
+ _const_string(str, key, *value, indent TSRMLS_CC);
zend_hash_move_forward_ex(&ce->constants_table, &pos);
}
}
@@ -489,6 +487,16 @@
string_printf(str, "%s}\n", indent);
string_free(&sub_indent);
+}
+/* }}} */
+
+/* {{{ _const_string */
+static void _const_string(string *str, char *name, zval *value, char *indent TSRMLS_DC)
+{
+ string_printf(str, "%s Constant [ %s %s ] { }\n",
+ indent,
+ zend_zval_type_name(value),
+ name);
}
/* }}} */