Lines Matching refs:cmd
143 void summary_print(phpdbg_command_t const * const cmd) in summary_print() argument
146 spprintf(&summary, 0, "Command: **%s** Alias: **%c** **%s**\n", cmd->name, cmd->alias, cmd->tip); in summary_print()
232 phpdbg_command_t const *cmd; in PHPDBG_COMMAND() local
241 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands); in PHPDBG_COMMAND()
244 summary_print(cmd); in PHPDBG_COMMAND()
245 pretty_print(get_help(cmd->name)); in PHPDBG_COMMAND()
250 for (cmd=phpdbg_prompt_commands; cmd->name; cmd++) { in PHPDBG_COMMAND()
251 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND()
252 summary_print(cmd); in PHPDBG_COMMAND()
263 n = get_command( param->str, param->len, &cmd, phpdbg_help_commands); in PHPDBG_COMMAND()
266 if (cmd->alias == 'a') { /* help aliases executes a canned routine */ in PHPDBG_COMMAND()
267 return cmd->handler(param); in PHPDBG_COMMAND()
269 pretty_print(get_help(cmd->name)); in PHPDBG_COMMAND()