phpdbg_help.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Felipe Pena <felipe@php.net> |
  14. | Authors: Joe Watkins <joe.watkins@live.co.uk> |
  15. | Authors: Bob Weinand <bwoebi@php.net> |
  16. +----------------------------------------------------------------------+
  17. */
  18. #ifndef PHPDBG_HELP_H
  19. #define PHPDBG_HELP_H
  20. #include "TSRM.h"
  21. #include "phpdbg.h"
  22. #include "phpdbg_cmd.h"
  23. #define PHPDBG_HELP(name) PHPDBG_COMMAND(help_##name)
  24. /**
  25. * Helper Forward Declarations
  26. */
  27. PHPDBG_HELP(aliases);
  28. extern const phpdbg_command_t phpdbg_help_commands[];
  29. #define phpdbg_help_header() \
  30. phpdbg_notice("version", "version=\"%s\"", "Welcome to phpdbg, the interactive PHP debugger, v%s", PHPDBG_VERSION);
  31. #define phpdbg_help_footer() \
  32. phpdbg_notice("issues", "url=\"%s\"", "Please report bugs to <%s>", PHPDBG_ISSUES);
  33. typedef struct _phpdbg_help_text_t {
  34. char *key;
  35. char *text;
  36. } phpdbg_help_text_t;
  37. extern phpdbg_help_text_t phpdbg_help_text[];
  38. extern void phpdbg_do_help_cmd(char *type);
  39. #endif /* PHPDBG_HELP_H */