This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Ping: [RFA:] .error "msg" and .warning "msg" directives.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 15 Nov 2004 14:18:49 +1030
- Subject: Re: Ping: [RFA:] .error "msg" and .warning "msg" directives.
- References: <200411121043.iACAhbEu013681@ignucius.se.axis.com>
On Fri, Nov 12, 2004 at 11:43:37AM +0100, Hans-Peter Nilsson wrote:
> Ping: <URL:http://sourceware.org/ml/binutils/2004-11/msg00064.html>.
> + char *msg = err
> + ? _(".error directive invoked in source file")
> + : _(".warning directive invoked in source file");
No need to internationalize the directive (and parens needed before
err for proper formatting).
char *msg = _("%s directive invoked in source file");
.
.
if (err)
as_bad (msg, ".error");
else
as_warn (msg, ".warning");
OK with that change.
--
Alan Modra
IBM OzLabs - Linux Technology Centre