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
- Subject: Re: Formatting of C++ warnings and errors
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 30 Mar 2000 17:05:51 -0800
- Cc: nathan at codesourcery dot com, gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <20000331002511.C11710@Jeffreys.suse.de>
>>>>> "Philipp" == Philipp Thomas <pthomas@suse.de> writes:
Philipp> Nathan,
Philipp> if I remember correctly, it was you that changed the
Philipp> formatting of warning/error messages in g++. If yes, is
Philipp> there a way to make g++ check the current line length,
Philipp> e.g. by doing getenv("COLUMNS")? As my framebuffer
Philipp> console is 160x64, the messages look a bit funny as
Philipp> they're wrapped at 80 columns.
There is already a command-line switch (-fmessage-length). Unless
absolutely necessary, I think that's better than an environment
variable. 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.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com