www.digitalmars.com         C & C++   DMDScript  

c++.command-line - Suggestion: Error message output format

reply "Robert M. Münch" <robert.muench robertmuench.de> writes:
Hi, below you see two error messages:


sc -c  frame
      compat = id3_compat_lookup(id, 3);
                                      ^
frame.c(255) : Error: need explicit cast for function parameter 1 to get
from: unsigned char const *
to  : char const *
      compat = id3_compat_lookup(id, 4);
                                      ^
frame.c(271) : Error: need explicit cast for function parameter 1 to get
from: unsigned char const *
to  : char const *
                                                           ^

IMO the newlines could be altered to get a better overview. How about this:

sc -c  frame
frame.c(255) : Error: need explicit cast for function parameter 1 to get
from: unsigned char const *
to  : char const *
      compat = id3_compat_lookup(id, 3);
                                      ^
frame.c(271) : Error: need explicit cast for function parameter 1 to get
from: unsigned char const *
to  : char const *
      compat = id3_compat_lookup(id, 4);
                                      ^

To me this reads more natural...

--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax   : +49 (0)721 8408 9112
Web   : http://www.robertmuench.de
Jan 01 2002
parent "Robert M. Münch" <robert.muench robertmuench.de> writes:
"Robert M. Münch" <robert.muench robertmuench.de> schrieb im Newsbeitrag
news:a0sg3k$bdi$1 digitaldaemon.com...

Followup... now it seem to me that the format I suggested is being used if I
catch the error messages inside an editor... Robert
Jan 01 2002