phpdbg_prompt.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_01.txt |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Felipe Pena <felipe@php.net> |
  16. | Authors: Joe Watkins <joe.watkins@live.co.uk> |
  17. | Authors: Bob Weinand <bwoebi@php.net> |
  18. +----------------------------------------------------------------------+
  19. */
  20. #ifndef PHPDBG_PROMPT_H
  21. #define PHPDBG_PROMPT_H
  22. /* {{{ */
  23. void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TSRMLS_DC);
  24. void phpdbg_try_file_init(char *init_file, size_t init_file_len, zend_bool free_init TSRMLS_DC);
  25. int phpdbg_interactive(TSRMLS_D);
  26. int phpdbg_compile(TSRMLS_D);
  27. void phpdbg_clean(zend_bool full TSRMLS_DC); /* }}} */
  28. /* {{{ phpdbg command handlers */
  29. PHPDBG_COMMAND(exec);
  30. PHPDBG_COMMAND(step);
  31. PHPDBG_COMMAND(continue);
  32. PHPDBG_COMMAND(run);
  33. PHPDBG_COMMAND(ev);
  34. PHPDBG_COMMAND(until);
  35. PHPDBG_COMMAND(finish);
  36. PHPDBG_COMMAND(leave);
  37. PHPDBG_COMMAND(frame);
  38. PHPDBG_COMMAND(print);
  39. PHPDBG_COMMAND(break);
  40. PHPDBG_COMMAND(back);
  41. PHPDBG_COMMAND(list);
  42. PHPDBG_COMMAND(info);
  43. PHPDBG_COMMAND(clean);
  44. PHPDBG_COMMAND(clear);
  45. PHPDBG_COMMAND(help);
  46. PHPDBG_COMMAND(sh);
  47. PHPDBG_COMMAND(set);
  48. PHPDBG_COMMAND(source);
  49. PHPDBG_COMMAND(export);
  50. PHPDBG_COMMAND(register);
  51. PHPDBG_COMMAND(quit);
  52. PHPDBG_COMMAND(watch); /* }}} */
  53. /* {{{ prompt commands */
  54. extern const phpdbg_command_t phpdbg_prompt_commands[]; /* }}} */
  55. /* {{{ */
  56. #if PHP_VERSION_ID >= 50500
  57. void phpdbg_execute_ex(zend_execute_data *execute_data TSRMLS_DC);
  58. #else
  59. void phpdbg_execute_ex(zend_op_array *op_array TSRMLS_DC);
  60. #endif /* }}} */
  61. #endif /* PHPDBG_PROMPT_H */