From 2b5de6f839feea0ae1d5289d59dd7f159fcdcc8c Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Wed, 1 Jul 2020 16:32:55 +0300 Subject: Remove proto comments from C files Closes GH-5758 --- sapi/cli/php_cli.c | 12 ++++-------- sapi/cli/php_cli_process_title.c | 6 ++---- sapi/cli/php_cli_server.c | 6 ++---- 3 files changed, 8 insertions(+), 16 deletions(-) (limited to 'sapi/cli') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index dfda90fb8e..9972b0f7a7 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -423,8 +423,7 @@ static void sapi_cli_ini_defaults(HashTable *configuration_hash) } /* }}} */ -/* {{{ sapi_module_struct cli_sapi_module - */ +/* {{{ sapi_module_struct cli_sapi_module */ static sapi_module_struct cli_sapi_module = { "cli", /* name */ "Command Line Interface", /* pretty name */ @@ -471,8 +470,7 @@ static const zend_function_entry additional_functions[] = { PHP_FE_END }; -/* {{{ php_cli_usage - */ +/* {{{ php_cli_usage */ static void php_cli_usage(char *argv0) { char *prog; @@ -581,8 +579,7 @@ static void cli_register_file_handles(void) /* {{{ */ static const char *param_mode_conflict = "Either execute direct code, process stdin or use a file.\n"; -/* {{{ cli_seek_file_begin - */ +/* {{{ cli_seek_file_begin */ static int cli_seek_file_begin(zend_file_handle *file_handle, char *script_file) { FILE *fp = VCWD_FOPEN(script_file, "rb"); @@ -1141,8 +1138,7 @@ err: } /* }}} */ -/* {{{ main - */ +/* {{{ main */ #ifdef PHP_CLI_WIN32_NO_CONSOLE int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) #else diff --git a/sapi/cli/php_cli_process_title.c b/sapi/cli/php_cli_process_title.c index 4437fdd46b..bd4eea59cd 100644 --- a/sapi/cli/php_cli_process_title.c +++ b/sapi/cli/php_cli_process_title.c @@ -22,8 +22,7 @@ #include "php_cli_process_title.h" #include "ps_title.h" -/* {{{ proto bool cli_set_process_title(string arg) - Return a boolean to confirm if the process title was successfully changed or not */ +/* {{{ Return a boolean to confirm if the process title was successfully changed or not */ PHP_FUNCTION(cli_set_process_title) { char *title = NULL; @@ -44,8 +43,7 @@ PHP_FUNCTION(cli_set_process_title) } /* }}} */ -/* {{{ proto string cli_get_process_title() - Return a string with the current process title. NULL if error. */ +/* {{{ Return a string with the current process title. NULL if error. */ PHP_FUNCTION(cli_get_process_title) { int length = 0; diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index ec658eb738..59929f21c9 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -436,8 +436,7 @@ PHP_FUNCTION(apache_response_headers) /* {{{ */ } /* }}} */ -/* {{{ cli_server module - */ +/* {{{ cli_server module */ static void cli_server_init_globals(zend_cli_server_globals *cg) { @@ -782,8 +781,7 @@ static void sapi_cli_server_log_message(const char *msg, int syslog_type_int) /* sapi_cli_server_log_write(PHP_CLI_SERVER_LOG_MESSAGE, msg); } /* }}} */ -/* {{{ sapi_module_struct cli_server_sapi_module - */ +/* {{{ sapi_module_struct cli_server_sapi_module */ sapi_module_struct cli_server_sapi_module = { "cli-server", /* name */ "Built-in HTTP server", /* pretty name */ -- cgit v1.2.1