comparison dmd/dsymbol.c @ 427:f1d37dc5d354

Give errors originating from Dsymbol::error the proper 'Error:' heading.
author Christian Kamm <kamm incasoftware de>
date Tue, 29 Jul 2008 13:48:46 +0200
parents aaade6ded589
children 44f08170f4ef
comparison
equal deleted inserted replaced
426:e763821ab244 427:f1d37dc5d354
462 462
463 if (*p) 463 if (*p)
464 fprintf(stdmsg, "%s: ", p); 464 fprintf(stdmsg, "%s: ", p);
465 mem.free(p); 465 mem.free(p);
466 466
467 fprintf(stdmsg, "Error: ");
467 if (isAnonymous()) 468 if (isAnonymous())
468 fprintf(stdmsg, "%s ", kind()); 469 fprintf(stdmsg, "%s ", kind());
469 else 470 else
470 fprintf(stdmsg, "%s %s ", kind(), toPrettyChars()); 471 fprintf(stdmsg, "%s %s ", kind(), toPrettyChars());
471 472
492 493
493 if (*p) 494 if (*p)
494 fprintf(stdmsg, "%s: ", p); 495 fprintf(stdmsg, "%s: ", p);
495 mem.free(p); 496 mem.free(p);
496 497
498 fprintf(stdmsg, "Error: ");
497 fprintf(stdmsg, "%s %s ", kind(), toPrettyChars()); 499 fprintf(stdmsg, "%s %s ", kind(), toPrettyChars());
498 500
499 va_list ap; 501 va_list ap;
500 va_start(ap, format); 502 va_start(ap, format);
501 vfprintf(stdmsg, format, ap); 503 vfprintf(stdmsg, format, ap);