Formatting of C++ warnings and errors

Philippe De Muyter phdm@macqel.be
Fri Mar 31 00:48:00 GMT 2000


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


More information about the Gcc mailing list