summaryrefslogtreecommitdiff
path: root/sapi/cli
diff options
context:
space:
mode:
authorMax Semenik <maxsem.wiki@gmail.com>2020-07-01 16:32:55 +0300
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-07-06 21:13:34 +0200
commit2b5de6f839feea0ae1d5289d59dd7f159fcdcc8c (patch)
treef23a5c00a96f30a62ddcf626b4c6a6d53809d14f /sapi/cli
parent47579986504022d3eab38e24fff5861d5e4eadad (diff)
downloadphp-git-2b5de6f839feea0ae1d5289d59dd7f159fcdcc8c.tar.gz
Remove proto comments from C files
Closes GH-5758
Diffstat (limited to 'sapi/cli')
-rw-r--r--sapi/cli/php_cli.c12
-rw-r--r--sapi/cli/php_cli_process_title.c6
-rw-r--r--sapi/cli/php_cli_server.c6
3 files changed, 8 insertions, 16 deletions
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 */