This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: error ("") and -Wprintf
- From: Keith Seitz <keiths at redhat dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: <insight at sources dot redhat dot com>
- Date: Mon, 15 Apr 2002 09:36:23 -0700 (PDT)
- Subject: Re: error ("") and -Wprintf
On Sun, 14 Apr 2002, Andrew Cagney wrote:
> #ifdef _WIN32
> MessageBox (NULL, msg, NULL, MB_OK | MB_ICONERROR | MB_TASKMODAL);
> #else
> fprintf (stderr,msg);
> #endif
>
> error ("");
> }
> }
> I'm not sure what the code should be doing. But perhaphs
> throw_exception() should be called?
That's pretty funny. I don't see why we just didn't use "error (msg);" to
begin with. So what if we get it twice on windows (but only if invoked via
a shell).
In any case, now that throw_exception is here, I don't see why we
couldn't/wouldn't use that. (And you don't either.:-)
Keith