您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

53 行
1.5KB

  1. /* Copyright (C) 2019-2020 Free Software Foundation, Inc.
  2. Contributed by David Malcolm <dmalcolm@redhat.com>.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_DIAGNOSTIC_URL_H
  16. #define GCC_DIAGNOSTIC_URL_H
  17. /* Whether to add URLs to diagnostics:
  18. - DIAGNOSTICS_URL_NO: never
  19. - DIAGNOSTICS_URL_YES: always
  20. - DIAGNOSTICS_URL_AUTO: depending on the output stream. */
  21. typedef enum
  22. {
  23. DIAGNOSTICS_URL_NO = 0,
  24. DIAGNOSTICS_URL_YES = 1,
  25. DIAGNOSTICS_URL_AUTO = 2
  26. } diagnostic_url_rule_t;
  27. /* Tells whether URLs should be emitted, and, if so, how to
  28. terminate strings within the escape sequence. */
  29. enum diagnostic_url_format
  30. {
  31. /* No URLs shall be emitted. */
  32. URL_FORMAT_NONE,
  33. /* Use ST string termination. */
  34. URL_FORMAT_ST,
  35. /* Use BEL string termination. */
  36. URL_FORMAT_BEL
  37. };
  38. const diagnostic_url_format URL_FORMAT_DEFAULT = URL_FORMAT_BEL;
  39. extern diagnostic_url_format determine_url_format (diagnostic_url_rule_t);
  40. #endif /* ! GCC_DIAGNOSTIC_URL_H */