Emacs & D wiki update
Anders F Björklund
afb at algonet.se
Sat Feb 24 01:33:59 PST 2007
Bill Baxter wrote:
> Note to Walter: *all* error messages should be prefixed with "Error"
> "Warning" or "Remark" if you want emacs to grok them out of the box.
> Currently it's hit-or-miss. Some of them are, some of them aren't.
Another note: For GCC, all error messages should be printed on stderr
(not stdout) since otherwise they get sent to the assembler instead of
the log. This is fixed in GDC, but would be nice to have in DMD too ?
va_start(ap, format);
- printf("Error: ");
- vprintf(format, ap);
+ fprintf(stderr, "Error: ");
+ vfprintf(stderr, format, ap);
va_end( ap );
- printf("\n");
- fflush(stdout);
+ fprintf(stderr, "\n");
+ fflush(stderr);
I'm not sure if this was left as stdout because stderr doesn't *work* on
Win 9x or because stderr isn't used on Windows ? If it's just not used,
this should still be fixed since printing errors to stdout is wrong...
--anders
More information about the Digitalmars-d-announce
mailing list