Re: GNOME CVS: glib wilhelmi
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list gnome org
- Subject: Re: GNOME CVS: glib wilhelmi
- Date: 02 Nov 2000 14:23:40 -0500
Raja R Harinath <harinath cs umn edu> writes:
> gnomecvs cvs gnome org (Gnome CVS User) writes:
> > CVSROOT: /cvs/gnome
> > Module name: glib
> > Changes by: wilhelmi 00/11/02 07:31:10
> >
> > Modified files:
> > . : ChangeLog gspawn.c
> >
> > Log message:
> > 2000-11-02 Sebastian Wilhelmi <wilhelmi ira uka de>
> >
> > * gspawn.c: Changed unportable __FUNCTION__ to the verbatim
> > function name.
>
> AFAIK, glib expected an ANSI C 89 compliant compiler (at least the
> syntax part, if not the library). Isn't __FUNCTION__ a part of ANSI
> C?
>From memory, __FILE__ and __LINE__ are C89, but __FUNCTION__
definitely isn't.
glib.h does have G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION that
turn into "" when the compiler doesn't support the capability.
C99 has __func__ but it behaves a bit differently than
__FUNCTION__; it is a magic variable rather than a string
literal. (See recent gcc info pages for details.)
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]