diff options
Diffstat (limited to 'gcc/diagnostic-url.h')
-rw-r--r-- | gcc/diagnostic-url.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gcc/diagnostic-url.h b/gcc/diagnostic-url.h index 6be0569..d28460b 100644 --- a/gcc/diagnostic-url.h +++ b/gcc/diagnostic-url.h @@ -31,6 +31,22 @@ typedef enum DIAGNOSTICS_URL_AUTO = 2 } diagnostic_url_rule_t; -extern bool diagnostic_urls_enabled_p (diagnostic_url_rule_t); +/* Tells whether URLs should be emitted, and, if so, how to + terminate strings within the escape sequence. */ +enum diagnostic_url_format +{ + /* No URLs shall be emitted. */ + URL_FORMAT_NONE, + + /* Use ST string termination. */ + URL_FORMAT_ST, + + /* Use BEL string termination. */ + URL_FORMAT_BEL +}; + +const diagnostic_url_format URL_FORMAT_DEFAULT = URL_FORMAT_BEL; + +extern diagnostic_url_format determine_url_format (diagnostic_url_rule_t); #endif /* ! GCC_DIAGNOSTIC_URL_H */ |