Lines Matching refs:cmd
145 void summary_print(phpdbg_command_t const * const cmd) in summary_print() argument
148 spprintf(&summary, 0, "Command: **%s** Alias: **%c** **%s**\n", cmd->name, cmd->alias, cmd->tip); in summary_print()
234 phpdbg_command_t const *cmd; in PHPDBG_COMMAND() local
243 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands); in PHPDBG_COMMAND()
246 summary_print(cmd); in PHPDBG_COMMAND()
247 pretty_print(get_help(cmd->name)); in PHPDBG_COMMAND()
252 for (cmd=phpdbg_prompt_commands; cmd->name; cmd++) { in PHPDBG_COMMAND()
253 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND()
254 summary_print(cmd); in PHPDBG_COMMAND()
265 n = get_command( param->str, param->len, &cmd, phpdbg_help_commands); in PHPDBG_COMMAND()
268 if (cmd->alias == 'a') { /* help aliases executes a canned routine */ in PHPDBG_COMMAND()
269 return cmd->handler(param); in PHPDBG_COMMAND()
271 pretty_print(get_help(cmd->name)); in PHPDBG_COMMAND()