From 0971ff99cbe8e083c3b1b5bab25924a93cda171d Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Fri, 27 Apr 2001 18:51:56 +0000 Subject: [PATCH] - Whitespace changes to be standard like the rest of Zend --- Zend/zend.h | 2 +- Zend/zend_alloc.c | 2 +- Zend/zend_builtin_functions.c | 4 ++-- Zend/zend_execute_API.c | 2 +- Zend/zend_extensions.c | 2 +- Zend/zend_language_scanner.l | 6 +++--- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Zend/zend.h b/Zend/zend.h index 9e5c6d94903..4c946662020 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -433,7 +433,7 @@ ZEND_API int zend_get_configuration_directive(char *name, uint name_length, zval refcount = (*ppzv_dest)->refcount; \ zval_dtor(*ppzv_dest); \ **ppzv_dest = *pzv_src; \ - if(copy) { \ + if (copy) { \ zval_copy_ctor(*ppzv_dest); \ } \ (*ppzv_dest)->is_ref = is_ref; \ diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 8aada64e603..fc2a3098a40 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -482,7 +482,7 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache) } } - if(clean_cache) { + if (clean_cache) { for (i=1; ivalue.str.val, (*var)->value.str.len); c.name_len = (*var)->value.str.len+1; - if(zend_register_constant(&c ELS_CC) == SUCCESS) { + if (zend_register_constant(&c ELS_CC) == SUCCESS) { RETURN_TRUE; } else { RETURN_FALSE; @@ -627,7 +627,7 @@ ZEND_FUNCTION(method_exists) convert_to_string_ex(method_name); lcname = estrndup((*method_name)->value.str.val, (*method_name)->value.str.len); zend_str_tolower(lcname, (*method_name)->value.str.len); - if(zend_hash_exists(&(*klass)->value.obj.ce->function_table, lcname, (*method_name)->value.str.len+1)) { + if (zend_hash_exists(&(*klass)->value.obj.ce->function_table, lcname, (*method_name)->value.str.len+1)) { efree(lcname); RETURN_TRUE; } else { diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 85a2a12e92a..5a71c660c1c 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -644,7 +644,7 @@ static unsigned __stdcall timeout_thread_proc(void *pArgs) wc.hbrBackground=(HBRUSH)(COLOR_BACKGROUND + 5); wc.lpszMenuName=NULL; wc.lpszClassName = "Zend Timeout Window"; - if(!RegisterClass(&wc)) { + if (!RegisterClass(&wc)) { return -1; } timeout_window = CreateWindow(wc.lpszClassName, wc.lpszClassName, 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, NULL, NULL); diff --git a/Zend/zend_extensions.c b/Zend/zend_extensions.c index b5c0ee36547..790490fa00e 100644 --- a/Zend/zend_extensions.c +++ b/Zend/zend_extensions.c @@ -49,7 +49,7 @@ int zend_load_extension(char *path) /* allow extension to proclaim compatibility with any Zend version */ - if(extension_version_info->zend_extension_api_no != ZEND_EXTENSION_API_NO &&(!new_extension->api_no_check || new_extension->api_no_check(ZEND_EXTENSION_API_NO) != SUCCESS)) { + if (extension_version_info->zend_extension_api_no != ZEND_EXTENSION_API_NO &&(!new_extension->api_no_check || new_extension->api_no_check(ZEND_EXTENSION_API_NO) != SUCCESS)) { if (extension_version_info->zend_extension_api_no > ZEND_EXTENSION_API_NO) { fprintf(stderr, "%s requires Zend Engine API version %d\n" "The installed Zend Engine API version is %d\n\n", diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index 6ce2a1a1ebb..e7601599772 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -304,7 +304,7 @@ ZEND_API int open_file_for_scanning(zend_file_handle *file_handle CLS_DC) CG(ZFL)->switch_streams(file_handle->handle.is, &cout); #endif - if(file_handle->opened_path) { + if (file_handle->opened_path) { file_path = file_handle->opened_path; } else { file_path = file_handle->filename; @@ -1011,7 +1011,7 @@ ANY_CHAR (.|[\n]) zendlval->value.lval = LONG_MAX; /* maximal long */ zend_error(E_NOTICE,"Hex number is too big: %s",yytext); } else { - if(zendlval->value.lval < 0) { + if (zendlval->value.lval < 0) { /* maintain consistency with the old way */ zendlval->value.dval = (unsigned long) zendlval->value.lval; zendlval->type = IS_DOUBLE; @@ -1188,7 +1188,7 @@ ANY_CHAR (.|[\n]) } "?>"|"%>" { - if(CG(asp_tags) || yytext[yyleng-2] != '%') { /* asp comment? */ + if (CG(asp_tags) || yytext[yyleng-2] != '%') { /* asp comment? */ zendlval->value.str.val = yytext; /* no copying - intentional */ zendlval->value.str.len = yyleng; zendlval->type = IS_STRING;