Lines Matching refs:cmd
139 void summary_print(phpdbg_command_t const * const cmd TSRMLS_DC) in summary_print()
142 spprintf(&summary, 0, "Command: **%s** Alias: **%c** **%s**\n", cmd->name, cmd->alias, cmd->tip); in summary_print()
208 phpdbg_command_t const *cmd; in PHPDBG_COMMAND() local
217 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands TSRMLS_CC); in PHPDBG_COMMAND()
220 summary_print(cmd TSRMLS_CC); in PHPDBG_COMMAND()
221 pretty_print(get_help(cmd->name TSRMLS_CC) TSRMLS_CC); in PHPDBG_COMMAND()
226 for (cmd=phpdbg_prompt_commands; cmd->name; cmd++) { in PHPDBG_COMMAND()
227 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND()
228 summary_print(cmd TSRMLS_CC); in PHPDBG_COMMAND()
239 n = get_command( param->str, param->len, &cmd, phpdbg_help_commands TSRMLS_CC); in PHPDBG_COMMAND()
242 if (cmd->alias == 'a') { /* help aliases executes a canned routine */ in PHPDBG_COMMAND()
243 return cmd->handler(param TSRMLS_CC); in PHPDBG_COMMAND()
245 pretty_print(get_help(cmd->name TSRMLS_CC) TSRMLS_CC); in PHPDBG_COMMAND()