php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
phpdbg_help.c File Reference
#include "phpdbg.h"
#include "phpdbg_help.h"
#include "phpdbg_prompt.h"
#include "zend.h"

Go to the source code of this file.

Macros

#define PHPDBG_COMMAND_HELP_D(name, tip, alias, action)
 
#define CR   "\n"
 

Functions

void summary_print (phpdbg_command_t const *const cmd)
 
void phpdbg_do_help_cmd (const char *type)
 
 if (!param||param->type==EMPTY_PARAM)
 
 if (param &&param->type==STR_PARAM)
 
 phpdbg_writeln ("Below are the aliased, short versions of all supported commands")
 
 for (c=phpdbg_prompt_commands;c->name;c++)
 
 get_command ("h", 1, &c, phpdbg_prompt_commands)
 
 phpdbg_writeln (" %c %-20s %s\n", c->alias, c->name, c->tip)
 
 for (c_sub=c->subs;c_sub->alias;c_sub++)
 
 pretty_print (get_help("aliases!"))
 

Variables

const phpdbg_command_t phpdbg_help_commands []
 
int n
 
return FAILURE
 
int len
 
return SUCCESS
 
const phpdbg_help_text_t phpdbg_help_text []
 

Macro Definition Documentation

◆ CR

#define CR   "\n"

Definition at line 330 of file phpdbg_help.c.

◆ PHPDBG_COMMAND_HELP_D

#define PHPDBG_COMMAND_HELP_D ( name,
tip,
alias,
action )
Value:
{PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, action, &phpdbg_prompt_commands[16], 0, NULL, (bool) 0}
#define NULL
Definition gdcache.h:45
#define PHPDBG_STRL(s)
Definition phpdbg_cmd.h:104
const phpdbg_command_t phpdbg_prompt_commands[]
zend_string * name

Definition at line 28 of file phpdbg_help.c.

Function Documentation

◆ for() [1/2]

for ( c = phpdbg_prompt_commands; c->name; c++)

Definition at line 283 of file phpdbg_help.c.

◆ for() [2/2]

for ( c_sub = c->subs; c_sub->alias; c_sub++)

Definition at line 303 of file phpdbg_help.c.

◆ get_command()

get_command ( "h" ,
1 ,
& c,
phpdbg_prompt_commands  )

◆ if() [1/2]

if ( !param||param-> type = EMPTY_PARAM)

Definition at line 228 of file phpdbg_help.c.

◆ if() [2/2]

if ( param &&param-> type = STR_PARAM)

Definition at line 233 of file phpdbg_help.c.

◆ phpdbg_do_help_cmd()

void phpdbg_do_help_cmd ( const char * type)

Definition at line 203 of file phpdbg_help.c.

◆ phpdbg_writeln() [1/2]

phpdbg_writeln ( " %c %-20s %s\n" ,
c-> alias,
c-> name,
c-> tip )

◆ phpdbg_writeln() [2/2]

phpdbg_writeln ( "Below are the aliased,
short versions of all supported commands"  )

◆ pretty_print()

pretty_print ( get_help("aliases!") )

◆ summary_print()

void summary_print ( phpdbg_command_t const *const cmd)

Definition at line 136 of file phpdbg_help.c.

Variable Documentation

◆ FAILURE

return FAILURE

Definition at line 271 of file phpdbg_help.c.

◆ len

len
Initial value:
{
const phpdbg_command_t *c, *c_sub
struct _phpdbg_command_t phpdbg_command_t
Definition phpdbg_cmd.h:88

Definition at line 278 of file phpdbg_help.c.

◆ n

int n
Initial value:
{
phpdbg_command_t const *cmd

Definition at line 226 of file phpdbg_help.c.

◆ phpdbg_help_commands

const phpdbg_command_t phpdbg_help_commands[]
Initial value:
= {
PHPDBG_COMMAND_HELP_D(aliases, "show alias list", 'a', phpdbg_do_help_aliases),
PHPDBG_COMMAND_HELP_D(options, "command line options", 0, NULL),
PHPDBG_COMMAND_HELP_D(overview, "help overview", 0, NULL),
PHPDBG_COMMAND_HELP_D(phpdbginit, "phpdbginit file format", 0, NULL),
PHPDBG_COMMAND_HELP_D(syntax, "syntax overview", 0, NULL),
}
PHP_JSON_API size_t int options
Definition php_json.h:102
#define PHPDBG_END_COMMAND
Definition phpdbg_cmd.h:171
#define PHPDBG_COMMAND_HELP_D(name, tip, alias, action)
Definition phpdbg_help.c:28

Definition at line 31 of file phpdbg_help.c.

◆ phpdbg_help_text

const phpdbg_help_text_t phpdbg_help_text[]

Definition at line 331 of file phpdbg_help.c.

◆ SUCCESS

return SUCCESS

Definition at line 311 of file phpdbg_help.c.