From fb4e6f5fe0f1424db610b7dd563853a5d9a707ab Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 2 Jan 2021 18:18:58 +0100 Subject: [PATCH] Do a clang-format pass --- src/sp_utils.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/sp_utils.c b/src/sp_utils.c index 85501684..147cc468 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -166,20 +166,19 @@ int sp_log_request(const zend_string* restrict folder, fprintf(file, "FILE: %s:%d\n", current_filename, current_line); - - zend_execute_data *orig_execute_data = EG(current_execute_data); - zend_execute_data *current = EG(current_execute_data); - while (current) { + zend_execute_data* orig_execute_data = EG(current_execute_data); + zend_execute_data* current = EG(current_execute_data); + while (current) { EG(current_execute_data) = current; char* const complete_path_function = get_complete_function_path(current); - if (complete_path_function) { - const int current_line = zend_get_executed_lineno(TSRMLS_C); - fprintf(file, "STACKTRACE: %s:%d\n", complete_path_function, current_line); - } + if (complete_path_function) { + const int current_line = zend_get_executed_lineno(TSRMLS_C); + fprintf(file, "STACKTRACE: %s:%d\n", complete_path_function, + current_line); + } current = current->prev_execute_data; - } - EG(current_execute_data) = orig_execute_data; - + } + EG(current_execute_data) = orig_execute_data; for (size_t i = 0; zones[i].str; i++) { zval* variable_value;