cvs: ZendEngine2 / zend_reflection_api.c

From: Date: Sun, 31 Aug 2003 15:30:14 +0000
Subject: cvs: ZendEngine2 / zend_reflection_api.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1770@lists.php.net to get a copy of this message
helly Sun Aug 31 11:30:14 2003 EDT Modified files: /ZendEngine2 zend_reflection_api.c Log: Beautify output Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.43 ZendEngine2/zend_reflection_api.c:1.44 --- ZendEngine2/zend_reflection_api.c:1.43 Sun Aug 31 11:06:54 2003 +++ ZendEngine2/zend_reflection_api.c Sun Aug 31 11:30:13 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.43 2003/08/31 15:06:54 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.44 2003/08/31 15:30:13 helly Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_default_classes.h" @@ -301,7 +301,7 @@ string_printf(str, "\n"); count = zend_hash_num_elements(&ce->function_table); - string_printf(str, "%s - Methods [%d] {\n", indent, count); + string_printf(str, "%s - Methods [%d] {", indent, count); if (count > 0) { HashPosition pos; zend_function *mptr; @@ -309,12 +309,13 @@ zend_hash_internal_pointer_reset_ex(&ce->function_table, &pos); while (zend_hash_get_current_data_ex(&ce->function_table, (void **) &mptr, &pos) == SUCCESS) { + string_printf(str, "\n"); _function_string(str, mptr, " " TSRMLS_CC); zend_hash_move_forward_ex(&ce->function_table, &pos); - string_printf(str, "\n"); } + } else { + string_printf(str, "\n"); } - string_printf(str, "\n"); string_printf(str, " }\n"); } @@ -350,9 +351,10 @@ return; } - string_printf(str, "%sParameters [%d] {\n", indent, fptr->common.num_args); + string_printf(str, "\n"); + string_printf(str, "%s- Parameters [%d] {\n", indent, fptr->common.num_args); for (i = 0; i < fptr->common.num_args; i++) { - string_printf(str, "%s - ", indent); + string_printf(str, "%s ", indent); _parameter_string(str, arg_info, i, indent TSRMLS_CC); string_write(str, "\n", sizeof("\n")-1); arg_info++;

« previous php.zend-engine.cvs (#1770) next »