Lines Matching refs:cmd
136 void summary_print(phpdbg_command_t const * const cmd) in summary_print() argument
139 spprintf(&summary, 0, "Command: **%s** Alias: **%c** **%s**\n", cmd->name, cmd->alias, cmd->tip); in summary_print()
225 phpdbg_command_t const *cmd; in PHPDBG_COMMAND() local
234 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands); in PHPDBG_COMMAND()
237 summary_print(cmd); in PHPDBG_COMMAND()
238 pretty_print(get_help(cmd->name)); in PHPDBG_COMMAND()
243 for (cmd=phpdbg_prompt_commands; cmd->name; cmd++) { in PHPDBG_COMMAND()
244 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND()
245 summary_print(cmd); in PHPDBG_COMMAND()
256 n = get_command( param->str, param->len, &cmd, phpdbg_help_commands); in PHPDBG_COMMAND()
259 if (cmd->alias == 'a') { /* help aliases executes a canned routine */ in PHPDBG_COMMAND()
260 return cmd->handler(param); in PHPDBG_COMMAND()
262 pretty_print(get_help(cmd->name)); in PHPDBG_COMMAND()