diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-11 08:20:24 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-11 08:20:24 +0000 |
commit | de96a0631877cebe1a60d8f0864b1d460dd063a7 (patch) | |
tree | e31e886ed230649c1e858eb51f469565c87e1754 /gcc/diagnostic.h | |
parent | 5d95297a45e3dd0d3cdc83bc7a2bdf2d137c0e9a (diff) | |
download | gcc-de96a0631877cebe1a60d8f0864b1d460dd063a7.tar.gz |
2014-12-11 Tobias Burnus <burnus@net-b.de>
Manuel López-Ibáñez <manu@gcc.gnu.org>
gcc/
* diagnostic.c (get_terminal_width): Renamed from
* getenv_columns,
removed static, and additionally use ioctl to get width.
(diagnostic_set_caret_max_width): Update call.
* diagnostic.h (get_terminal_width): Add prototype.
* opts.c (print_specific_help): Use it for x_help_columns.
* doc/invoke.texi (fdiagnostics-show-caret): Document how the
width is set.
gcc/fortran/
* error.c (gfc_get_terminal_width): Renamed from
get_terminal_width and use same-named common function.
(gfc_error_init_1): Update call.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218619 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 3c4906a31f5..0c65deb947f 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -297,6 +297,8 @@ void diagnostic_set_caret_max_width (diagnostic_context *context, int value); void diagnostic_file_cache_fini (void); +int get_terminal_width (void); + /* Expand the location of this diagnostic. Use this function for consistency. */ static inline expanded_location |