Lines Matching refs:cmd
137 void summary_print(phpdbg_command_t const * const cmd) in summary_print() argument
140 spprintf(&summary, 0, "Command: **%s** Alias: **%c** **%s**\n", cmd->name, cmd->alias, cmd->tip); in summary_print()
226 phpdbg_command_t const *cmd; in PHPDBG_COMMAND() local
235 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands); in PHPDBG_COMMAND()
238 summary_print(cmd); in PHPDBG_COMMAND()
239 pretty_print(get_help(cmd->name)); in PHPDBG_COMMAND()
244 for (cmd=phpdbg_prompt_commands; cmd->name; cmd++) { in PHPDBG_COMMAND()
245 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND()
246 summary_print(cmd); in PHPDBG_COMMAND()
257 n = get_command( param->str, param->len, &cmd, phpdbg_help_commands); in PHPDBG_COMMAND()
260 if (cmd->alias == 'a') { /* help aliases executes a canned routine */ in PHPDBG_COMMAND()
261 return cmd->handler(param); in PHPDBG_COMMAND()
263 pretty_print(get_help(cmd->name)); in PHPDBG_COMMAND()