This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Formatting of C++ warnings and errors
- To: pthomas at suse dot de (Philipp Thomas)
- Subject: Re: Formatting of C++ warnings and errors
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Fri, 31 Mar 2000 10:47:14 +0200 (CEST)
- Cc: mark at codesourcery dot com, gdr at codesourcery dot com, gcc at gcc dot gnu dot org
Philipp Thomas wrote :
> * Mark Mitchell (mark@codesourcery.com) [20000331 02:58]:
>
> > Code to automatically determine window width (if possible) would be
> > welcome. Because such things are often system-specific, such code would
> > need to be under autoconf control, of course.
>
> OK, I'll see if I can come up with anything suitable, including the
> necessary autoconf machinery. Question is, where the code show go. Most
> probably to where message_length is evaluated, no?
There was a thread about that in the ncurses list some weeks ago.
IIRC, there are three sources for the window width info :
- a resource in the termcap/terminfo description
- the environment variable COLUMNS
- handling of the SIGWINCH signal with the associated struct.
I would not include any of the above in gcc. That's not the job of the compiler
to wrap lines at a specific line-length. Your xterm/terminal/emacs/whatever
will care about that.
Philippe