Re: many packages __FUNCTION__ problems
- From: Owen Taylor <otaylor redhat com>
- To: Ali Akcaagac <ali akcaagac stud fh-wilhelmshaven de>
- Cc: desktop-devel-list gnome org
- Subject: Re: many packages __FUNCTION__ problems
- Date: Mon, 28 Jan 2002 17:43:50 -0500 (EST)
Ali Akcaagac <ali akcaagac stud fh-wilhelmshaven de> writes:
> On Mon, 2002-01-28 at 22:24, Owen Taylor wrote:
> > I don't think it is appropriate to put this type of dependencies throughout
> > GNOME. If people use G_STRLOC, then they will get FILE:LINE for non-GCC
> > or GCC >= 3.0, once we deal with the problem in GLib; if they use
> > G_GNUC_FUNCTION or G_GNUC_PRETTY_FUNCTION they will get "".
>
> btw: not to mention that a lot of gnome related code deal with direct
> __FUNCTION__ stuff in their code instead using the glib defined
> ones.
If code deals with __FUNCTION__ directly, it should just be patched in the mode:
sprintf (__FUNCTION__ ": An error occurred);
Goes to:
sprintf ("%s: An error occurred, __FUNCTION__);
No configure checks necessary.
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]