Skip to content

Commit 569301a

Browse files
Reflection: consistent pointer type declaration spacing
Put the `*` next to the name, rather than the type
1 parent f0bb478 commit 569301a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

ext/reflection/php_reflection.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ static zend_object *reflection_objects_new(zend_class_entry *class_type) /* {{{
292292
/* }}} */
293293

294294
static void _const_string(smart_str *str, const zend_string *name, const zval *value, const char *indent);
295-
static void _function_string(smart_str *str, const zend_function *fptr, const zend_class_entry *scope, const char* indent);
296-
static void _property_string(smart_str *str, const zend_property_info *prop, const zend_string *prop_name, const char* indent);
297-
static void _class_const_string(smart_str *str, const zend_string *name, zend_class_constant *c, const char* indent);
298-
static void _enum_case_string(smart_str *str, const zend_string *name, zend_class_constant *c, const char* indent);
295+
static void _function_string(smart_str *str, const zend_function *fptr, const zend_class_entry *scope, const char *indent);
296+
static void _property_string(smart_str *str, const zend_property_info *prop, const zend_string *prop_name, const char *indent);
297+
static void _class_const_string(smart_str *str, const zend_string *name, zend_class_constant *c, const char *indent);
298+
static void _enum_case_string(smart_str *str, const zend_string *name, zend_class_constant *c, const char *indent);
299299
static void _class_string(smart_str *str, zend_class_entry *ce, zval *obj, const char *indent);
300300
static void _extension_string(smart_str *str, const zend_module_entry *module);
301301
static void _zend_extension_string(smart_str *str, const zend_extension *extension);
@@ -792,7 +792,7 @@ static void _parameter_string(smart_str *str, const zend_function *fptr, const z
792792
/* }}} */
793793

794794
/* {{{ _function_parameter_string */
795-
static void _function_parameter_string(smart_str *str, const zend_function *fptr, const char* indent)
795+
static void _function_parameter_string(smart_str *str, const zend_function *fptr, const char *indent)
796796
{
797797
const zend_arg_info *arg_info = fptr->common.arg_info;
798798
if (!arg_info) {
@@ -818,7 +818,7 @@ static void _function_parameter_string(smart_str *str, const zend_function *fptr
818818
/* }}} */
819819

820820
/* {{{ _function_closure_string */
821-
static void _function_closure_string(smart_str *str, const zend_function *fptr, const char* indent)
821+
static void _function_closure_string(smart_str *str, const zend_function *fptr, const char *indent)
822822
{
823823
if (fptr->type != ZEND_USER_FUNCTION || !fptr->op_array.static_variables) {
824824
return;
@@ -842,7 +842,7 @@ static void _function_closure_string(smart_str *str, const zend_function *fptr,
842842
/* }}} */
843843

844844
/* {{{ _function_string */
845-
static void _function_string(smart_str *str, const zend_function *fptr, const zend_class_entry *scope, const char* indent)
845+
static void _function_string(smart_str *str, const zend_function *fptr, const zend_class_entry *scope, const char *indent)
846846
{
847847
/* TBD: Repair indenting of doc comment (or is this to be done in the parser?)
848848
* What's "wrong" is that any whitespace before the doc comment start is
@@ -969,7 +969,7 @@ static zval *property_get_default(const zend_property_info *prop_info) {
969969
}
970970

971971
/* {{{ _property_string */
972-
static void _property_string(smart_str *str, const zend_property_info *prop, const zend_string *prop_name, const char* indent)
972+
static void _property_string(smart_str *str, const zend_property_info *prop, const zend_string *prop_name, const char *indent)
973973
{
974974
if (!prop) {
975975
// Dynamic property, known to have no doc comment, flags, etc.
@@ -1142,7 +1142,7 @@ static void _extension_string(smart_str *str, const zend_module_entry *module) /
11421142
(module->version == NO_VERSION_YET) ? "<no_version>" : module->version);
11431143

11441144
if (module->deps) {
1145-
const zend_module_dep* dep = module->deps;
1145+
const zend_module_dep *dep = module->deps;
11461146

11471147
smart_str_appends(str, "\n - Dependencies {\n");
11481148

0 commit comments

Comments
 (0)