This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]