[RFC] diagnostics.c: For terminals, restrict messages to terminal width?
Dodji Seketeli
dodji@redhat.com
Thu Dec 11 08:12:00 GMT 2014
Tobias Burnus <burnus@net-b.de> writes:
> 2014-12-06 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.
The diagnostics infrastructure changes are OK for me. Thanks!
Cheers,
--
Dodji
More information about the Fortran
mailing list