Re: g_warning/g_error/g_message
- From: Manish Singh <yosh gimp org>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: g_warning/g_error/g_message
- Date: Thu, 29 Mar 2001 12:04:24 -0800
On Thu, Mar 29, 2001 at 02:51:04PM -0500, Owen Taylor wrote:
>
> Dan Winship <danw ximian com> writes:
>
> > If you're using a non-GNU, non-C9X compiler, g_warning, g_error, and
> > g_message get defined as static functions in every single file that
> > #includes glib.h. Bug? (They used to be "static inline" but that got
> > changed a while back because apparently it broke something.)
>
> ===
> Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh gimp org>
>
> * glib.h: don't use inline for !__GNUC__ case with g_warning,
> g_error, and g_message wrappers since some compilers throw
> away arguments in this case
> ===
>
> I don't think I was in on the discussion of this, and it doesn't
> seem to be archived on any of the GTK+ mailing lists, so
> I don't know the details.
>
> But inline isn't a standard C thing anyways.
And using inline and varargs gave undefined behavior on the SGI Mipspro
compiler I was using at the time. The function did not retrieve all the
arguments passed to it properly.
-Yosh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]